Speech-to-Speech and Expressive Voice › Speaker identity and voice consent

Michael BrenndoerferDecember 1, 20263 min read
Language AI HandbookAll chapters
Part 52 of 67Omni-Modal and Embodied Language Systems
Chapter 402Speech-to-Speech and Expressive Voice › Speaker identity and voice consent
Reading section 7 of 14 · Speaker identity and voice consent · 3 minSection 7 of 14 · 3 min

Section 7 of 14 · 3 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

A speaker embedding maps an utterance to a fixed-length comparison vector. The ECAPA-TDNN paper describes fixed-length speaker representations based on pooling variable-length utterances. Similarity can support a decision in an evaluated setting. It cannot establish consent.

A product can offer fixed synthetic identities, a separately authorized voice, or an unrestricted reference input. The choice determines which authorization checks it needs.

  • Fixed, licensed synthetic voice(s). The product ships with one or more synthetic voices created with consent. Users can pick among them, tune prosody, and adjust speed. No reference audio from users is used for identity.
  • User-approved voice. A product that offers user-specific identity needs a documented authorization process, a way to withdraw authorization, and enforcement at use time.
  • Unrestricted voice references. Free-form reference input can raise impersonation and authorization risks. The worked example uses oscillator fixtures without reference recordings.

The next example compares features from synthetic oscillator fixtures. It produces no voice output and establishes no person's identity or consent.

PythonIn [17]
CollapseExpand
# A toy "speaker embedding" for demonstration: the mean and std of frame-level
# features over an utterance. Real systems use x-vectors or ECAPA-TDNN.
def toy_speaker_embedding(frames):
    return np.concatenate(
        [
            np.mean(frames, axis=0),
            np.std(frames, axis=0),
        ]
    )


# Generate a fixed-frequency sine tone plus noise for each synthetic clip.
def make_utt(base_freq, dur=0.8):
    t_local = np.arange(int(SR * dur)) / SR
    phase_local = 2 * np.pi * base_freq * t_local
    wav = 0.5 * np.sin(phase_local) + 0.03 * rng.standard_normal(len(t_local))
    n_f = 1 + (len(wav) - frame_len) // hop
    fr = np.stack([wav[i * hop : i * hop + frame_len] for i in range(n_f)])
    return toy_speaker_embedding(fr)


emb_a1 = make_utt(220.0)
emb_a2 = make_utt(225.0)  # nearby tone in oscillator profile A
emb_b = make_utt(400.0)  # oscillator profile B
PythonIn [18]
CollapseExpand
def cosine(u, v):
    return float(u @ v / (np.linalg.norm(u) * np.linalg.norm(v) + 1e-12))


sim_same = cosine(emb_a1, emb_a2)
sim_diff = cosine(emb_a1, emb_b)
ConsoleOut [19]
CollapseExpand
within-profile similarity: 1.000
between-profile similarity: 0.087
decision (threshold 0.8): accept

Run the cells in order so the earlier chirp initializes the random generator used for the tone noise. The threshold separates only these two synthetic pairs. A real verification study needs held-out comparison pairs and separately recorded authorization.

Voice cloning is not a speech-to-speech feature

Choose approved synthetic voices for general use. If a product accepts an identity-bearing reference, verify its separately recorded authorization and enforce that check before use. Speaker similarity, a watermark and a consent record answer different questions.

See the later section on multimodal safety for provenance and consent evaluation. Within this chapter, a reference is acoustic data. A separate record supplies authority to use it.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy