Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Pronunciation Dictionary #89

Open
donand opened this issue Nov 26, 2021 · 0 comments
Open

Custom Pronunciation Dictionary #89

donand opened this issue Nov 26, 2021 · 0 comments

Comments

@donand
Copy link

donand commented Nov 26, 2021

Is your feature request related to a problem? Please describe.

Is it possible to pass a custom pronunciation dictionary to the phonemize() function?

Describe the solution you'd like

For example, the sentence Hello Andrea how are you is transcribed to həlˈoʊ ˈændɹiə hˈaʊ ɑːɹ juː in en-us.

Let's say that I want a custom transcription for the word Andrea that is andrˈɛa and not ˈændɹiə, how could I do it?

By passing a dictionary with custom transcriptions this problem would be solved, but I don't know if it's possible to do it in espeak-ng.
The dictionary would have entries like

andrea andrˈɛa
hello həlˈoʊ
...

Describe alternatives you've considered

Another solution could be to pass the word Andrea already transcribed in input in this way Hello {andrˈɛa} how are you, maybe tagged in some way, and get this in output həlˈoʊ andrˈɛa hˈaʊ ɑːɹ juː

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants