05-08-2020, 05:00 PM | #16 | |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,008
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Quote:
Code:
[root@kindle root]# cd /mnt/us [root@kindle us]# cd extensions [root@kindle extensions]# cd sox [root@kindle sox]# ls /mnt/us/music Multitudes.mp3 record [root@kindle sox]# ls README.txt library playinternetradio.sh config.xml menu.json playurl.sh killgst.sh playall.sh sox killsox.sh playfile.sh soxi [root@kindle sox]# ./playall.sh [root@kindle sox]# ./playall.sh: line 42: /usr/bin/gst-launch: not found The setup is PW3 -> USB-OTG Cable -> USB Sound Card -> Earphones. It worked perfectly on my PW4. Thanks for a such a great extension. |
|
05-08-2020, 06:26 PM | #17 | |
Guru
Posts: 846
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
Quote:
Does Audible work on you PW3? I found that on the PW4 this was supported via gstreamer and the above noted libraries. If they are somewhere else on the PW3 it ought to be possible to fix this. If not, it will take finding out how Audible is supported there. The strings I saw in the mixersink led me to think it would work with USB-OTG as well. That might be another possibility, provide the gstreamer modules as well for PW3. Dave |
|
Advert | |
|
05-08-2020, 07:01 PM | #18 |
Addict
Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
|
is AAC streaming support on the agenda? or not so much.
|
05-08-2020, 07:12 PM | #19 |
Addict
Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
|
this is pretty amazing. here's my updated menu.json with some of my favorite somaFM stations (hardly ever any commercials). crazy to be able to background play music while playing chess or reading my book. what a device!
many thanks! |
05-08-2020, 07:16 PM | #20 |
Guru
Posts: 846
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
That would require adding support for it to sox. At this point I have simply tracked down binaries from Debian Jessie for armel architecture from their repository. Adding AAC support would require obtaining the sox source, adding AAC support from somewhere and building the binary. That is beyond my capabilites at present. Perhaps someone else cound do so and I could incorporate their binary.
Dave |
Advert | |
|
05-08-2020, 07:25 PM | #21 | |
Addict
Posts: 315
Karma: 26
Join Date: Jul 2012
Device: Kindle Paperwhite 4 (2018)
|
Quote:
well a slow clap is deserved for all your efforts thus far! |
|
05-08-2020, 08:55 PM | #22 | |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,008
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Quote:
|
|
05-08-2020, 09:07 PM | #23 |
Guru
Posts: 846
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
Since you have a PW4 I would try copying the gstreamer binaries to the PW3 and place them with the sox binaries and libraries. You will of course need to edit the script to call gst-launch. Check with ldd to see if there are any other libraries required from the PW4. If this works it ought to be able to package an add-on for the PW3 for this.
Dave |
05-08-2020, 10:52 PM | #24 | |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,008
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Quote:
Code:
[root@kindle bin]# ldd -v gst-launch
linux-vdso.so.1 (0x7ec51000)
/usr/lib/libenvload.so (0x76f9f000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x76e99000)
libc.so.6 => /lib/libc.so.6 (0x76d66000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x76d42000)
/lib/ld-linux.so.3 (0x76fa8000)
Version information:
./gst-launch:
libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
/usr/lib/libenvload.so:
libgcc_s.so.1 (GCC_3.5) => /lib/libgcc_s.so.1
libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
/usr/lib/libglib-2.0.so.0:
libc.so.6 (GLIBC_2.7) => /lib/libc.so.6
libc.so.6 (GLIBC_2.9) => /lib/libc.so.6
libc.so.6 (GLIBC_2.8) => /lib/libc.so.6
libc.so.6 (GLIBC_2.15) => /lib/libc.so.6
libc.so.6 (GLIBC_2.17) => /lib/libc.so.6
libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
/lib/libc.so.6:
ld-linux.so.3 (GLIBC_2.4) => /lib/ld-linux.so.3
ld-linux.so.3 (GLIBC_PRIVATE) => /lib/ld-linux.so.3
/lib/libgcc_s.so.1:
libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
Code:
D:\extensions\sox>dir Le volume dans le lecteur D s’appelle Kindle Le numéro de série du volume est 5870-FC60 Répertoire de D:\extensions\sox 2020-05-08 12:07 <DIR> . 2020-05-08 12:07 <DIR> .. 2020-05-01 15:31 279 config.xml 2020-04-30 17:01 75 killgst.sh 2020-05-05 17:40 63 killsox.sh 2020-05-05 17:46 2*367 menu.json 2020-05-09 01:29 1*278 playall.sh 2020-04-30 13:35 918 playfile.sh 2020-05-01 12:58 1*699 playinternetradio.sh 2020-04-30 15:42 1*119 playurl.sh 2020-05-05 17:49 2*179 README.txt 2019-05-28 00:00 168*704 sox 2020-04-22 13:30 168*704 soxi 2020-05-08 12:05 <DIR> library 2019-11-14 21:03 9*212 gst-launch 2019-11-14 21:03 20*248 gst-launch-0.10 2019-11-14 21:03 9*216 gst-typefind 2019-11-14 21:03 9*596 gst-typefind-0.10 2019-11-14 21:03 9*216 gst-xmlinspect 2019-11-14 21:03 17*664 gst-xmlinspect-0.10 2019-11-14 20:41 134*460 ld-linux.so.3 2019-11-14 20:41 1*218*216 libc.so.6 2019-11-14 20:42 4*032 libenvload.so.1 2019-11-14 21:03 4*032 libenvload.so.1.0 2019-11-14 20:05 132 libgcc_s.so 2019-11-14 21:03 116*088 libgcc_s.so.1 2019-11-14 20:41 989*320 libglib-2.0.so 2019-11-14 20:41 989*320 libglib-2.0.so.0 2019-11-14 21:03 9*216 gst-feedback 2019-11-14 21:03 9*212 gst-inspect 2019-11-14 21:03 30*280 gst-inspect-0.10 28 fichier(s) 3*926*845 octets 3 Rép(s) 1*778*819*072 octets libres Code:
[root@kindle root]# PATH=./:$PATH
[root@kindle sox]# ./playall.sh
[root@kindle sox]# ERROR: No version of tool gst-launch found.
Last edited by PoP; 05-09-2020 at 10:46 AM. Reason: "getting this on PW3" precision |
|
05-08-2020, 11:45 PM | #25 |
Guru
Posts: 846
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
Was that executed on the pw4? If so, does it show the same on the pw3?
I had another thought occur. What audio can you play on the pw3, given you say Audible is not supported? If they are establishing a somewhat normal audio environment then sox might be able to use it directly. You can test this by copying sox to play in the same directory. Then try ./play /mnt/us/music/Mutlitudes.mp3 and see what happens. Dave |
05-09-2020, 08:15 AM | #26 | |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,008
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Quote:
^in line Last edited by PoP; 05-13-2020 at 10:32 AM. Reason: found the flite thread |
|
05-09-2020, 12:03 PM | #27 | |
Guru
Posts: 846
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
Quote:
LD_LIBRARY_PATH=./library ./play /mnt/us/music/Multitudes.mp3 If it works great, then I need to figure out how to detect if alsa is supported and customize the scripts. If it doesn't work then add a -V3 option and see what it says. Dave |
|
05-09-2020, 02:51 PM | #28 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,008
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
More details please, copy what, where?
I have alsa (aplay, amixer and arecord) in /usr/bin/ and seemingly aplay can play more than wav: Spoiler:
In your script, do you intend to pipe sox to aplay instead of gst-launch? Code:
.
.
.
export LD_LIBRARY_PATH=/mnt/us/extensions/sox/library:$LD_LIBRARY_PATH
.
.
.
/mnt/us/extensions/sox/sox /var/tmp/playlist.m3u -t raw - -- | /usr/bin/gst-launch \
filesrc location=/dev/stdin \
! audio/x-raw-int, \
endianness='(int)'1234, \
signed='(boolean)'true, \
width='(int)'$Wide, \
depth='(int)'$Wide, \
rate='(int)'$Rate, \
channels='(int)'$Chan \
! queue \
! mixersink&
|
05-09-2020, 03:27 PM | #29 |
Guru
Posts: 846
Karma: 2525050
Join Date: Jun 2010
Device: K3W, PW4
|
Sox (and its play renamed/linked version) will work directly with alsa, so no need to pipe it there instead. As I don't have a pw3 I can't test things directly here and have to rely on feedback from you and others. So I would in particular like you to test the ./play command and see if it works or not. I would also be interested in the output of which alsa on your pw3, as I think that might allow me to detect if it is available for me to use.
Dave |
05-09-2020, 04:34 PM | #30 |
Enthusiast
Posts: 36
Karma: 50
Join Date: Mar 2020
Device: Kindle Paperwhite 4
|
Hi, a noob question, but are you using VoiceView to connect bluetooth headset or is there any other way ? With VoiceView I had to double click everything to select and it's not a good experience when you listen to mp3 audiobook and try to open the ebook page.
|
Tags |
kt4, mp3, pw3, pw4, sox |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PW [KUAL] Yet another clock extension | MrTick | Kindle Developer's Corner | 3 | 10-21-2019 04:06 PM |
xmahjongg for Kindle as Kual extension | Hanspeter | Kindle Developer's Corner | 86 | 12-02-2016 08:06 PM |
kual extension to open a book | shoelesshunter | Kindle Developer's Corner | 14 | 08-16-2016 01:30 PM |
is there any KUAL extension development guide? | fangzi | Kindle Developer's Corner | 2 | 01-02-2014 11:11 AM |