Documentation
¶
Overview ¶
Package neuphonic provides Neuphonic text-to-speech (HTTP SSE streaming).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TTSService ¶
type TTSService struct {
// contains filtered or unexported fields
}
TTSService implements services.TTSService using Neuphonic HTTP SSE API.
func NewTTS ¶
func NewTTS(apiKey, baseURL, voiceID, language string, speed float64) *TTSService
NewTTS creates a Neuphonic TTS service.
func (*TTSService) Speak ¶
func (s *TTSService) Speak(ctx context.Context, text string, sampleRate int) ([]*frames.TTSAudioRawFrame, error)
Speak synthesizes text and returns TTS audio frames.
Click to show internal directories.
Click to hide internal directories.