Class TextToSpeechService
Inheritance
object
TextToSpeechService
Assembly: .dll
Syntax
public class TextToSpeechService : CRUDServiceBase<ElevenLabs>
Constructors
TextToSpeechService(ElevenLabs)
Declaration
public TextToSpeechService(ElevenLabs client)
Parameters
Methods
CreateAsync(SpeechRequest)
Declaration
public UniTask<GeneratedAudio> CreateAsync(SpeechRequest request)
Parameters
Returns
StreamAsync(SpeechRequest, StreamAudioPlayer)
Declaration
public UniTask StreamAsync(SpeechRequest request, StreamAudioPlayer streamAudioPlayer)
Parameters
Type |
Name |
Description |
SpeechRequest |
request |
|
StreamAudioPlayer |
streamAudioPlayer |
|
Returns