Documentation
¶
Index ¶
Constants ¶
View Source
const ( ChunkTypeAudio responseChunkType = iota ChunkTypeWordBoundary ChunkTypeSessionEnd ChunkTypeEnd )
Variables ¶
This section is empty.
Functions ¶
func ReadResponse ¶
ReadResponse read response from Edge TTS server
func SendRequest ¶
func SendRequest(ctx context.Context, text string, args Args, format OutputFormat) (*websocket.Conn, error)
SendRequest sends request to Edge TTS server and returns connection to read result
Types ¶
type OutputFormat ¶
type OutputFormat int8
const ( OutputFormatMp3 OutputFormat = iota OutputFormatWebm OutputFormatOgg OutputFormatRaw22050 OutputFormatRaw44100 )
func (OutputFormat) String ¶
func (f OutputFormat) String() string
type SpeechMetadata ¶
Click to show internal directories.
Click to hide internal directories.