Espeak segmentation fault

OPENWRT_RELEASE="OpenWrt 21.02.0 r16279-5cc0535800"

It works:
wget -O - | madplay -
I hear sound

It doesnt
espeak "hello" --stdout | madplay -
because of err:
Segmentation fault

which I suppose is result of:

[26114.685231] do_page_fault(): sending SIGSEGV to espeak for invalid read access from 010a3c9a
[26114.693876] epc = 77db0deb in[77d9c000+3c000]
[26114.700135] ra  = 77db0db9 in[77d9c000+3c000]

If anybody has it working please let me know how to configure it properly

Thank you.

@pilovis Hello)))

Use svox package instead

opkg update && opkg install kmod-usb-audio alsa-utils svox

Try these commands to check your router is ready:

    # Generate an audio file
    pico2wave -w /tmp/voz.wav -l en-US "This command will generate an audio file in american English."
    # Set volume to 50%
    amixer set Headphone 50%
    # Play the audio file
    aplay -q -f S16_LE -D plughw:0,0 /tmp/voz.wav
1 Like

@pilovis Thank you.
I am going back to 19.07 and will check it later.

It seems my TL-WDR4300 is too weak for internet radio.
I have 100% CPU utilization and I hear interruptions
I test it on
wget -O - | madplay -
other streams and mp3 files no matter it takes 100%

Maybe it does not optimized or has any issues in 21.02
Going to try 19.07 and depends on the result 18.06

TL-WDR4300 is very powerful, 128 MB ram & 560 Mhz CPU, you shouldn't have any problem.
Use 19.07, openwrt 21.02 version is too buggy.

I used TL-WDR701, 32 MB ram and 360 Mhz CPU, Openwrt Barrier Breaker and above (21.02 not tested), internet radio works perfectly (wget & madplay)

I use mpg123 for Internet radio. mpg123 can also directly stream a http URL but for https you need to pipe from wget etc.

Edit: madplay - seems to max the CPU core it is running on, which would be particularly bad on a single core machine.

19.07.8 is good enough I see x10 better performance and everything is working

Well except espeak which still shows Segmentation fault.
It seems work only on the "paper" of wiki

Of course I installed svox and it works perfectly.
Thank you.

@mk24 thank you but I am deploying many services(nfs, ddns, vsftps, igmp and so on) and I am looking for the most lightweight for each one just to be sure they will work 24/7 and without fighting for resources in the highest peaks of usage.
In other words I sacrifice some functionality in order to have everything working

Conclusion: I do not why but 21.02 does not work as a usb-audio provider in my situation.
If you started configuring it just flash 19.07. You will save much time.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.