File size: 1,015 Bytes
a79bdbd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
title: 传声筒
emoji: 🎙️
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: "5.31.0"
app_file: app.py
pinned: false
license: mit
short_description: 实时语音传译 · 中英法互译
---

# 🎙️ 传声筒

多语言语音传译工具,支持中/英/法互译。

## 功能

- **点击录音模式**:录一句话,自动识别 + 翻译 + 朗读译文,支持六个方向(中↔英、中↔法、法↔英)。
- **同声传译模式(实验性)**:中↔英,持续聆听、按停顿自动分句,边听边识别、边翻译边播放。

## 技术栈

- 语音识别:硅基流动 `FunAudioLLM/SenseVoiceSmall`(中/英/法批处理)+ 本地 `faster-whisper`(法语批处理、中英流式)
- 翻译:硅基流动 `tencent/Hunyuan-MT-7B`
- 语音合成:硅基流动 `FunAudioLLM/CosyVoice2-0.5B`(中/英/法)+ 本地 Piper(法语)

## 环境变量

需要在 Space 的 Settings -> Repository secrets 里配置:

- `SILICONFLOW_API_KEY`:硅基流动 API Key