Hi Paridhi
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.
rgb
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 - 1.0.26.1-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