Skip to content

Latest commit

 

History

History

soundchoice-g2p

SoundChoice: Grapheme-to-Phoneme Models with Semantic Disambiguation

Input

Text to recognize

  • Example
To be or not to be, that is the question

Output

Phoneme

T-UW- -B-IY- -AO-R- -N-AA-T- -T-UW- -B-IY- -DH-AE-T- -IH-Z- -DH-AH- -K-W-EH-S-CH-AH-N

Requirements

This model requires additional module.

pip3 install transformers

Usage

Automatically downloads the onnx and prototxt files on the first run. It is necessary to be connected to the Internet while downloading.

For the sample text,

$ python3 soundchoice-g2p.py

If you want to specify the input text, put the text after the --input option.

$ python3 soundchoice-g2p.py --input TEXT

Reference

Framework

Pytorch

Model Format

ONNX opset=17

Netron

soundchoice-g2p_atn.onnx.prototxt
soundchoice-g2p_emb.onnx.prototxt
rnn_beam_searcher.onnx.prototxt