项目
在 GitHub 查看 
14790897/tg-voice-ai
关于
telegram voice chat ai bot with image generate
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文电报语音对话机器人
功能
发送语音或者文字,收到语音+文字的聊天回复
使用方法
我部署的
https://t.me/tg_voice_ai_bot 可以直接使用
自己部署
在 botfather 创建机器人
部署 cf 程序
pnpm install pnpm install -g wrangler wrangler login # 登录cf 或者 export CLOUDFLARE_API_TOKEN = <your token> export CLOUDFLARE_ACCOUNT_ID = <your account id>以实现登录 wrangler kv namespace create tgvoicechat # 创建kv <!-- 修改 wrangler.json 中的 kv_namespaces 的 id 为上一步创建返回的 kv id --> pnpm run deployConfigure the Cloudflare Worker secrets:
tg_token: Telegram bot token from BotFather.siliconflow_token(optional): SiliconFlow API token for the SiliconFlow provider.tts_provider(optional): Chooseworkers,siliconflow, ordeepgramto pick the TTS backend (defaults tosiliconflowwhen a token is set, otherwiseworkers).tts_lang(optional): Language code passed to MeloTTS when using the Workers provider (defaults toen).tts_speaker(optional): Deepgram Aura speaker id (defaults toangus).tts_encoding,tts_container,tts_sample_rate,tts_bit_rate(optional): Additional Deepgram Aura audio options.
Visit the worker domain
/initonce to register the Telegram webhook (for example https://voiceai.14790897.xyz/init).与机器人聊天,支持语音和文字
可以在代码中修改使用模型
const WHISPER_MODEL = '@cf/openai/whisper-large-v3-turbo'; // Whisper model path const CHAT_MODEL = '@cf/meta/llama-4-scout-17b-16e-instruct'; // Chat model path const SILICONFLOW_TTS_MODEL = 'RVC-Boss/GPT-SoVITS'; // SiliconFlow TTS model path const WORKERS_TTS_MODEL = '@cf/myshell-ai/melotts'; // Workers AI TTS model path const DEEPGRAM_TTS_MODEL = '@cf/deepgram/aura-1'; // Deepgram Aura TTS model path
演示

日志查看
pnpm dlx wrangler tail
语音模型选择
wrangler.json 中可以选择语音模型 tts_provider
探索相关项目
加载中…