MP3 123 and voiceRSS streaming MP3 not working
Brought to you by:
sobukus
Hi
Now that Google has retracted API access to their speech code... I was trying to use MPg123 to access streaming MP3.
http://api.voicerss.org/?key=xxxxxxx&hl=en-gb&src=hello
I've changed the API key here xxxx should be your own key...
Problem is - the URL works in a browser, pops up an MP3 player and plays the music - but it is not working wth MPG123 despite that saying is supports MP3 streams...
Any ideas??
It would be helpful to get some more details. What is the output of a
very verbose mpg123 run (-vvv) with that URL? Is it a MIME type problem
(--ignore-mime)? So far I don't have much to grasp on (please forgive
me for not starting an investment of my time checking out that voice
service myself just for this bug).
From some output of mpg123 in the terminal, we at least should get a
hint about the issue being in the protocol or in the stream.
I don't suppose the API key is that big a secret really - here is the debug
output
root@newpi:~# mpg123 -vvv
http://api.voicerss.org/?key=b9ddf3c1645a4ae09256241cf
91cd484&hl=en-gb&src=hello
[1] 29373
[2] 29374
root@newpi:~# Trying output module alsa.
Using default module dir: /usr/lib/arm-linux-gnueabihf/mpg123
Module dir: /usr/lib/arm-linux-gnueabihf/mpg123
Module path: ./output_alsa.so
Output module 'alsa' chosen.
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
Decoder: ARM
Note: Disabling all formats.
Note: checking support for 8000Hz/1ch.
Note: result 0x77ff
Note: Want to enable format 8000/1 for encodings 0x77ff.
Note: checking support for 11025Hz/1ch.
Note: result 0x77ff
Note: Want to enable format 11025/1 for encodings 0x77ff.
Note: checking support for 12000Hz/1ch.
Note: result 0x77ff
Note: Want to enable format 12000/1 for encodings 0x77ff.
Note: checking support for 16000Hz/1ch.
Note: result 0x77ff
Note: Want to enable format 16000/1 for encodings 0x77ff.
Note: checking support for 22050Hz/1ch.
Note: result 0x77ff
Note: Want to enable format 22050/1 for encodings 0x77ff.
Note: checking support for 24000Hz/1ch.
Note: result 0x77ff
Note: Want to enable format 24000/1 for encodings 0x77ff.
Note: checking support for 32000Hz/1ch.
Note: result 0x77ff
Note: Want to enable format 32000/1 for encodings 0x77ff.
Note: checking support for 44100Hz/1ch.
Note: result 0x77ff
Note: Want to enable format 44100/1 for encodings 0x77ff.
Note: checking support for 48000Hz/1ch.
Note: result 0x77ff
Note: Want to enable format 48000/1 for encodings 0x77ff.
Note: checking support for 8000Hz/2ch.
Note: result 0x77ff
Note: Want to enable format 8000/2 for encodings 0x77ff.
Note: checking support for 11025Hz/2ch.
Note: result 0x77ff
Note: Want to enable format 11025/2 for encodings 0x77ff.
Note: checking support for 12000Hz/2ch.
Note: result 0x77ff
Note: Want to enable format 12000/2 for encodings 0x77ff.
Note: checking support for 16000Hz/2ch.
Note: result 0x77ff
Note: Want to enable format 16000/2 for encodings 0x77ff.
Note: checking support for 22050Hz/2ch.
Note: result 0x77ff
Note: Want to enable format 22050/2 for encodings 0x77ff.
Note: checking support for 24000Hz/2ch.
Note: result 0x77ff
Note: Want to enable format 24000/2 for encodings 0x77ff.
Note: checking support for 32000Hz/2ch.
Note: result 0x77ff
Note: Want to enable format 32000/2 for encodings 0x77ff.
Note: checking support for 44100Hz/2ch.
Note: result 0x77ff
Note: Want to enable format 44100/2 for encodings 0x77ff.
Note: checking support for 48000Hz/2ch.
Note: result 0x77ff
Note: Want to enable format 48000/2 for encodings 0x77ff.
Audio driver: alsa
Audio device:
Audio capabilities:
(matrix of [S]tereo or [M]ono support for sample format and rate in Hz)
------|-------|-------|-------|-------|-------|-------|
8000 | M/S | M/S | M/S | M/S | M/S | M/S |
11025 | M/S | M/S | M/S | M/S | M/S | M/S |
12000 | M/S | M/S | M/S | M/S | M/S | M/S |
16000 | M/S | M/S | M/S | M/S | M/S | M/S |
22050 | M/S | M/S | M/S | M/S | M/S | M/S |
24000 | M/S | M/S | M/S | M/S | M/S | M/S |
32000 | M/S | M/S | M/S | M/S | M/S | M/S |
44100 | M/S | M/S | M/S | M/S | M/S | M/S |
48000 | M/S | M/S | M/S | M/S | M/S | M/S |
playlist in normal order:
http://api.voicerss.org/?key=b9ddf3c1645a4ae09256241cf91cd484
Note: Attempting new-style connection to api.voicerss.org
HTTP request:
GET /?key=b9ddf3c1645a4ae09256241cf91cd484 HTTP/1.0
User-Agent: mpg123/1.14.4
Host: api.voicerss.org:80
Accept: audio/mpeg, audio/x-mpeg, audio/mp3, audio/x-mp3, audio/mpeg3,
audio/x-m peg3,
audio/mpg, audio/x-mpg, audio/x-mpegaudio, application/octet-stream, audio
/mpegurl, audio/mpeg-url, audio/x-mpegurl, audio/x-scpls, audio/scpls,
applicati on/pls, /
Icy-MetaData: 1
HTTP in: HTTP/1.1 200 OK
HTTP in: Allow: GET, POST, OPTIONS
HTTP in: Content-Type: text/plain; charset=utf-8
HTTP in: Server: Microsoft-IIS/7.5
HTTP in: Access-Control-Allow-Origin: *
HTTP in: Access-Control-Allow-Methods: GET, POST, OPTIONS
HTTP in: X-Powered-By: ASP.NET
HTTP in: Date: Sat, 26 Dec 2015 16:35:57 GMT
HTTP in: Connection: close
HTTP in: Content-Length: 33
HTTP in:
Warning: additional info in content-type ignored ( charset=utf-8)
[mpg123.c:600] error: Unknown mpeg MIME type text/plain; charset=utf-8 - is
it p erhaps a playlist
(use -@)?
[mpg123.c:601] error: If you know the stream is mpeg1/2 audio, then please
repor t this as mpg123
bug
[1]- Done mpg123 -vvv
http://api.voicerss.org/?key=b9ddf3c16
45a4ae09256241cf91cd484
[2]+ Done hl=en-gb
From: Thomas Orgis [mailto:sobukus@users.sf.net]
Sent: 26 December 2015 16:24
To: [mpg123:bugs] 225@bugs.mpg123.p.re.sf.net
Subject: [mpg123:bugs] Re: #225 MP3 123 and voiceRSS streaming MP3 not
working
I've changed the API key here xxxx should be your own key...
http://www.voicerss.org/
Problem is - the URL works in a browser, pops up an MP3 player and plays the
music - but it is not working wth MPG123 despite that saying is supports MP3
streams...
Any ideas??
It would be helpful to get some more details. What is the output of a
very verbose mpg123 run (-vvv) with that URL? Is it a MIME type problem
(--ignore-mime)? So far I don't have much to grasp on (please forgive
me for not starting an investment of my time checking out that voice
service myself just for this bug).
From some output of mpg123 in the terminal, we at least should get a
hint about the issue being in the protocol or in the stream.
[bugs:#225] http://sourceforge.net/p/mpg123/bugs/225/ MP3 123 and
voiceRSS streaming MP3 not working
Status: open
Group: 0.68
Created: Sat Dec 26, 2015 01:40 PM UTC by Pete
Last Updated: Sat Dec 26, 2015 01:40 PM UTC
Owner: nobody
Hi
Now that Google has retracted API access to their speech code... I was
trying to use MPg123 to access streaming MP3.
http://api.voicerss.org/?key=xxxxxxx
http://api.voicerss.org/?key=xxxxxxx&hl=en-gb&src=hello
&hl=en-gb&src=hello
I've changed the API key here xxxx should be your own key...
http://www.voicerss.org/
Problem is - the URL works in a browser, pops up an MP3 player and plays the
music - but it is not working wth MPG123 despite that saying is supports MP3
streams...
Any ideas??
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/mpg123/bugs/225/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
Related
Bugs:
#225The server sends something as plain text. Is it a playlist? Try using
-@ on the command line. But you might need to add --ignore-mime, too,
which is available in recent mpg123 versions (1.14.x is not that fresh)
What is the written data of
? Does it look like PLS? M3U?
So the answer to the WGET question is
ERROR: The API key is not available!
I also tried it on the full version.
http://api.voicerss.org/?key=87273ff6f9054afc9379fe0b04c92efa
http://api.voicerss.org/?key=87273ff6f9054afc9379fe0b04c92efa&src=hello
&src=hello
Which on a PC opens a default MP3 player to play "hello"
I tried the options below..
mpg123 -@ --ignore-mime
http://api.voicerss.org/?key=87273ff6f9054afc9379fe0b04c92efa&src=hello
[1] 15592
root@newpi:~# High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2
and 3
--ignore-mime: No such file or directory
From: Thomas Orgis [mailto:sobukus@users.sf.net]
Sent: 26 December 2015 22:43
To: [mpg123:bugs] 225@bugs.mpg123.p.re.sf.net
Subject: [mpg123:bugs] Re: #225 MP3 123 and voiceRSS streaming MP3 not
working
HTTP in: Content-Type: text/plain; charset=utf-8
HTTP in: Server: Microsoft-IIS/7.5
[mpg123.c:600] error: Unknown mpeg MIME type text/plain; charset=utf-8 - is
it p erhaps a playlist
(use -@)?
[mpg123.c:601] error: If you know the stream is mpeg1/2 audio, then please
repor t this as mpg123
The server sends something as plain text. Is it a playlist? Try using
-@ on the command line. But you might need to add --ignore-mime, too,
which is available in recent mpg123 versions (1.14.x is not that fresh)
What is the written data of
wget -O plain.txt
http://api.voicerss.org/?key=b9ddf3c1645a4ae09256241cf91cd484
? Does it look like PLS? M3U?
[bugs:#225] http://sourceforge.net/p/mpg123/bugs/225/ MP3 123 and
voiceRSS streaming MP3 not working
Status: open
Group: 0.68
Created: Sat Dec 26, 2015 01:40 PM UTC by Pete
Last Updated: Sat Dec 26, 2015 01:40 PM UTC
Owner: nobody
Hi
Now that Google has retracted API access to their speech code... I was
trying to use MPg123 to access streaming MP3.
http://api.voicerss.org/?key=xxxxxxx
http://api.voicerss.org/?key=xxxxxxx&hl=en-gb&src=hello
&hl=en-gb&src=hello
I've changed the API key here xxxx should be your own key...
http://www.voicerss.org/
Problem is - the URL works in a browser, pops up an MP3 player and plays the
music - but it is not working wth MPG123 despite that saying is supports MP3
streams...
Any ideas??
Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/mpg123/bugs/225/
To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/
Related
Bugs:
#225There is one obvious option to try. The HTTP code in mpg123 gets
updated now and then. I checked your URL with the current version
(1.22.4):
shell$ mpg123 -vvv 'http://api.voicerss.org/?key=87273ff6f9054afc9379fe0b04c92efa&src=hello'
Trying output module alsa.
Using default module dir: /usr/lib/mpg123
Module dir: /usr/lib/mpg123
Module path: ./output_alsa.so
Output module 'alsa' chosen.
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.22.4; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes
Decoder: x86-64 (SSE)
[…]
playlist in normal order:
http://api.voicerss.org/?key=87273ff6f9054afc9379fe0b04c92efa&src=hello
Note: Attempting new-style connection to api.voicerss.org
HTTP request:
GET /?key=87273ff6f9054afc9379fe0b04c92efa&src=hello HTTP/1.0
User-Agent: mpg123/1.22.4
Host: api.voicerss.org:80
Accept: audio/mpeg, audio/x-mpeg, audio/mp3, audio/x-mp3, audio/mpeg3, audio/x-mpeg3, audio/mpg, audio/x-mpg, audio/x-mpegaudio, application/octet-stream, audio/mpegurl, audio/mpeg-url, audio/x-mpegurl, audio/x-scpls, audio/scpls, application/pls, application/x-scpls, /
Icy-MetaData: 1
HTTP in: HTTP/1.1 200 OK
HTTP in: Cache-Control: private
HTTP in: Allow: GET, POST, OPTIONS
HTTP in: Content-Length: 1691
HTTP in: Content-Type: audio/mpeg
HTTP in: Server: Microsoft-IIS/7.5
HTTP in: Access-Control-Allow-Origin: *
HTTP in: Access-Control-Allow-Methods: GET, POST, OPTIONS
HTTP in: X-AspNet-Version: 4.0.30319
HTTP in: X-Powered-By: ASP.NET
HTTP in: Date: Sun, 27 Dec 2015 13:56:34 GMT
HTTP in: Connection: close
HTTP in:
Info: ICY interval 0
Directory: http://api.voicerss.org/
Playing MPEG stream 1 of 1: ?key=87273ff6f9054afc9379fe0b04c92efa&src=hello ...
Note: Input data end.
Note: ID3v2.4 rev 0 tag of 25 bytes
Note: ID3v2 TSSE frame of size 15
Note: Xing/Lame/Info header detected
Note: Xing: 20 frames
Note: Xing: 1656 bytes
Note: Info: Encoder: Lavf54.21
Note: Info: rev 3
Note: Info: vbr mode 14
Note: Info: peak = 0.000000 (I won't use this)
Note: Info: Radio Gain = 0.0dB
Note: Info: Audiophile Gain = 0.0dB
Note: Encoder delay = 576; padding = 0
Note: New output format 8000Hz 1ch, format 208
MPEG 2.5, Layer: III, Freq: 8000, mode: Single-Channel, modext: 0, BPF : 72
Channels: 1, copyright: No, original: Yes, CRC: No, emphasis: 0.
Bitrate: VBR Extension value: 0
Note: Cut frame 1 buffer on beginning of stream by 529 samples, fill now 94 bytes.
Frame# 19 [ 1], Time: 00:01.36 [00:00.07], RVA: off, Vol: 100(100)Note: Input data end.
Frame# 19 [ 1], Time: 00:01.36 [00:00.07], RVA: off, Vol: 100(100)
[0:01] Decoding of ?key=87273ff6f9054afc9379fe0b04c92efa&src=hello finished.
I don't know off-hand which change in the HTTP behaviour fixes this
particular stream, but a fresh mpg123 gets a nice piece of audio/mpeg
and is happy.
Just for completeness:
The -@ expects the playlist as parameter, so --ignore-mime was taken as
playlist URL here.
I have no idea why it now works – as I checked and I already had the latest version – but thank you very much – problem resolved… The only thing different is that in your version there’s a single quote around the whole url.
Done a complete article on it now it works.. http://tech.scargill.net/node-red-speech-the-sequel/
Pete.
oot@newpi:~# apt-get install mpg123
Reading package lists... Done
Building dependency tree
Reading state information... Done
mpg123 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@newpi:~#
From: Thomas Orgis [mailto:sobukus@users.sf.net]
Sent: 27 December 2015 14:02
To: [mpg123:bugs] 225@bugs.mpg123.p.re.sf.net
Subject: [mpg123:bugs] Re: #225 MP3 123 and voiceRSS streaming MP3 not working
I tried the options below..
There is one obvious option to try. The HTTP code in mpg123 gets
updated now and then. I checked your URL with the current version
(1.22.4):
shell$ mpg123 -vvv 'http://api.voicerss.org/?key=87273ff6f9054afc9379fe0b04c92efa&src=hello'
Trying output module alsa.
Using default module dir: /usr/lib/mpg123
Module dir: /usr/lib/mpg123
Module path: ./output_alsa.so
Output module 'alsa' chosen.
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.22.4; written and copyright by Michael Hipp and others
free software (LGPL) without any warranty but with best wishes
Decoder: x86-64 (SSE)
[…]
playlist in normal order:
http://api.voicerss.org/?key=87273ff6f9054afc9379fe0b04c92efa http://api.voicerss.org/?key=87273ff6f9054afc9379fe0b04c92efa&src=hello &src=hello
Note: Attempting new-style connection to api.voicerss.org
HTTP request:
GET /?key=87273ff6f9054afc9379fe0b04c92efa&src=hello HTTP/1.0
User-Agent: mpg123/1.22.4
Host: api.voicerss.org:80
Accept: audio/mpeg, audio/x-mpeg, audio/mp3, audio/x-mp3, audio/mpeg3, audio/x-mpeg3, audio/mpg, audio/x-mpg, audio/x-mpegaudio, application/octet-stream, audio/mpegurl, audio/mpeg-url, audio/x-mpegurl, audio/x-scpls, audio/scpls, application/pls, application/x-scpls, /
Icy-MetaData: 1
HTTP in: HTTP/1.1 200 OK
HTTP in: Cache-Control: private
HTTP in: Allow: GET, POST, OPTIONS
HTTP in: Content-Length: 1691
HTTP in: Content-Type: audio/mpeg
HTTP in: Server: Microsoft-IIS/7.5
HTTP in: Access-Control-Allow-Origin: *
HTTP in: Access-Control-Allow-Methods: GET, POST, OPTIONS
HTTP in: X-AspNet-Version: 4.0.30319
HTTP in: X-Powered-By: ASP.NET
HTTP in: Date: Sun, 27 Dec 2015 13:56:34 GMT
HTTP in: Connection: close
HTTP in:
Info: ICY interval 0
Directory: http://api.voicerss.org/
Playing MPEG stream 1 of 1: ?key=87273ff6f9054afc9379fe0b04c92efa&src=hello ...
Note: Input data end.
Note: ID3v2.4 rev 0 tag of 25 bytes
Note: ID3v2 TSSE frame of size 15
Note: Xing/Lame/Info header detected
Note: Xing: 20 frames
Note: Xing: 1656 bytes
Note: Info: Encoder: Lavf54.21
Note: Info: rev 3
Note: Info: vbr mode 14
Note: Info: peak = 0.000000 (I won't use this)
Note: Info: Radio Gain = 0.0dB
Note: Info: Audiophile Gain = 0.0dB
Note: Encoder delay = 576; padding = 0
Note: New output format 8000Hz 1ch, format 208
MPEG 2.5, Layer: III, Freq: 8000, mode: Single-Channel, modext: 0, BPF : 72
Channels: 1, copyright: No, original: Yes, CRC: No, emphasis: 0.
Bitrate: VBR Extension value: 0
Note: Cut frame 1 buffer on beginning of stream by 529 samples, fill now 94 bytes.
Frame# 19 [ 1], Time: 00:01.36 [00:00.07], RVA: off, Vol: 100(100)Note: Input data end.
Frame# 19 [ 1], Time: 00:01.36 [00:00.07], RVA: off, Vol: 100(100)
[0:01] Decoding of ?key=87273ff6f9054afc9379fe0b04c92efa&src=hello finished.
I don't know off-hand which change in the HTTP behaviour fixes this
particular stream, but a fresh mpg123 gets a nice piece of audio/mpeg
and is happy.
Just for completeness:
mpg123 -@ --ignore-mime
The -@ expects the playlist as parameter, so --ignore-mime was taken as
playlist URL here.
http://sourceforge.net/p/mpg123/bugs/225/ [bugs:#225] MP3 123 and voiceRSS streaming MP3 not working
Status: open
Group: 0.68
Created: Sat Dec 26, 2015 01:40 PM UTC by Pete
Last Updated: Sat Dec 26, 2015 01:40 PM UTC
Owner: nobody
Hi
Now that Google has retracted API access to their speech code... I was trying to use MPg123 to access streaming MP3.
http://api.voicerss.org/?key=xxxxxxx http://api.voicerss.org/?key=xxxxxxx&hl=en-gb&src=hello &hl=en-gb&src=hello
I've changed the API key here xxxx should be your own key...
http://www.voicerss.org/
Problem is - the URL works in a browser, pops up an MP3 player and plays the music - but it is not working wth MPG123 despite that saying is supports MP3 streams...
Any ideas??
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/mpg123/bugs/225/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Bugs:
#225Am Sun, 27 Dec 2015 15:26:04 +0000
schrieb "Pete" scargill@users.sf.net:
That's a likely cause: Without the quotes, the & symbol in the URL is
interpreted by the shell. Running
is equivalent to
. In this case, the separated part indeed still is valid shell code,
assigning a value to the variable src. The ? in there could also be
interpreted, but only if you have strange files existing on your disk.
Ah, interesting. I guess for recurring short alert messages one can
keep a local cache of message files and avoid calling out to the web
all the time. Actually, you can use the --streamdump parameter to get a
copy of the data mpg123 is playing and might re-use that.
I just need to figure out how to queue the speech now. Node-Red fires off asynchronous connects – hence running more than one of mpg123 – and that means overlapping speech… but that is a detail – it all works – thanks.
Pete.
From: Thomas Orgis [mailto:sobukus@users.sf.net]
Sent: 27 December 2015 15:34
To: [mpg123:bugs] 225@bugs.mpg123.p.re.sf.net
Subject: [mpg123:bugs] Re: #225 MP3 123 and voiceRSS streaming MP3 not working
Am Sun, 27 Dec 2015 15:26:04 +0000
schrieb "Pete" scargill@users.sf.net scargill@users.sf.net :
The only thing different is that in your version there’s a single quote around the whole url.
That's a likely cause: Without the quotes, the & symbol in the URL is
interpreted by the shell. Running
shell$ mpg123 -vvv http://api.voicerss.org/?key=87273ff6f9054afc9379fe0b04c92efa http://api.voicerss.org/?key=87273ff6f9054afc9379fe0b04c92efa&src=hello &src=hello
is equivalent to
shell$ mpg123 -vvv http://api.voicerss.org/?key=87273ff6f9054afc9379fe0b04c92efa &
shell# src=hello
. In this case, the separated part indeed still is valid shell code,
assigning a value to the variable src. The ? in there could also be
interpreted, but only if you have strange files existing on your disk.
Done a complete article on it now it works.. http://tech.scargill.net/node-red-speech-the-sequel/
Ah, interesting. I guess for recurring short alert messages one can
keep a local cache of message files and avoid calling out to the web
all the time. Actually, you can use the --streamdump parameter to get a
copy of the data mpg123 is playing and might re-use that.
[bugs:#225] http://sourceforge.net/p/mpg123/bugs/225/ MP3 123 and voiceRSS streaming MP3 not working
Status: open
Group: 0.68
Created: Sat Dec 26, 2015 01:40 PM UTC by Pete
Last Updated: Sat Dec 26, 2015 01:40 PM UTC
Owner: nobody
Hi
Now that Google has retracted API access to their speech code... I was trying to use MPg123 to access streaming MP3.
http://api.voicerss.org/?key=xxxxxxx http://api.voicerss.org/?key=xxxxxxx&hl=en-gb&src=hello &hl=en-gb&src=hello
I've changed the API key here xxxx should be your own key...
http://www.voicerss.org/
Problem is - the URL works in a browser, pops up an MP3 player and plays the music - but it is not working wth MPG123 despite that saying is supports MP3 streams...
Any ideas??
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/mpg123/bugs/225/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Bugs:
#225