Interface ISpeechToTextService
Definition
- Assembly:
- Tizen.AIAvatar.dll
Interface for a Speech-to-Text service.
public interface ISpeechToTextService
Methods
View SourceSpeechToTextAsync(byte[], Dictionary<string, object>)
Converts the given audio data to text asynchronously.
Declaration
Task<string> SpeechToTextAsync(byte[] audioData, Dictionary<string, object> options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | audioData | The audio data to be converted to text. |
| Dictionary<, ><string, object> | options | Optional parameters for customizing the transcription. |
Returns
| Type | Description |
|---|---|
| Task<><string> | A task representing the asynchronous operation, with the resulting transcribed text. |
StreamSpeechToTextAsync(Stream, Dictionary<string, object>)
Streams the given audio data to text asynchronously.
Declaration
Task StreamSpeechToTextAsync(Stream audioStream, Dictionary<string, object> options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | audioStream | The audio stream to be converted to text. |
| Dictionary<, ><string, object> | options | Optional parameters for customizing the transcription. |
Returns
| Type | Description |
|---|---|
| Task | A task representing the asynchronous operation. |