All the tested shields and devices are located in the Shields Test Report as you may know.
I use a standard, cheap no-name USB Sound card (like this one DYNAMODE External USB 2.0 Sound Card Deals | Pcw) with a Galileo 1, running AlexT's version of Yocto.(See CMata's reference to go to AlexT's blog) It has been a while since I did the installation, but I am fairly sure it has ALSA included with it. If not, it is easy enough to install using OPKG
ALSA comes with the version of Yocto AlexT uploaded, but you need to run #opkg install usbutils to install the USB utilities
The only difficulty I had was that when i used a standard micro to USB cable to connect to a USB hub, the Galileo couldn't see the card, but when I bought a micro-USB to female USB connector i could plug the card into the adapter or run a Arduino type USB cable from the adapter to a hub, which has a Arduino/Printer type connector and use the card and other USB devices.
Attached is a small script that runs will cause the Galileo to recognize the card and play some sound files that are included in the repository. after you run the following two commands:
you can use ALSA tools, aplay and arecord, as well as espeak (which is in AlexT''s AlexT_Intel repository) for text to speech.
Any cheap speaker and/or microphone can be plugged into the USB sound card.
Hope this helps
soundtest.sh 460 bytes
I used AlexT_Intel's repo to install espeak on my Gen 1, but when I type espeak in the command shell, I get segfault error.
[15361.924168] espeak: segfault at 0 ip (null) sp bfb56330 error ffff0014 in espeak[8048000+4000]
Can anyone help?
Are you able to play sounds with aplay?
Yes I am .
A few questions
Are you running AlexT's version of Yocto?
If not, you should get it from http://alextgalileo.altervista.org/blog/updated-galileo-devtools-image/
as Standard version lacks many libraries and IoT version isn't compatible with the repository, so will cause problems.
I assume you tried the script I sent, ran modprobe, loaded drivers and could play sounds prior to running espeak, so know it works.
Below is a listing of what I have loaded
Finally was that the entire command, just "espeak"?
Earlier versions used to give errors with some inputs, but that was fixed prior to the version Alex loaded.
If you just type "espeak" it should just wait for some input.
root@YoctoRGB:~# opkg list_installed |grep usb
kernel-module-btusb - 3.8-r0
kernel-module-snd-usb-audio - 3.8-r0
kernel-module-snd-usbmidi-lib - 3.8-r0
kernel-module-usb-common - 3.8-r0
kernel-module-usb-storage - 3.8-r0
kernel-module-usbcore - 3.8-r0
kernel-module-usbhid - 3.8-r0
kernel-module-usbserial - 3.8-r0
libusb-0.1-4 - 1:0.1.4-r1
libusb-1.0-0 - 1.0.9-r1
libusb-1.0-dev - 1.0.9-r1
usbutils - 006-r0
usbutils-dev - 006-r0
usbutils-ids - 006-r0
root@YoctoRGB:~# opkg list_installed |grep alsa
alsa-conf-base - 1.0.26-r0
alsa-lib - 1.0.26-r0
alsa-states - 0.2.0-r3
alsa-tools - 126.96.36.199-r1
alsa-utils - 1.0.26-r0
alsa-utils-aconnect - 1.0.26-r0
alsa-utils-alsaconf - 1.0.26-r0
alsa-utils-alsactl - 1.0.26-r0
alsa-utils-alsaloop - 1.0.26-r0
alsa-utils-alsamixer - 1.0.26-r0
alsa-utils-alsaucm - 1.0.26-r0
alsa-utils-amixer - 1.0.26-r0
alsa-utils-aplay - 1.0.26-r0
alsa-utils-aseqdump - 1.0.26-r0
alsa-utils-aseqnet - 1.0.26-r0
alsa-utils-iecset - 1.0.26-r0
alsa-utils-midi - 1.0.26-r0
alsa-utils-speakertest - 1.0.26-r0
root@YoctoRGB:~# opkg list_installed |grep espeak
espeak - 1.48.04-r0
espeak-dev - 1.48.04-r0
Glad to see you are up and running. I think this will clear up other problems you were having. Mixing libraries from different distributions is never a good idea. I really like parts of the XDK IoT, but can't do a lot of things, so just use AlexT's version
I am getting the same error and i am unable to resolve the issue in any of the steps given in this thread.If this cannot be solved then Is there an alternative for text to speech conversion besides espeak?
The error i get is:
[2118.598510] espeak: segfault at 0 ip (null) sp bfb56330 error ffff0014 in espeak[8048000+4000]
Which image are you using? If you are using the repo form AlexT Galileo Package Repo Configuration Instructions to install espeak, you need to use the uClibc image or the AlexT’s version. If you are not using the opkg package, please let us know how you are installing espeak.
What else you have attached to the board?
i have used the Uclibc image and used Alext galileo repo to install the espeak. i have attached a USB to audio headphone Amazon.in: Buy Intex MAGNA USB Over-Ear Headphone with Mic (Black and Silver) Online at Low Prices in India | Intex Revi… . . the headphone is working since i checked the headphone testing commands and get the appropriate outputs