Comments (36)
I think the voice name is shorter, just ap (but I might recall incorrectly):
./bin/mimic -voice ap -t "Hello. Doctor. Name. Continue. Yesterday. Tomorrow."
or the path to the voice file
./bin/mimic -voice ./voices/mycroft_voice_4.0.flitevox -t "Hello. Doctor. Name. Continue. Yesterday. Tomorrow."
from mimic1.
I'm working on building and testing on my pi.
from mimic1.
Yes, should be fixed. Closing.
from mimic1.
./bin/mimic -t "Hello. Doctor. Name. Continue. Yesterday. Tomorrow." -o /tmp/hello.wav -v
times faster than real-time: 2.618549
(4.479819 seconds of speech synthesized in 1.710802)
aplay /tmp/hello.wav
Playing WAVE '/tmp/hello.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
from mimic1.
Does sound output work?
./bin/mimic -t "Hello. Doctor. Name. Continue. Yesterday. Tomorrow."
Mycroft's configuration should use the alsa backend if I'm not mistaken.
Edit: I'll start building mimic on my rPi and test it out later tonight.
from mimic1.
In order to find out what is going on, try specifying the voice name as well, just to make sure we are explicit about it:
./bin/mimic -voice ap -t "Hello. Doctor. Name. Continue. Yesterday. Tomorrow."
Update: Fix the command, as @forslund wrote it right.
from mimic1.
I get no sound at all. I've even exported it to a windows machine to play through VLC. No luck on that either.
from mimic1.
This was after i upgraded to a new version. Everything was working previously.
from mimic1.
What version does Picroft report? It scrolls by during the bootup, surrounded by =====. Are you at 0.8.6?
Oh wait, I just read above. Are you not using a Picroft install? Just using the dev setup from Github method?
from mimic1.
That's correct, Mr. Penrod.
I've since tried to install using the apt package and that worked. I'd like to avoid that however since the apt package method does not include the ability to use virtualenv to install python modules. (EDIT: sudo pip seems to work for this actually. Didn't think of that before.)
I've remove the mycroft-core folder and started again, but that did not work either.
So something may be broken in the dev_setup.sh from an already existent install.
from mimic1.
Can you upload the wav somewhere so I can take a look at it.
also it would be interesting to see if the unittest passes. Try running make check
.
from mimic1.
Got the same issue after a fresh compilation on a pi 0: slt, rms voices works, ap outputs nothing.
It does work when I use -voice "voices/mycroft_voice_4.0.flitevox"
which I believe is "ap".
from mimic1.
Thanks @trqx, yes ap
is the precompiled version of voices/mycroft_voice_4.0.flitevox
. That narrows it down somewhat.
from mimic1.
Managed to reproduce and starting to bisect the issue
from mimic1.
Seems to be 3cad70a that introduces this behaviour.
from mimic1.
@forslund Where would be preferable to upload the audio file?
from mimic1.
@BongoEADGC6 since I've managed to get my rPi up and running there is no need to upload it. I've reproduced the issue and am investigating.
from mimic1.
Sorry for giving you trouble... I bet there is a const correctness issue. I maybe added a const
where I should have not and then that const tells the compiler to optimize something.
from mimic1.
@zeehio no need to apologize. The work in cleaning up the build system was huge and one or two bugs are to be expected =)
It's not easy to check all platforms for issues, since this has only cropped up on raspberry Pi it may be some quirk with gcc for that architecture as well.
from mimic1.
@BongoEADGC6, @trqx can any of you try the branch rpi-ap-voice-fix. To verify that what worked for me actually works for others as well. I still have to figure out the correct way to remove the warnings.
from mimic1.
@forslund
I guess git clone https://github.com/MycroftAI/mimic.git -b rpi-voice-ap-fix --depth=1
get only what I need right? Compilation will take a bit of time ony a zero tho.
from mimic1.
@forslund I can confirm, warnings are back and ap voice works with this branch on armv6h.
from mimic1.
Thanks for testing @trqx, tonight I'll re-add the fixes for the warnings one by one and see which one breaks it and how to circumvent it.
from mimic1.
I've pushed an update to the branch and it seems to be working and produces no warnings. I've tested on my Raspberry Pi and on my desktop computer and both seem to work fine.
@BongoEADGC6 or @trqx could one of you verify this before we merge?
from mimic1.
Ok, so I've finally built Mimic twice on the pi. Both the release branch and #100 give me just a pop.
Here is the strace
http://pastebin.com/uXKhHvsu
from mimic1.
Interestingly enough, I can also not run mimic as sudo.
root@raspberrypi:/home/pi/mimic# ./mimic -t hello audio_open_alsa: failed to set hw parameters. Invalid argument.
strace:
http://pastebin.com/KDYXPLLu
from mimic1.
Thanks for testing @aatchison. Did you do a complete build and install? It looks like you are running the system mimic not the locally compiled mimic? I'm guessing you're configuring with --enable-shared
, is this correct?
I've been running my tests directly from the build directory and doing a basic configuration without any specific flags. I'm building a shared lib version now and will try to install it as well.
As for the root issue, I'm having no issues on vanilla Raspbian.
from mimic1.
from mimic1.
I did two complete rebuilds of the #100 branch and for my raspberry Pi it's working ok.
No problem what so ever with the statically built mimic.
The one I built with --enable-shared
and then installing it in the system had some trouble. To run the installed binary I had to help the sysem finding the mimic libraries using
export LD_LIBRARY_PATH=/usr/local/lib
If I didn't specifiy the path I got the following error message:
"mimic: error while loading shared libraries: libttsmimic_lang_all_langs.so.0: cannot open shared object file: No such file or directory"
Looking at @aatchison's strace dump it seem to find the file in the correct place (/usr/local/lib/). Can you try the file before it's installed, running ./mimic
in the build dir?
from mimic1.
For reference this is my procedure:
git clone https://github.com/MycroftAI/mimic.git -b rpi-voice-ap-fix --depth=1 mimic-rpi
cd mimic-rpi
./autogen.sh
mkdir build
cd build
../configure --enable-shared
make
Here I can test the executable before installing:
./mimic -voice ap -t "Hello there, you are looking well. would you like to see a tree house?"
Install on system:
sudo make install
Test system installation
export LD_LIBRARY_PATH=/usr/local/lib
mimic -voice ap -t "Hello there, you are looking well. would you like to see a tree house?"
I have tested this around five times now, Alan Pope speaking loud and clear. Doing the same for master will result in a low buzzing.
@aatchison do you think older mimic installations could be interfering somehow? If they were not uninstalled properly?
from mimic1.
@forslund I realized I was trying to clone the main repo, and not your branch. The steps you listed above worked perfectly fine for me.
from mimic1.
@BongoEADGC6 Nice to hear. I'm still trying to figure out why this works and master doesn't but I'll probably push it as a quick fix during the weekend.
from mimic1.
@BongoEADGC6 the branch has been merged, could you verify that master works for you and close this issue if you're happy.
from mimic1.
I tried to rebuilt from the mycroft-core and was still unable to.
from mimic1.
I see mycroft core hasn't updated the mimic version number...I'll make a PR to update it tonight
from mimic1.
I believe this was fixed at MycroftAI/mycroft-core@4a498d9 . Am I right?
from mimic1.
Related Issues (20)
- Publish prebuilt mimic releases HOT 2
- windows cross-compilation instructions are not exact. HOT 2
- Problem with speaking. HOT 7
- Voice is not playing over bluetooth HOT 3
- Where is the difference between Mimic and Flite? HOT 2
- Linking fails, but easily fixed HOT 2
- Add support for Palm OS HOT 2
- Unable to make standalone mimic pause and resume at will when reading long text from terminal HOT 5
- Compile for pulseaudio HOT 2
- Using mimic libraries HOT 11
- Distorted 'ap' voice output when compiling with gcc 8.3
- mimic -p '' segs HOT 1
- Tool for creating my own .flitevox? HOT 4
- Dead links: festvox.org doesn't work anymore? HOT 3
- Is there a guide for adding new language support to mimic1? HOT 1
- Windows cross compilation error
- Issue while compiling with LTO enabled HOT 1
- Error when running 'make' HOT 5
- At ./autogen.sh: syntax error near unexpected token `newline'
- "Shared" compilation (with --enable-shared=yes) fails. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mimic1.