Text-to-Speech (TTS)
Convert text to speech and generate audio files (MP3).
Hume AI (Preferred)
Preferred Voice:
9e1f9e4f-691a-4bb0-b87c-e306a4c838efKeys: Stored in environment as
HUME_API_KEYandHUME_SECRET_KEY.
Usage
HUME_API_KEY="..." HUME_SECRET_KEY="..." node {baseDir}/scripts/generate_hume_speech.js --text "Hello Jonathan" --output "output.mp3"
OpenAI (Legacy)
Preferred Voice:
novaUsage:
OPENAI_API_KEY="..." node {baseDir}/scripts/generate_speech.js --text "..." --output "..."
General Notes
The scripts print a
MEDIA:line with the absolute path to the generated file.Use the
messagetool to send the resulting file to the user.