yibaiba
6da099ccae
fix(audio): bound automatic-answer prompt decoding
2026-10-19 17:45:52 +08:00
miaoguoqiang
8cc2ceb172
feat(settings): 自动应答提示音支持多格式上传并统一转 8 kHz / 30 秒
...
共用播放录音原来只接受单声道 PCM16 WAV(8/16 kHz),用户手上的 AMR、MP3
或手机录的 44.1 kHz 立体声 WAV 都用不了。
- 上传白名单扩展为 WAV / AMR / AMR-WB / MP3,所有来源都走同一条转换链:
解码 → 混单声道 → 采样率归一为 8 kHz → 超过 30 秒截断 → 写 PCM16 WAV。
统一转换顺带让 44.1 kHz 立体声 WAV 这类"能解码但不符合播放要求"的文件可用。
- WAV 改用宽松解析(16-bit PCM、单/立体声、任意采样率);录音转 MP3 的路径
仍用原来的严格解析,行为不变。
- MP3 用纯 Go 解码(新增 github.com/hajimehoshi/go-mp3,无 CGO)。该库只覆盖
MPEG-1/2,8/11/12 kHz 的 MPEG-2.5 语音 MP3 返回明确中文提示引导转格式。
- 目标文件名强制为 .wav:旧配置若指向 .amr,解码会按后缀分派而失败。
- 前端 accept 与文案同步,按钮改为"选择音频"。
测试:立体声混音、44.1k→8k、16k→8k、40s→30s 截断、WAV 编解码往返,以及
环境变量驱动的真实 MP3 用例,RK3588 实机全过。
2026-10-19 17:41:16 +08:00
yibaiba
a11a764ef1
feat: add per-device automatic call answering
2026-10-15 18:29:20 +08:00
yibaiba and Cursor
4ced58c4de
feat(vowifi): align remaining IR.92 signaling and realtime AMR/EVS IO
...
Subscribe to MWI, accept in-dialog REFER and call waiting, and advertise
preconditions plus identity headers without enabling emergency calls.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-29 05:01:31 +08:00
yibaiba
cf86a08a93
refactor(runtime): adopt HiDeck identifiers
2026-08-14 11:55:59 +08:00
yibaiba
8ca49afdf5
feat(phone): record mixed call audio and publish MP3
...
Capture both browser and IMS audio into a call-owned PCM mix, retain paired
IMS PCAP metadata, surface recording failures, and support ranged playback.
2026-08-13 14:29:23 +08:00
yibaiba
84eb23d190
feat(phone): transcode AMR call audio in real time
...
Load native AMR encoders and decoders when present, bridge octet-aligned
20ms frames to browser PCMU, and reject unsupported codec negotiation.
2026-08-13 14:13:33 +08:00
yibaiba
98a754efc3
feat(voice): persist playable MP3 call recordings
2026-08-13 11:40:20 +08:00