neuphonic

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL