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

Pronouncing IPA? #497

Open
chriseaton opened this issue May 14, 2024 · 10 comments
Open

Pronouncing IPA? #497

chriseaton opened this issue May 14, 2024 · 10 comments

Comments

@chriseaton
Copy link

I've been learning about IPA, and it's been very useful to hear things sounded out.

Is piper capable of speaking IPA phrases? For example /ˈhæpi: ˈdeɪz/ for "happy days"? I read it might use IPA under the hood, so perhaps the ability could be bubbled up or accessed via a special flag?

@synesthesiam
Copy link
Contributor

Not yet, but this will be added in the next version with the SSML phoneme tag

@chriseaton
Copy link
Author

Not yet, but this will be added in the next version with the SSML phoneme tag

Awesome! I look forward to it and am happy to help test if needed, I'll watch this issue and keep an eye out.

@contentnation
Copy link

I have a pull request open to make it work. Sadly not merged yet. #401

@chriseaton
Copy link
Author

I have a pull request open to make it work. Sadly not merged yet. #401

Cool I'll build it and try it out.

@chriseaton
Copy link
Author

chriseaton commented May 27, 2024

I have a pull request open to make it work. Sadly not merged yet. #401

You'll have to excuse me as I'm not a python dev or familiar much with the project source code, but I tried building from your repo+branch, but couldn't seem to get it to work. I think I'm likely missing something in the steps to take, can you point me in the right direction? Here's what I did exactly to try it out:

(installed lib piper_phonemize, build was completed OK as far as I can tell).

git clone https://github.com/contentnation/piper.git && cd piper
git checkout phoneme-in-text
make clean
make all
cd install
echo -n "Dies ist ein [[fˈiːtʃə]] des pull requests." | ./piper -m ...blah blah -f out.wav

The out.wav is no different than the existing release. It's almost like it's not including your changes, but I'm not sure what step I missed. Any thoughts?

@contentnation
Copy link

The project is a little bit confusing in the beginning, no worries.
There are 2 implementations. One is the c++ version that you used.
The change is in the python version.
To use that:
create a venv environment, go to src/python_run, install the requirements and
run "python setup.py install" in there
this will install a python script with the same name "piper"

@chriseaton
Copy link
Author

The project is a little bit confusing in the beginning, no worries... ...

Thanks! I'll give it a try tonight.

@chriseaton
Copy link
Author

@contentnation it worked. Tried it with a few different voices and output was great and serves my purposes. Thank you!

@GeorgeS2019
Copy link

@contentnation

Your approach only work in python, not piper.exe

How would you recommend this project to make it work through piper.exe

@contentnation
Copy link

I did not look into the way the c++ version works. But I assume it's similar. A text to phoneme stage and then audio generation. If it works that way, it can be patched in between as well. This is what the python patch set does.

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

No branches or pull requests

4 participants