MycroftAI / mimic1

Mycroft's TTS engine, based on CMU's Flite (Festival Lite)
https://mimic.mycroft.ai
Other
826 stars 153 forks source link

Voice is not playing over bluetooth #212

Open shyam3089 opened 3 years ago

shyam3089 commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error '....'

Expected behavior A clear and concise description of what you expected to happen.

Log files If possible, add log files from /var/log/mycroft/ to help explain your problem.

You may also include screenshots, however screenshots of log files are often difficult to read and parse.

If you are running Mycroft, the Support Skill helps to automate gathering this information. Simply say "Create a support ticket" and the Skill will put together a support package and email it to you.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

Please think carefully about whether you have modified anything in Mycroft's code or configuration files. If so, can you reproduce this on a clean installation of Mycroft? Many "bugs" turn out to be non-standard configuration errors.

shyam3089 commented 3 years ago

I have found this weird issue, I'm trying to create a voice assistant in raspberry pi and when I connect to a bluetooth speaker only the text to speech voice is not playing. I tested the connection by playing an mp3 file and it works fine(using pygame).

Mimic voice is playing If i switch audio output to analog (audio jack).

This command works fine with analog output but I don't hear any sound with a bluetooth connection.

/home/pi/mimic1/mimic --setf duration_stretch=0.75 --setf 'int_f0_target_stddev=20' --setf 'f0_shift=1' -voice /home/pi/mimic1/voices/cmu_us_rms.flitevox --setf 'int_f0_target_mean=120' -t 'hello, how are you'

forslund commented 3 years ago

Hi @shyam3089 have you built mimic from source? and if so did you configure any specific audiobackend? It defaults to alsa, I wonder if it would be worth trying compiling with pulseaudio as audio backend?

shyam3089 commented 3 years ago

Yeah I built it from source. I will try that. I had issues related to alsa. May be I messed up something.