Share via


TextTranslationClient.TransliterateAsync Method

Definition

Overloads

TransliterateAsync(String, String, String, IEnumerable<String>, Guid, CancellationToken)

Transliterate Text.

TransliterateAsync(TextTranslationTransliterateOptions, CancellationToken)

Transliterate Text.

TransliterateAsync(String, String, String, String, CancellationToken)

Transliterate Text.

TransliterateAsync(String, String, String, IEnumerable<String>, String, CancellationToken)

Transliterate Text.

TransliterateAsync(String, String, String, IEnumerable<String>, Guid, CancellationToken)

Source:
TextTranslationClient.cs

Transliterate Text.

public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.TransliteratedText>>> TransliterateAsync (string language, string fromScript, string toScript, System.Collections.Generic.IEnumerable<string> content, Guid clientTraceId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member TransliterateAsync : string * string * string * seq<string> * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.TransliteratedText>>>
override this.TransliterateAsync : string * string * string * seq<string> * Guid * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.TransliteratedText>>>
Public Overridable Function TransliterateAsync (language As String, fromScript As String, toScript As String, content As IEnumerable(Of String), Optional clientTraceId As Guid = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IReadOnlyList(Of TransliteratedText)))

Parameters

language
String

Specifies the language of the text to convert from one script to another. Possible languages are listed in the transliteration scope obtained by querying the service for its supported languages.

fromScript
String

Specifies the script used by the input text. Look up supported languages using the transliteration scope, to find input scripts available for the selected language.

toScript
String

Specifies the output script. Look up supported languages using the transliteration scope, to find output scripts available for the selected combination of input language and input script.

content
IEnumerable<String>

Array of the text to be transliterated.

clientTraceId
Guid

A client-generated GUID to uniquely identify the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

language, fromScript, toScript or content is null.

Applies to

TransliterateAsync(TextTranslationTransliterateOptions, CancellationToken)

Source:
TextTranslationClient.cs

Transliterate Text.

public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.TransliteratedText>>> TransliterateAsync (Azure.AI.Translation.Text.TextTranslationTransliterateOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member TransliterateAsync : Azure.AI.Translation.Text.TextTranslationTransliterateOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.TransliteratedText>>>
override this.TransliterateAsync : Azure.AI.Translation.Text.TextTranslationTransliterateOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.TransliteratedText>>>
Public Overridable Function TransliterateAsync (options As TextTranslationTransliterateOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IReadOnlyList(Of TransliteratedText)))

Parameters

cancellationToken
CancellationToken

Returns

A Task<TResult> representing the result of the asynchronous operation.

Applies to

TransliterateAsync(String, String, String, String, CancellationToken)

Source:
TextTranslationClient.cs
Source:
TextTranslationClient.cs

Transliterate Text.

public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.TransliteratedText>>> TransliterateAsync (string language, string fromScript, string toScript, string text, System.Threading.CancellationToken cancellationToken = default);
abstract member TransliterateAsync : string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.TransliteratedText>>>
override this.TransliterateAsync : string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.TransliteratedText>>>
Public Overridable Function TransliterateAsync (language As String, fromScript As String, toScript As String, text As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IReadOnlyList(Of TransliteratedText)))

Parameters

language
String

Specifies the language of the text to convert from one script to another. Possible languages are listed in the transliteration scope obtained by querying the service for its supported languages.

fromScript
String

Specifies the script used by the input text. Look up supported languages using the transliteration scope, to find input scripts available for the selected language.

toScript
String

Specifies the output script. Look up supported languages using the transliteration scope, to find output scripts available for the selected combination of input language and input script.

text
String

Text to be transliterated.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

language, fromScript, toScript or text is null.

Applies to

TransliterateAsync(String, String, String, IEnumerable<String>, String, CancellationToken)

Source:
TextTranslationClient.cs

Transliterate Text.

public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.TransliteratedText>>> TransliterateAsync (string language, string fromScript, string toScript, System.Collections.Generic.IEnumerable<string> content, string clientTraceId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member TransliterateAsync : string * string * string * seq<string> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.TransliteratedText>>>
override this.TransliterateAsync : string * string * string * seq<string> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.TransliteratedText>>>
Public Overridable Function TransliterateAsync (language As String, fromScript As String, toScript As String, content As IEnumerable(Of String), Optional clientTraceId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IReadOnlyList(Of TransliteratedText)))

Parameters

language
String

Specifies the language of the text to convert from one script to another. Possible languages are listed in the transliteration scope obtained by querying the service for its supported languages.

fromScript
String

Specifies the script used by the input text. Look up supported languages using the transliteration scope, to find input scripts available for the selected language.

toScript
String

Specifies the output script. Look up supported languages using the transliteration scope, to find output scripts available for the selected combination of input language and input script.

content
IEnumerable<String>

Array of the text to be transliterated.

clientTraceId
String

A client-generated GUID to uniquely identify the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

language, fromScript, toScript or content is null.

Applies to