Voice local
Local voice mode giúp xử lý voice message riêng tư hơn: Bestie nhận audio từ bất kỳ channel hoặc runtime surface nào nối vào voice pipeline, convert sang WAV khi cần, chạy whisper.cpp, đưa transcript có giới hạn vào agent, rồi xóa raw audio nếu cấu hình yêu cầu.
File local cần có
Phần tiêu đề “File local cần có”.bestie/tools/whisper-bin/whisper-cli.bestie/tools/local-whisper-transcribe.sh.bestie/models/ggml-small.binSetup
Phần tiêu đề “Setup”Dùng lệnh voice top-level vì voice là capability dùng chung, không còn nằm dưới Telegram:
bestie voice setup-localbestie voice modelsbestie voice download-model smallbestie voice download-model small --confirm --usebestie voice download-model small --confirm --force --useTên model hỗ trợ: tiny, small, medium, large-v3-turbo. File đã tồn tại sẽ không bị ghi đè nếu không có --force.
ElevenLabs
Phần tiêu đề “ElevenLabs”Dùng ElevenLabs khi muốn hosted speech-to-text và speech replies thay vì whisper.cpp local:
bestie voice setup-elevenlabsbestie doctor --telegram-speech-testSetup hỏi ElevenLabs API key, voice id, TTS model id, STT model id và output format. Bestie lưu key vào .bestie/.env dưới ELEVENLABS_API_KEY, ghi config transcription và speech, rồi bật transcription cho Telegram voice/audio attachments. Với Telegram, speech reply mặc định chỉ gửi voice khi input là voice/audio, giới hạn 800 ký tự và cooldown 30 giây nếu config hiện tại chưa override.
Voicebox setup
Phần tiêu đề “Voicebox setup”Bestie cũng có Voicebox setup flow local:
bestie voice setup-voiceboxChạy lệnh và làm theo prompt để cấu hình Voicebox integration local. Sau setup, dùng bestie doctor để kiểm tra các local voice dependency đã cấu hình.
Config mẫu
Phần tiêu đề “Config mẫu”{ "transcription": { "provider": "local-whisper", "command": ".bestie/tools/local-whisper-transcribe.sh", "args": ["{modelPath}", "{audioPath}", "-l", "vi"], "modelPath": ".bestie/models/ggml-small.bin", "timeoutMs": 120000 }}Với tiếng Việt, ggml-small.bin là baseline thực tế hơn ggml-tiny.bin.
Kiểm tra
Phần tiêu đề “Kiểm tra”bestie doctorbestie doctor --telegram-speech-testbestie channels telegram --once --transcript .bestie/logs/telegram-local-voice-smoke.jsonlLệnh Telegram smoke test chỉ kiểm tra adapter Telegram sau khi shared voice đã được cấu hình.
Transcript smoke không được chứa raw message text, transcript text, file ids, paths, owner ids, chat ids, bot token hoặc provider secrets.
Voice độc lập với channel
Phần tiêu đề “Voice độc lập với channel”Voice hiện là một capability riêng, không còn bị gắn cứng với Telegram. Một Bestie có thể dùng voice từ bất kỳ channel hoặc runtime surface nào có nối audio input/output vào agent.
Điều này nghĩa là Telegram vẫn có thể hỗ trợ workflow voice bằng cách đưa Telegram voice/audio attachments vào shared pipeline, nhưng Telegram không còn là nơi sở hữu feature voice. Hãy xem voice configuration và behavior như capability độc lập, rồi kết nối sang Telegram, CLI, web hoặc adapter tương lai khi cần.
