Abstract
End-to-end speech synthesis models directly convert the input characters into an audio representation (e.g., spectrograms). Despite their impressive performance, such models have difficulty disambiguating the pronunciations of identically spelled words. To mitigate this issue, a separate Grapheme-to-Phoneme (G2P) model can be employed to convert the characters into phonemes before synthesizing the audio. This paper proposes SoundChoice, a novel G2P architecture that processes entire sentences rather than operating at the word level. The proposed architecture takes advantage of a weighted homograph loss (that improves disambiguation), exploits curriculum learning (that gradually switches from word-level to sentence-level G2P), and integrates word embeddings from BERT (for further performance improvement). Moreover, the model inherits the best practices in speech recognition, including multi-task learning with Connectionist Temporal Classification (CTC) and beam search with an embedded language model. As a result, SoundChoice achieves a Phoneme Error Rate (PER) of 2.65% on whole-sentence transcription using data from LibriSpeech and Wikipedia.
Introduction
In Text-to-Speech (TTS) systems, the initial stage involves converting written text (graphemes) into phonetic representations (phonemes). While modern neural models excel at standard transcription, they frequently struggle with homographs—words that share the same spelling but differ in pronunciation based on context (e.g., "bass" as a fish [bæs] vs. "bass" as a low-frequency sound [beɪs]).
Traditional G2P models often operate at the word level, lacking the necessary context to resolve such ambiguities. While separate disambiguation classifiers can be used, they increase system complexity. SoundChoice addresses this by providing a unified, end-to-end architecture capable of both high-accuracy transcription and robust semantic disambiguation.
Proposed Architecture
SoundChoice utilizes an encoder-decoder framework designed to capture both local character patterns and global semantic context.
Key architectural features include:
- Sentence-Level Processing: By ingesting entire sentences, the model captures syntactic and semantic clues essential for disambiguation.
- Hybrid Embeddings: The system concatenates character-level embeddings with word-level embeddings from a pre-trained BERT model, injecting high-level linguistic knowledge.
- Multi-Task Learning: The model is trained using a combination of Connectionist Temporal Classification (CTC) loss on the encoder and Negative Log-Likelihood (NLL) on the decoder.
- Weighted Homograph Loss: A specialized loss function specifically penalizes mispronunciations of known homographs more heavily, forcing the network to prioritize contextual accuracy for ambiguous terms.
Experimental Setup
The model was evaluated using a combination of datasets, including LibriSpeech alignments for sentence-level training and Google Wikipedia data for homograph disambiguation. The training followed a curriculum learning strategy, starting with simple word lexicons before progressing to full sentences and finally fine-tuning on specific homograph datasets. To facilitate future research, the authors released the LibriG2P dataset, which combines these sources into a robust benchmark.
Results and Analysis
The transition from word-level to sentence-level processing provided the most significant performance boost, reducing the Phoneme Error Rate (PER) by approximately 47%.
Key insights from the ablation study include:
- The "Space" Token: Explicitly representing word boundaries with a space token improved accuracy by 18%.
- BERT's Role: While BERT embeddings did not drastically lower the overall PER for standard words, they were critical for homograph disambiguation, where the model achieved 94% accuracy.
- Model Selection: Despite the prevalence of Transformers, the authors found that an RNN-based architecture (LSTM encoder and GRU decoder) slightly outperformed Transformer/Conformer variants for this specific task.
Conclusion
SoundChoice demonstrates that integrating sentence-level context and pre-trained semantic embeddings significantly improves G2P performance, particularly for the challenging task of homograph disambiguation. Achieving a PER of 2.65%, the model offers a robust front-end for context-aware speech synthesis. Future work will focus on multilingual support and direct integration into end-to-end TTS engines.
Summary updated