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

No Speech #8

Open
jsl303 opened this issue Jun 28, 2020 · 4 comments
Open

No Speech #8

jsl303 opened this issue Jun 28, 2020 · 4 comments

Comments

@jsl303
Copy link

jsl303 commented Jun 28, 2020

I'm on Raspberry pi with 2020-05-27-raspios-buster-lite-armhf.img.
I'm trying to get speech to come through Bluealsa.
If I run 'espeak-ng "hello"' in terminal, I hear the speech on my bluetooth speaker.
If I play audio through pyaudio on Python, I also hear it on my bluetooth speaker.

However, if I run 'esng.say("Hello World!")', I hear no speech.
Instead, I get <callable_iterator object at 0xb649b650>.

Here's ~/.asound.
pcm.!default {
type plug
slave.pcm {
type bluealsa
device "11:aa:22:bb:33:cc"
profile "a2dp"
}
}

@jsl303
Copy link
Author

jsl303 commented Jun 28, 2020

Also synth_wav returns empty.
wavs = esng.synth_wav('Hello World!')
len(wavs)
It returns 0.

@Tetsujinfr
Copy link

hi
I had the same issue, but then saw issue #2, where you have to specify the voice to use before calling esng.say(). That did fix the issue for me.
If that works with you, you may want to close the issue.

@j6k4m8
Copy link

j6k4m8 commented Jan 16, 2022

↑ indeed, this was true for me as well! Needed to set a voice or I'd get zero-length iterators.

@AndresLDF
Copy link

Hi everybode
I have tried the code below, in colab, but no luck, it is empty for me

from espeakng import ESpeakNG
import wave 
import io
esng = ESpeakNG()
esng.voice = 'english-us'
esng.pitch = 32
esng.speed = 150 
wavs = esng.synth_wav('Hello World!') 
print(wavs)

it returns
b''

Any idea of what may be happening? any help is welcome, thanks

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