Interface: IAudioTranscriberBrainService<TSettings>
Service for transcribing audio (speech-to-text)
Type parameters
Name | Description |
---|---|
TSettings | The type of the brain settings |
Hierarchy
↳
IAudioTranscriberBrainService
Table of contents
Methods
Methods
transcribeAudio
▸ transcribeAudio(audioPath
, context
): Promise
<BrainPromptResponse
>
Parameters
Name | Type | Description |
---|---|---|
audioPath | LocalAudioPrompt | A local path to the audio file |
context | IBrainPromptContext <TSettings > | Some additional data we can send to the brain along with the prompt |
Returns
Promise
<BrainPromptResponse
>