Documentation
¶
Index ¶
- Constants
- type SonioxContextGeneralItem
- type SonioxContextObject
- type SonioxContextTranslationTerm
- type SonioxSTT
- func (s *SonioxSTT) Capabilities() stt.STTCapabilities
- func (s *SonioxSTT) InputSampleRate() uint32
- func (s *SonioxSTT) Label() string
- func (s *SonioxSTT) Model() string
- func (s *SonioxSTT) Provider() string
- func (s *SonioxSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *SonioxSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- type SonioxSTTOption
- func WithSonioxBaseURL(baseURL string) SonioxSTTOption
- func WithSonioxClientReferenceID(clientReferenceID string) SonioxSTTOption
- func WithSonioxContextObject(context SonioxContextObject) SonioxSTTOption
- func WithSonioxContextText(context string) SonioxSTTOption
- func WithSonioxLanguageHints(languageHints []string) SonioxSTTOption
- func WithSonioxLanguageHintsStrict(strict bool) SonioxSTTOption
- func WithSonioxLanguageIdentification(enabled bool) SonioxSTTOption
- func WithSonioxMaxEndpointDelayMS(ms int) SonioxSTTOption
- func WithSonioxModel(model string) SonioxSTTOption
- func WithSonioxNumChannels(numChannels int) SonioxSTTOption
- func WithSonioxOneWayTranslation(targetLanguage string) SonioxSTTOption
- func WithSonioxSampleRate(sampleRate int) SonioxSTTOption
- func WithSonioxSpeakerDiarization(enabled bool) SonioxSTTOption
- func WithSonioxTwoWayTranslation(languageA string, languageB string) SonioxSTTOption
- type SonioxTTS
- func (t *SonioxTTS) Capabilities() tts.TTSCapabilities
- func (t *SonioxTTS) Close() error
- func (t *SonioxTTS) Label() string
- func (t *SonioxTTS) Model() string
- func (t *SonioxTTS) NumChannels() int
- func (t *SonioxTTS) Provider() string
- func (t *SonioxTTS) SampleRate() int
- func (t *SonioxTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)
- func (t *SonioxTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)
- type SonioxTTSOption
- func WithSonioxTTSAudioFormat(audioFormat string) SonioxTTSOption
- func WithSonioxTTSBitrate(bitrate int) SonioxTTSOption
- func WithSonioxTTSLanguage(language string) SonioxTTSOption
- func WithSonioxTTSModel(model string) SonioxTTSOption
- func WithSonioxTTSSampleRate(sampleRate int) SonioxTTSOption
- func WithSonioxTTSVoice(voice string) SonioxTTSOption
- func WithSonioxTTSWebsocketURL(websocketURL string) SonioxTTSOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.soniox" PluginVersion = "v0.1.4" PluginPackage = "rtp-agent.plugins.soniox" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SonioxContextGeneralItem ¶ added in v0.0.15
type SonioxContextObject ¶ added in v0.0.15
type SonioxContextObject struct {
General []SonioxContextGeneralItem `json:"general,omitempty"`
Text string `json:"text,omitempty"`
Terms []string `json:"terms,omitempty"`
TranslationTerms []SonioxContextTranslationTerm `json:"translation_terms,omitempty"`
}
type SonioxContextTranslationTerm ¶ added in v0.0.15
type SonioxSTT ¶
type SonioxSTT struct {
// contains filtered or unexported fields
}
func NewSonioxSTT ¶
func NewSonioxSTT(apiKey string, opts ...SonioxSTTOption) *SonioxSTT
func (*SonioxSTT) Capabilities ¶
func (s *SonioxSTT) Capabilities() stt.STTCapabilities
func (*SonioxSTT) InputSampleRate ¶ added in v0.1.0
type SonioxSTTOption ¶ added in v0.0.15
type SonioxSTTOption func(*SonioxSTT)
func WithSonioxBaseURL ¶ added in v0.0.15
func WithSonioxBaseURL(baseURL string) SonioxSTTOption
func WithSonioxClientReferenceID ¶ added in v0.0.15
func WithSonioxClientReferenceID(clientReferenceID string) SonioxSTTOption
func WithSonioxContextObject ¶ added in v0.0.15
func WithSonioxContextObject(context SonioxContextObject) SonioxSTTOption
func WithSonioxContextText ¶ added in v0.0.15
func WithSonioxContextText(context string) SonioxSTTOption
func WithSonioxLanguageHints ¶ added in v0.0.15
func WithSonioxLanguageHints(languageHints []string) SonioxSTTOption
func WithSonioxLanguageHintsStrict ¶ added in v0.0.15
func WithSonioxLanguageHintsStrict(strict bool) SonioxSTTOption
func WithSonioxLanguageIdentification ¶ added in v0.0.15
func WithSonioxLanguageIdentification(enabled bool) SonioxSTTOption
func WithSonioxMaxEndpointDelayMS ¶ added in v0.0.15
func WithSonioxMaxEndpointDelayMS(ms int) SonioxSTTOption
func WithSonioxModel ¶ added in v0.0.15
func WithSonioxModel(model string) SonioxSTTOption
func WithSonioxNumChannels ¶ added in v0.0.15
func WithSonioxNumChannels(numChannels int) SonioxSTTOption
func WithSonioxOneWayTranslation ¶ added in v0.0.15
func WithSonioxOneWayTranslation(targetLanguage string) SonioxSTTOption
func WithSonioxSampleRate ¶ added in v0.0.15
func WithSonioxSampleRate(sampleRate int) SonioxSTTOption
func WithSonioxSpeakerDiarization ¶ added in v0.0.15
func WithSonioxSpeakerDiarization(enabled bool) SonioxSTTOption
func WithSonioxTwoWayTranslation ¶ added in v0.0.15
func WithSonioxTwoWayTranslation(languageA string, languageB string) SonioxSTTOption
type SonioxTTS ¶ added in v0.0.15
type SonioxTTS struct {
// contains filtered or unexported fields
}
func NewSonioxTTS ¶ added in v0.0.15
func NewSonioxTTS(apiKey string, opts ...SonioxTTSOption) *SonioxTTS
func (*SonioxTTS) Capabilities ¶ added in v0.0.15
func (t *SonioxTTS) Capabilities() tts.TTSCapabilities
func (*SonioxTTS) NumChannels ¶ added in v0.0.15
func (*SonioxTTS) SampleRate ¶ added in v0.0.15
func (*SonioxTTS) Synthesize ¶ added in v0.0.15
type SonioxTTSOption ¶ added in v0.0.15
type SonioxTTSOption func(*SonioxTTS)
func WithSonioxTTSAudioFormat ¶ added in v0.0.15
func WithSonioxTTSAudioFormat(audioFormat string) SonioxTTSOption
func WithSonioxTTSBitrate ¶ added in v0.0.15
func WithSonioxTTSBitrate(bitrate int) SonioxTTSOption
func WithSonioxTTSLanguage ¶ added in v0.0.15
func WithSonioxTTSLanguage(language string) SonioxTTSOption
func WithSonioxTTSModel ¶ added in v0.0.15
func WithSonioxTTSModel(model string) SonioxTTSOption
func WithSonioxTTSSampleRate ¶ added in v0.0.15
func WithSonioxTTSSampleRate(sampleRate int) SonioxTTSOption
func WithSonioxTTSVoice ¶ added in v0.0.15
func WithSonioxTTSVoice(voice string) SonioxTTSOption
func WithSonioxTTSWebsocketURL ¶ added in v0.0.15
func WithSonioxTTSWebsocketURL(websocketURL string) SonioxTTSOption
Click to show internal directories.
Click to hide internal directories.