Documentation
¶
Overview ¶
Package mcp provides a stdio MCP server for ccpersona voice synthesis.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SpeakRequest ¶
SpeakRequest contains parameters for a speak call.
type SpeakService ¶
type SpeakService struct {
// contains filtered or unexported fields
}
SpeakService handles text-to-speech requests.
func NewSpeakService ¶
func NewSpeakService(synthesizer Synthesizer, player Player) *SpeakService
NewSpeakService creates a new SpeakService with the given dependencies.
func (*SpeakService) Speak ¶
func (s *SpeakService) Speak(ctx context.Context, req SpeakRequest) error
Speak synthesizes the text in req and plays it back.
type Synthesizer ¶
type Synthesizer interface {
Synthesize(ctx context.Context, text string, opts voice.VoiceOptions) (string, error)
}
Synthesizer synthesizes text into an audio file.
Click to show internal directories.
Click to hide internal directories.