Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements both voice.STTProvider and voice.TTSProvider using OpenAI's Whisper (transcription) and TTS APIs.
func NewWithHTTPClient ¶
NewWithHTTPClient creates a client with a custom HTTP client and base URL (for testing).
func (*Client) Synthesize ¶
Synthesize converts text to speech using OpenAI's TTS API. Returns OGG/Opus audio bytes suitable for Telegram voice messages.
Click to show internal directories.
Click to hide internal directories.