AudioTranslationOptions Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AudioTranslationOptions() |
Initializes a new instance ofAudioTranslationOptions. |
AudioTranslationOptions(String, BinaryData) |
Initializes a new instance of AudioTranslationOptions. |
AudioTranslationOptions()
- Source:
- AudioTranslationOptions.cs
Initializes a new instance ofAudioTranslationOptions.
public AudioTranslationOptions ();
Public Sub New ()
Applies to
AudioTranslationOptions(String, BinaryData)
- Source:
- AudioTranslationOptions.cs
Initializes a new instance of AudioTranslationOptions.
public AudioTranslationOptions (string deploymentName, BinaryData audioData);
new Azure.AI.OpenAI.AudioTranslationOptions : string * BinaryData -> Azure.AI.OpenAI.AudioTranslationOptions
Public Sub New (deploymentName As String, audioData As BinaryData)
Parameters
- deploymentName
- String
The deployment name to use for audio translation.
- audioData
- BinaryData
The audio data to translate. This must be the binary content of a file in one of the supported media formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.
Exceptions
deploymentName
or audioData
is null.
deploymentName
is an empty string.
Remarks
By default, audio data will be provided as if it were from an audio file named "file.wav". For other audio formats, set an appropriate filename via the Filename property such that the format can be inferred. For example, setting Filename to "foo.mp3" for an MP3 stream will ensure that the audio data is handled as MP3 input.
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for