Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
TranscriptionClient class
- Package:
- @azure/ai-speech-transcription
Constructors
| TranscriptionClient(string, KeyCredential | TokenCredential, TranscriptionClientOptions) |
Properties
| pipeline | The pipeline used by this client to make requests |
Methods
| transcribe(string, Omit<TranscriptionOptions, "audioUrl">) | Transcribes audio from a URL. |
| transcribe(Uint8Array | ReadableStream | ReadableStream<Uint8Array> | Blob, Omit<TranscriptionOptions, "audioUrl">) | Transcribes audio from a binary source (buffer, stream, or blob). |
Constructor Details
TranscriptionClient(string, KeyCredential | TokenCredential, TranscriptionClientOptions)
new TranscriptionClient(endpoint: string, credential: KeyCredential | TokenCredential, options?: TranscriptionClientOptions)
Parameters
- endpoint
-
string
- credential
- options
- TranscriptionClientOptions
Property Details
pipeline
Method Details
transcribe(string, Omit<TranscriptionOptions, "audioUrl">)
Transcribes audio from a URL.
function transcribe(audioUrl: string, options?: Omit<TranscriptionOptions, "audioUrl">): Promise<TranscriptionResult>
Parameters
- audioUrl
-
string
- options
-
Omit<TranscriptionOptions, "audioUrl">
Returns
Promise<TranscriptionResult>
transcribe(Uint8Array | ReadableStream | ReadableStream<Uint8Array> | Blob, Omit<TranscriptionOptions, "audioUrl">)
Transcribes audio from a binary source (buffer, stream, or blob).
function transcribe(audio: Uint8Array | ReadableStream | ReadableStream<Uint8Array> | Blob, options?: Omit<TranscriptionOptions, "audioUrl">): Promise<TranscriptionResult>
Parameters
- audio
-
Uint8Array | ReadableStream | ReadableStream<Uint8Array> | Blob
- options
-
Omit<TranscriptionOptions, "audioUrl">
Returns
Promise<TranscriptionResult>
