领域深度 · 语音与配音Field guide · Speech and voice

语音与配音:从录音到一条能用的语音链路Speech and voice: from a recording to a usable voice chain

你把会议录音丢给模型,转出来的纪要缺人名、断句乱、还把两个人说的话接在一起。语音不是“一个模型”,而是一条链:采集、降噪、断句、识别、改写、合成、播放。先分清你是要转写、实时对话还是配音,再谈像不像真人。You feed a meeting recording to a model. The notes lose names, break sentences in the wrong place and merge two speakers. Speech is not one model; it is a chain: capture, denoise, segmentation, recognition, rewriting, synthesis and playback. Decide whether you need transcription, real-time dialogue or voice-over before chasing a human-sounding voice.

适合谁For 要做会议转写、语音助手或配音的人Anyone building meeting transcription, a voice assistant or voice-over 读完能拿到You leave with 一张链路图、一张延迟预算表,和一条先能跑通的场景路径A chain map, a latency budget and one scenario that runs end to end 大概多久Time 先读 12 分钟;跑通一条链路约半天12 minutes to read; about half a day to get one chain running 最后核对 2026-11-25Last checked 25 Nov 2026

本页是 Specul 的语音链路判断框架,不是麦克风、模型或产品的排名。采样率、延迟、许可与价格以所链页面和原始来源为准。This is Specul’s decision framework for speech chains, not a ranking of microphones, models or products. Sample rates, latency, licences and prices remain with the linked pages and original sources.

如果你只有 5 分钟If you only have five minutes
  1. 先分场景:转写、实时对话、配音,要求完全不同。Separate the scenario first: transcription, real-time dialogue and voice-over have different requirements.
  2. 实时延迟是五段相加,不是模型一个人的锅。Real-time latency is five stages added together, not one model’s fault.
  3. 声音克隆先解决同意、标识和用途,再谈像不像。For voice cloning, settle consent, labelling and use before chasing similarity.

完整版从下面开始;表格是查的时候用,不用背。The full guide starts below. Use the tables for reference; you do not need to memorise them.

拿一个具体活走一遍One concrete job

假设一个具体活:把 1 小时中文会议录音转成带发言人、时间点和待办的纪要,允许 10 分钟出结果,不要求实时。先按这个场景选链路。Take one concrete job: turn a one-hour Chinese meeting into notes with speakers, timestamps and action items, within ten minutes, with no real-time requirement. Choose the chain for that scenario.

先定义场景(转写、实时对话或配音),再定采样率、延迟和评测。同一个 WER 或 MOS 不能跨场景比较。Define the use case first — transcription, real-time conversation or dubbing — then fix sample rate, latency and evaluation. One WER or MOS figure does not transfer across use cases.

1 · 一条语音链路的六个环节1 · Six stages in one speech chain

把链路画出来,故障才有位置。采集拿到的是模拟声波,经过麦克风、增益、采样和编码变成数字音频。前端做降噪、回声消除和断句。识别把音频变成带时间戳的文本。对话层决定回什么。合成把文本变回音频。播放再经过缓冲和设备。每一段都可能单独失败,而且后一段会把前一段的错误放大。Draw the chain so failures have a location. Capture turns an acoustic wave into digital audio through the microphone, gain, sampling and encoding. The front end suppresses noise, cancels echo and endpoints. Recognition turns audio into timestamped text. The dialogue layer decides the reply. Synthesis turns text back into audio. Playback adds buffering and the device. Each stage can fail alone, and later stages amplify earlier errors.

最常见的误判是“模型不行”。实际上,采样率不匹配会让识别整体变差。回声消除把近端人声也压掉,会让识别丢字。断句太早会切掉最后一个词。播放缓冲太短会产生断续。先按环节记录输入、输出、时间戳和错误码,再决定换不换模型。The most common misdiagnosis is “the model is bad”. In practice, a sample-rate mismatch degrades recognition across the board; echo cancellation that also suppresses near-end speech drops words; early endpointing cuts the last word; a short playback buffer causes glitches. Log each stage’s input, output, timestamp and error code before deciding to replace the model.

环节Stage它负责什么What it owns最先检查什么Check first
采集Capture采样率、增益、声道、设备Sample rate, gain, channels, device是否削波、是否单声道、时间戳是否统一Clipping, mono/stereo, shared timestamps
前端Front end降噪、回声消除、断句Noise suppression, echo cancellation, endpointing近端人声是否被误伤、断句是否切词Near-end speech suppressed, words cut by endpointing
识别Recognition音频到文本与时间戳Audio to text and timestamps采样率、语言、热词、置信度Sample rate, language, hotwords, confidence
对话Dialogue意图、上下文、工具调用Intent, context, tool calls是否把识别错误当用户意图Treating a recognition error as user intent
合成Synthesis文本到音频Text to audio多音字、数字、专名、语速Polyphones, numbers, names, speaking rate
播放Playback缓冲、设备、回声参考Buffering, device, echo reference欠载、延迟、参考信号是否闭环Underrun, latency, closed-loop reference
判断句:如果换一个模型后问题仍在同一位置出现,先修链路,不要继续换模型。Rule of thumb: if the same symptom survives a model swap, fix the chain before trying another model.

↑ 回到目录↑ Back to contents

2 · 先分三种场景:转写、实时对话、配音2 · Separate three use cases: transcription, real-time talk, dubbing

转写追求“逐字准确、可编辑、可搜索”,可以等整段跑完,也可以接受几秒延迟。实时对话追求“轮次自然、能打断、延迟稳定”,准确率略低但必须及时。配音追求“音色、情绪、口型或时长匹配”,文本和声音都要受脚本约束。三种场景的模型、前端和评测表不一样。Transcription wants verbatim accuracy, editability and searchability; it can wait for the whole file and tolerate seconds of delay. Real-time conversation wants natural turns, barge-in and stable latency; slightly lower accuracy is acceptable if the reply is timely. Dubbing wants voice, emotion and lip or duration match; both text and audio are constrained by the script. The model, front end and evaluation table differ across the three.

把场景写成约束,而不是形容词。“要自然”不是约束。“电话带宽、单人、中文、端到端不超过 800 毫秒、允许用户打断、每轮可回退”才是。约束写不清,最后只能靠主观感觉验收。Write the use case as constraints, not adjectives. “Natural” is not a constraint. “Telephone bandwidth, single speaker, Mandarin, end-to-end under 800 ms, barge-in allowed, every turn reversible” is. Without constraints, acceptance collapses into subjective impression.

场景Use case首要目标Primary goal可牺牲什么What can be traded验收证据Acceptance evidence
转写Transcription字准、时间戳、可搜索Word accuracy, timestamps, search几秒延迟、离线批处理Seconds of delay, offline batch带时间戳的文本、实体表、人工抽检Timestamped text, entity table, human audit
实时对话Real-time talk延迟稳定、能打断、轮次自然Stable latency, barge-in, natural turns少量字错、短回复A few word errors, shorter repliesP50/P95 延迟、打断成功率、会话完成率P50/P95 latency, barge-in success, session completion
配音Dubbing音色与情绪、时长或口型Voice, emotion, duration or lip sync生成时间、部分韵律Generation time, some prosody盲听对比、时长差、口型误差Blind listening, duration delta, lip error

↑ 回到目录↑ Back to contents

3 · 采集与前端:先有干净输入,再谈模型3 · Capture and front end: clean input before model talk

识别模型通常吃 16 kHz 单声道音频,电话场景可能是 8 kHz。合成与音乐交付常用 24 kHz、44.1 kHz 或 48 kHz。把 48 kHz 立体声直接喂给只接受 16 kHz 单声道的接口,轻则报错,重则被错误重采样,听起来“能跑”,字错率却明显上升。先统一采样率、位深、声道和字节序,再谈模型。Recognition models commonly take 16 kHz mono audio, while telephony may be 8 kHz; synthesis and music delivery often use 24 kHz, 44.1 kHz or 48 kHz. Feeding 48 kHz stereo into an interface that expects 16 kHz mono may error or be resampled incorrectly: it “runs”, but word error rises. Fix sample rate, bit depth, channels and byte order before model choice.

前端不是“降噪越大越好”。强降噪会吃掉辅音和尾音。回声消除需要参考信号,参考信号接错会把用户自己的声音也当回声。自动增益在安静段把底噪抬起来,会让断句一直触发。每加一个前端模块,都要用同一段真实录音对比“识别结果”和“主观听感”,而不是只看波形好看。The front end is not “more denoising is better”. Aggressive suppression eats consonants and word endings. Echo cancellation needs a reference signal; a wrong reference treats the user’s own voice as echo. Automatic gain raises noise in silence and keeps triggering endpointing. For every front-end module, compare recognition output and subjective listening on the same real recording, not just a clean waveform.

  • 固定采集链:同一麦克风、同一增益、同一采样率,先排除设备差异。Fix the capture chain: same microphone, gain and sample rate; rule out device differences first.
  • 保留原始音频:前端处理前后各存一份,失败时可回溯是降噪还是识别的问题。Keep raw audio: store before and after the front end so failures can be traced to suppression or recognition.
  • 标时间戳:采集、断句、识别、合成、播放共用一个时钟,才能算端到端延迟。Timestamp every stage against one clock so end-to-end latency is computable.
  • 给削波和静音报警:波形削顶、长时间静音、参考信号丢失都要进入日志。Alert on clipping, long silence and missing reference signals; put them in the log.

↑ 回到目录↑ Back to contents

4 · 实时对话:延迟是五段相加4 · Real-time talk: latency is five segments added together

实时语音的端到端延迟至少由五段组成:采集缓冲、断句等待、网络往返、模型推理、播放缓冲。只优化模型推理,常常只动了其中一段。用户感知的“卡”往往来自断句等待和播放缓冲,而不是 GPU 算得慢。End-to-end latency in real-time speech has at least five parts: capture buffer, endpointing wait, network round trip, model inference and playback buffer. Optimising inference alone moves one segment. The “lag” users feel often comes from endpointing and playback buffering, not slow GPUs.

先定预算,再选方案。对话式语音通常把端到端追加延迟压到几百毫秒级。具体目标由场景定:客服可以容忍更长,打断式对话要求更短。把 P50、P95 和最坏情况分开记录。只报平均延迟,会把最难受的那几次藏起来。Set a budget before choosing a design. Conversational speech often aims at a few hundred milliseconds of added end-to-end latency; the exact target depends on the use case: support calls tolerate more, barge-in conversation less. Record P50, P95 and worst case separately. An average alone hides the worst interactions.

延迟段Segment常见来源Common source先改什么Fix first
采集缓冲Capture buffer块大小、设备驱动、蓝牙Block size, driver, Bluetooth缩短块、换有线设备Shorter blocks, wired device
断句等待Endpointing静音阈值、语义断句Silence threshold, semantic endpointing调阈值、用可打断的临时结果Tune threshold, use interim results
网络Network往返、抖动、重传Round trip, jitter, retransmission就近接入、UDP/QUIC、抖动缓冲Nearby endpoint, UDP/QUIC, jitter buffer
推理Inference模型大小、批处理、排队Model size, batching, queueing流式、小模型、预留容量Streaming, smaller model, reserved capacity
播放Playback缓冲、设备、回声参考Buffer, device, echo reference自适应缓冲、设备校准Adaptive buffer, device calibration
一个可执行的验收:让用户在真实网络下连续打断 20 次,记录每次从开口到系统停止播放的时间。这比单看模型延迟更接近体验。A practical acceptance test: have a user barge in 20 times on a real network and record the time from speech onset to playback stop. That is closer to experience than a model-only latency figure.

↑ 回到目录↑ Back to contents

5 · 模型与格式:ASR、TTS、克隆不是一件事5 · Models and formats: ASR, TTS and cloning are different jobs

识别(ASR)把音频转为文本,关注字错率、时间戳、说话人分离、热词和语言覆盖。合成(TTS)把文本转为音频,关注自然度、发音、韵律、音色和可控性。声音克隆(voice cloning / voice conversion)关注音色相似与身份授权,通常需要同一说话人的参考音频。三者可以串起来,但不能用同一个指标验收。ASR turns audio into text and cares about word error, timestamps, speaker separation, hotwords and language coverage. TTS turns text into audio and cares about naturalness, pronunciation, prosody, timbre and control. Voice cloning or conversion cares about timbre similarity and identity consent, usually with reference audio from the same speaker. They can be chained, but not accepted with one metric.

格式是交付的一部分。处理链里用无压缩或低压缩的 PCM/WAV 减少代际损失。传输用 Opus 这类低延迟编码。交付给播放器或平台再转 AAC。每次转码都写清采样率、位深、声道和码率,不要把“能播放”当成“音质没损失”。Format is part of delivery. Use uncompressed or lightly compressed PCM/WAV in the processing chain to avoid generation loss; use a low-latency codec such as Opus for transport; transcode to AAC for players or platforms. Record sample rate, bit depth, channels and bitrate at every transcode. “It plays” is not “no quality loss”.

识别 ASR
输入:音频 + 语言/热词
输出:文本 + 时间戳 + 置信度
主指标:WER / CER、实体准确率
Recognition
Input: Audio + language/hotwords
Output: Text + timestamps + confidence
Primary metric: WER/CER, entity accuracy

合成 TTS
输入:文本 + 音色/风格
输出:音频
主指标:MOS / 盲听偏好、发音错误率
Synthesis
Input: Text + voice/style
Output: Audio
Primary metric: MOS/blind preference, pronunciation errors

声音克隆
输入:参考音频 + 文本
输出:同音色音频
主指标:说话人相似度、授权与滥用防护
Voice cloning
Input: Reference audio + text
Output: Audio in the same voice
Primary metric: Speaker similarity, consent and misuse controls

说话人分离
输入:多人音频
输出:说话人分段
主指标:分段准确率、重叠语音处理
Diarisation
Input: Multi-speaker audio
Output: Speaker segments
Primary metric: Segment accuracy, overlapping speech

↑ 回到目录↑ Back to contents

6 · 评测:WER、CER、MOS、RTF 各回答什么6 · Evaluation: what WER, CER, MOS and RTF actually answer

WER 按词算错误,中文更常用 CER(字错误率)。两者都不等于“意思对”。人名、产品名、金额、日期这类实体错一个,WER 可能只动一点,任务却已经失败。评测表要同时有整体字/词错率、实体准确率、标点与断句、时间戳偏差,以及失败样本原文。WER counts word errors; Chinese commonly uses CER (character error rate). Neither equals “the meaning is right”. One wrong name, product, amount or date may barely move WER while the task fails. The evaluation table needs overall word/character error, entity accuracy, punctuation and segmentation, timestamp drift, and the raw failure samples.

MOS 是主观听感评分,通常按 1–5 分由听者打分。它适合比较自然度和音质,不适合单独证明“可听懂”。RTF(实时因子)衡量处理时长与音频时长的比,适合判断能不能实时。它不衡量延迟分布,也不衡量打断体验。每个指标只回答它测过的问题。MOS is a subjective listening score, usually 1–5 from listeners. It suits naturalness and audio quality, not intelligibility alone. RTF (real-time factor) compares processing time to audio duration and suits the question “can it run in real time”; it does not capture latency distribution or barge-in. Each metric answers only what it measured.

WER / CER
回答的问题:字或词错多少
不能回答什么:意思是否可用、实体是否错
WER/CER
Question: How many words/characters are wrong
What it cannot answer: Whether meaning is usable, whether entities are wrong

实体准确率
回答的问题:人名、金额、日期是否对
不能回答什么:整体流畅度
Entity accuracy
Question: Names, amounts, dates correct
What it cannot answer: Overall fluency

MOS
回答的问题:听感多自然
不能回答什么:是否听得懂、延迟是否可接受
MOS
Question: How natural it sounds
What it cannot answer: Intelligibility, acceptable latency

RTF
回答的问题:处理能否快于实时
不能回答什么:P95 延迟、打断体验
RTF
Question: Whether processing beats real time
What it cannot answer: P95 latency, barge-in experience

说话人相似度
回答的问题:像不像目标音色
不能回答什么:是否获得授权、是否会被滥用
Speaker similarity
Question: Whether it sounds like the target voice
What it cannot answer: Consent, misuse risk

评测集要包含真实失败:口音、快语速、重叠说话、背景音乐、电话带宽、专名和代码切换。只用干净录音测出来的高分,不能预测真实场景。Include real failures: accents, fast speech, overlapping speakers, background music, telephone bandwidth, names and code-switching. A high score on clean recordings does not predict the real scene.

↑ 回到目录↑ Back to contents

7 · 声音的权利:同意、标识、用途7 · Rights in a voice: consent, labelling, use

声音克隆的第一道门槛不是技术,而是同意。用谁的声音、用于什么内容、用多久、能否撤回,要在录制参考音频前写清。公开人物的声音、未成年人声音、客户通话录音,都有额外的同意与隐私要求。本页不构成法律意见,具体条款要由有资质的人结合所在地判断。The first gate in voice cloning is consent, not technology. Whose voice, for what content, for how long, and whether it can be withdrawn must be written before recording reference audio. Public figures, minors and customer call recordings carry extra consent and privacy requirements. This page is not legal advice; qualified people must apply local rules.

第二道门槛是标识与用途。把合成语音用于客服、有声书、广告、新闻或对外发言,平台规则和披露义务不同。有些场景要求明确标注“AI 合成”,有些场景直接禁止。还要防滥用:限制参考音频的访问、给输出加水印或内容凭证、保留生成日志,并准备下架流程。The second gate is labelling and use. Synthetic speech in support calls, audiobooks, ads, news or public statements faces different platform rules and disclosure duties; some contexts require an explicit “AI-generated” label, others forbid it. Also limit misuse: restrict access to reference audio, watermark or attach content credentials to output, keep generation logs and prepare a takedown path.

判断句:没有同意与用途记录的声音,不要进入生产。技术上的“能克隆”不等于“可以克隆”。Rule of thumb: a voice without a consent and use record does not enter production. “It can be cloned” is not “it may be cloned”.

↑ 回到目录↑ Back to contents

8 · 失败分支:先看现象,再查链路8 · Failure branches: symptom first, then the chain

语音故障很少只有一个原因。下面这张表按“用户听到/看到的现象”倒查,不按模型名称查。每次只改一个变量,改完用同一段录音复跑。否则无法知道是哪一处起了作用。Speech failures rarely have one cause. The table below starts from the symptom the user hears or sees, not from a model name. Change one variable at a time and rerun on the same recording; otherwise you cannot tell what helped.

整段识别都很差
优先怀疑:采样率/声道不匹配、语言选错
核对动作:看接口要求的格式,存一份原始音频重跑
Transcript is bad throughout
Suspect first: Sample-rate/channel mismatch, wrong language
Check: Read the required format; rerun on raw audio

开头第一个字总丢
优先怀疑:断句预卷不足、采集缓冲太短
核对动作:把预卷加到 300–500 ms 再测
First word clipped
Suspect first: Insufficient pre-roll, short capture buffer
Check: Add 300–500 ms pre-roll and retest

用户没说完就被打断
优先怀疑:断句阈值太短、语义断句误判
核对动作:看断句时间戳与静音段
Bot interrupts
Suspect first: Endpointing too short, semantic false positive
Check: Inspect endpoint timestamps and silence

回复延迟忽高忽低
优先怀疑:网络抖动、推理排队、播放欠载
核对动作:分段打点,分别看 P50/P95/最坏
Latency spikes
Suspect first: Jitter, inference queueing, playback underrun
Check: Instrument each stage; P50/P95/worst

合成读错数字或专名
优先怀疑:文本正则、多音字、SSML/标记
核对动作:把原文与音素/标记一起检查
TTS mispronounces
Suspect first: Text normalisation, polyphones, markup
Check: Inspect text and phonemes/markup

克隆被拒或听起来不像
优先怀疑:参考音频质量、授权、说话人相似度
核对动作:换干净参考、核对授权与相似度
Clone rejected or off
Suspect first: Reference quality, consent, similarity
Check: Use clean reference; check consent and similarity

通话有回声或啸叫
优先怀疑:参考信号接错、增益过高、设备耦合
核对动作:做一次环路测试,逐段静音
Echo or howling
Suspect first: Wrong reference, excessive gain, device coupling
Check: Run a loopback test, mute stages

长时间静音后无响应
优先怀疑:VAD 未触发、会话超时、队列丢弃
核对动作:看 VAD 事件与会话状态
No response after silence
Suspect first: VAD not triggered, session timeout, dropped queue
Check: Inspect VAD events and session state

不要用“换个模型试试”当第一条排查动作。先确认格式、时间戳、断句和播放这四件事。Do not make “try another model” the first debugging step. Confirm format, timestamps, endpointing and playback first.

↑ 回到目录↑ Back to contents

9 · 最小落地路径9 · A minimum path to a working speech chain

先做一条能复跑的窄链路,不要一上来就接电话、接客服、接实时对话。用十段真实录音和一段固定文本,把采集、识别、合成、播放四段打通。每一段都留输入、输出、时间戳和失败原因。Build one narrow, reproducible chain first; do not start with telephony, support or full duplex. Use ten real recordings and one fixed text to connect capture, recognition, synthesis and playback. Keep input, output, timestamps and failure reason at every stage.

  • 写清场景与约束:转写、实时对话还是配音。语言、带宽、延迟、能否打断。Write the use case and constraints: transcription, real-time talk or dubbing; language, bandwidth, latency, barge-in.
  • 固定采集链:同一设备、采样率、增益、声道。保留原始音频。Fix the capture chain: same device, sample rate, gain and channels; keep raw audio.
  • 跑十段真实样本:安静、噪声、口音、快语速、重叠说话各至少一段。Run ten real samples: at least one each of quiet, noise, accent, fast speech and overlapping speakers.
  • 先做离线转写,再做流式。先做单人,再做多人分离。Do offline transcription before streaming; single speaker before diarisation.
  • 给每一段打时间戳,算 P50/P95/最坏延迟,不只算平均。Timestamp each stage and compute P50/P95/worst latency, not only the mean.
  • 建 30–50 条自己的评测:字错、实体、断句、专名、数字、拒答。Build 30–50 of your own items: character errors, entities, segmentation, names, numbers, refusals.
  • 加失败回退:识别置信度低时让用户确认,合成失败时退回文本。Add fallback: ask the user to confirm low-confidence recognition; fall back to text when synthesis fails.
  • 留日志与回放:能按一次会话重放采集、识别、合成、播放的完整时间线。Keep logs and replay: reconstruct capture, recognition, synthesis and playback for one session.
完成标准不是“声音很像”,而是:真实样本能稳定转写、延迟可解释、失败能回退、每一段都有记录。Done means real samples transcribe reliably, latency is explainable, failures fall back, and every stage is logged — not that the voice sounds human.

↑ 回到目录↑ Back to contents

来源与延伸阅读Sources and further reading

以下链接用于核对事实、许可证与官方口径。外部页面可能更新;引用时以原文与核验日为准。These links are for checking facts, licences and official scope. External pages may change; cite the original text and check date.

下一步Next

如果你照着做时卡住了,先回到对应主题路线,不要从头重读。If you get stuck while following it, go back to the matching route instead of rereading the whole guide.

← 回到首页← Back to home 发现错误?提交纠错Spot an error? Send a correction