@mastra/speech-google (DEPRECATED)
⚠️ This package is deprecated. Please use @mastra/voice-google instead.
Migration
npm install @mastra/voice-google
import { GoogleTTS } from '@mastra/speech-google';
import { GoogleVoice } from '@mastra/voice-google';
const tts = new GoogleTTS({
model: {
name: 'en-US-Standard-C',
apiKey: 'your-api-key',
},
});
const voice = new GoogleVoice({
speechModel: {
apiKey: 'your-api-key',
},
speaker: 'en-US-Standard-C',
});
The new package combines both speech synthesis and recognition capabilities.