@mastra/speech-speechify
v0.1.12
Published
Mastra Speechify speech integration (DEPRECATED - use @mastra/voice-speechify instead)
Downloads
2,644
Maintainers
Keywords
Readme
⚠️ DEPRECATED
This package has been deprecated in favor of @mastra/voice-speechify.
Migration
To migrate to the new package:
- Install the new package:
npm install @mastra/voice-speechify
- Update your imports:
- import { SpeechifyTTS } from '@mastra/speech-speechify'
+ import { SpeechifyVoice } from '@mastra/voice-speechify'
- Update your code:
- const tts = new SpeechifyTTS({
- model: {
- name: 'simba-multilingual',
- voice: 'george',
- }
- });
+ const voice = new SpeechifyVoice({
+ speechModel: {
+ name: 'simba-english',
+ },
+ speaker: 'george'
+ });
- const voices = await tts.voices();
+ const speakers = await voice.getSpeakers();
- const { audioResult } = await tts.generate({ text: 'Hello' });
+ const stream = await voice.speak('Hello');