How to play sound from the command line?
I need to play a sound from the command line. Which program and which format should I use ? bye Ronald Wiplinger
I need to play a sound from the command line. Which program and which format should I use ?
Try play <filename> I believe it can determine the file format on it's own. If not, use the -t option. man play -- Marshall Lake -- mlake@mlake.net -- http://mlake.net
Marshall Lake wrote:
I need to play a sound from the command line. Which program and which format should I use ?
Try play <filename>
I believe it can determine the file format on it's own. If not, use the -t option.
man play
Or try: splay <filename> Works well for WAV and MP3 files. - James W.
James Wright wrote:
Marshall Lake wrote:
I need to play a sound from the command line. Which program and which format should I use ?
Try play <filename>
I believe it can determine the file format on it's own. If not, use the -t option.
man play
Or try:
splay <filename>
Works well for WAV and MP3 files.
- James W.
The problem was also interesting for me, but there is no commands play and splay in my system? No manual entries too... Should I install something? Does it plays in runlevel 3 ? -- Sergey Mkrtchyan Scientific Researcher Department of Molecular Physics, Faculty of Physics, Yerevan State University Tel: (374-10) 55-43-41 Fax: (374-10) 57-76-89
Try play <filename>
The problem was also interesting for me, but there is no commands play and splay in my system? No manual entries too...
Should I install something?
I believe the play command is part of the sox install.
Does it plays in runlevel 3 ?
Yes. -- Marshall Lake -- mlake@mlake.net -- http://mlake.net
Marshall Lake wrote:
I believe the play command is part of the sox install.
Does it plays in runlevel 3 ?
Yes.
I installed sox, but now it refuses to play mp3s...something like "Failed reading blablabla.mp3 Do not understand format type: mp3" I was able to play mp3s in graphical mode after installing plugin xmms-mpg123-1.2.7-21.i386.rpm, maybe I should install some other for console mode too? Regards, -- Sergey Mkrtchyan Scientific Researcher Department of Molecular Physics, Faculty of Physics, Yerevan State University Tel: (374-10) 55-43-41 Fax: (374-10) 57-76-89
Peter Groff wrote:
I was able to play mp3s in graphical mode after installing plugin xmms-mpg123-1.2.7-21.i386.rpm, maybe I should install some other for console mode too?
Try mpg321, that works okay for me.
-bash: mpg321: Command not found seems strange...so it isn't a part of sox, is it? -- Sergey Mkrtchyan Scientific Researcher Department of Molecular Physics, Faculty of Physics, Yerevan State University Tel: (374-10) 55-43-41 Fax: (374-10) 57-76-89
* Sergey Mkrtchyan
-bash: mpg321: Command not found
seems strange...so it isn't a part of sox, is it?
not on my sys, mpg321-0.2.10-419.rpm -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
Patrick Shanahan wrote:
* Sergey Mkrtchyan
[05-06-06 08:33]: -bash: mpg321: Command not found
seems strange...so it isn't a part of sox, is it?
not on my sys, mpg321-0.2.10-419.rpm
Ah, that is what I felt (;)) should have been installed on my sys. If it wont take you too much time(and if it is not over 1MB), can you please send it to my email. Many thanks -- Sergey Mkrtchyan Scientific Researcher Department of Molecular Physics, Faculty of Physics, Yerevan State University Tel: (374-10) 55-43-41 Fax: (374-10) 57-76-89
* Sergey Mkrtchyan
Ah, that is what I felt (;)) should have been installed on my sys. If it wont take you too much time(and if it is not over 1MB), can you please send it to my email.
It is available from SUSE. Open Yast2, Software Management, and search for mpg321. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
Patrick Shanahan wrote:
* Sergey Mkrtchyan
[05-06-06 09:08]: Ah, that is what I felt (;)) should have been installed on my sys. If it wont take you too much time(and if it is not over 1MB), can you please send it to my email.
It is available from SUSE. Open Yast2, Software Management, and search for mpg321.
YaST gives its "No Results" for mpg321, and there is no such a package in the DVD. Sure I have done it before writing :) Regards -- Sergey Mkrtchyan Scientific Researcher Department of Molecular Physics, Faculty of Physics, Yerevan State University Tel: (374-10) 55-43-41 Fax: (374-10) 57-76-89
Op zaterdag 6 mei 2006 16:55, schreef Sergey Mkrtchyan:
It is available from SUSE. Open Yast2, Software Management, and search for mpg321.
YaST gives its "No Results" for mpg321, and there is no such a package in the DVD. Sure I have done it before writing :)
get it from packman: 10.1-i386/base > zgrep mpg321 cont* mpg321;0.2.10-530;i586;packman -- Richard Bos Without a home the journey is endless
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday 06 May 2006 16:55, Sergey Mkrtchyan wrote:
Patrick Shanahan wrote:
* Sergey Mkrtchyan
[05-06-06 09:08]: Ah, that is what I felt (;)) should have been installed on my sys. If it wont take you too much time(and if it is not over 1MB), can you please send it to my email.
It is available from SUSE. Open Yast2, Software Management, and search for mpg321.
YaST gives its "No Results" for mpg321, and there is no such a package in the DVD. Sure I have done it before writing :)
Try http://packman.links2linux.de You will find there all the multimedia packets which are missing from the standard SUSE distro, including mpg321. Download the packets you need for your version of SUSE and install them with rpm -ihv <name of the packet>. Bye, Jürgen - -- BR Technologies GmbH & Co.KG Im Bahlbrink 11-13, D-30827 Garbsen, Germany Tel : +49-5131-4404-20 - Fax: +49-5131-4404-56 e-Mail: mell@br-tech.de - Internet: www.br-tech.de -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFEXLumB4NmPJNW5OERAgR+AJ4pRT8VAY69bkVEIsvTOP3HPdAKwQCfbByz rJzWzIuu/d6KhC03KcQkNP4= =yB8m -----END PGP SIGNATURE-----
Jürgen Mell wrote:
Try http://packman.links2linux.de
You will find there all the multimedia packets which are missing from the standard SUSE distro, including mpg321. Download the packets you need for your version of SUSE and install them with rpm -ihv <name of the packet>.
Bye, Jürgen
Sorry for being so problematic, but I'm again in strange troubles. I downloaded the mpg321 from the site you told me, now when I am trying to install it it gives linux:~/Install/mpgplug10.0 # rpm -i mpg321-0.2.10-530.x86_64.rpm warning: mpg321-0.2.10-530.x86_64.rpm: V3 DSA signature: NOKEY, key ID 5f6842a4 error: Failed dependencies: libao.so.2()(64bit) is needed by mpg321-0.2.10-530 libc.so.6()(64bit) is needed by mpg321-0.2.10-530 libc.so.6(GLIBC_2.2.5)(64bit) is needed by mpg321-0.2.10-530 libc.so.6(GLIBC_2.3)(64bit) is needed by mpg321-0.2.10-530 libc.so.6(GLIBC_2.3.4)(64bit) is needed by mpg321-0.2.10-530 libdl.so.2()(64bit) is needed by mpg321-0.2.10-530 libid3tag.so.0()(64bit) is needed by mpg321-0.2.10-530 libmad.so.0()(64bit) is needed by mpg321-0.2.10-530 libz.so.1()(64bit) is needed by mpg321-0.2.10-530 When I search for the libraries using "pin" for one of the libraries it gives pin 0.34 - package info for libid3tag-0.15.1b-22.i586.rpm ------------------------------------------------------------------ *** no rpm named libid3tag-0.15.1b-22.i586.rpm installed ------------------------------------------------------------------ ------------------------------------------------------------------ *** zgrep libid3tag-0.15.1b-22.i586.rpm /var/lib/pin/ARCHIVES.gz ------------------------------------------------------------------ ---> ./DVD1/suse/i586/libid3tag-0.15.1b-22.i586.rpm so concluding from the second line there is no such a library installed on my system, but when I try to install it it says that it is already installed, linux:~/Install/mpgplug10.0 # rpm -i libid3tag-0.15.1b-22.i586.rpm package libid3tag-0.15.1b-22 is already installed So where do I go from here now? And can anybody told me what this warning means, warning: mpg321-0.2.10-530.x86_64.rpm: V3 DSA signature: NOKEY, key ID 5f6842a4 I downloaded from that site also a file asc(64).txt which contains the following -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBEMO4B45gpPV9oQqQRAvHFAKCSYs8lZsZNCGUf426vO9juLfKfKQCeLZlI +LRlWuXmuGLju+kc8tYk0k0= =QuT4 -----END PGP SIGNATURE----- Is this the source of the warning, should I somehow "connect" this file to the rpm package? Thank you all very much, -- Sergey Mkrtchyan Scientific Researcher Department of Molecular Physics, Faculty of Physics, Yerevan State University Tel: (374-10) 55-43-41 Fax: (374-10) 57-76-89
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2006-05-11 at 15:42 +0500, Sergey Mkrtchyan wrote:
linux:~/Install/mpgplug10.0 # rpm -i mpg321-0.2.10-530.x86_64.rpm warning: mpg321-0.2.10-530.x86_64.rpm: V3 DSA signature: NOKEY, key ID 5f6842a4 error: Failed dependencies: libao.so.2()(64bit) is needed by mpg321-0.2.10-530 libc.so.6()(64bit) is needed by mpg321-0.2.10-530 libc.so.6(GLIBC_2.2.5)(64bit) is needed by mpg321-0.2.10-530
You are installing the 64 bit version of mpg321, so you need the 64 bit version of GLIBC; my guess is that you don't even have a 64 bit system - because you certainly have glibc installed, or your system would not even run.
pin 0.34 - package info for libid3tag-0.15.1b-22.i586.rpm
------------------------------------------------------------------ *** no rpm named libid3tag-0.15.1b-22.i586.rpm installed
...
so concluding from the second line there is no such a library installed on my system, but when I try to install it it says that it is already installed,
linux:~/Install/mpgplug10.0 # rpm -i libid3tag-0.15.1b-22.i586.rpm package libid3tag-0.15.1b-22 is already installed
The output of the rpm command is the one that matters. The output of pin can be confused because it doesn't expect a full rpm name.
So where do I go from here now?
And can anybody told me what this warning means, warning: mpg321-0.2.10-530.x86_64.rpm: V3 DSA signature: NOKEY, key ID 5f6842a4
It means, I think, it could not check the signature of the package. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFEYxrItTMYHG2NR9URAlJYAKCSqkE8J6ZTDUhqEvY3bSznzQPC/ACfVFWT Zo6vndGN3+9Fs6lAme4u8OY= =cZ7o -----END PGP SIGNATURE-----
On Thursday 11 May 2006 06:42, Sergey Mkrtchyan wrote:
error: Failed dependencies: libao.so.2()(64bit) is needed by mpg321-0.2.10-530 libc.so.6()(64bit) is needed by mpg321-0.2.10-530 libc.so.6(GLIBC_2.2.5)(64bit) is needed by mpg321-0.2.10-530 libc.so.6(GLIBC_2.3)(64bit) is needed by mpg321-0.2.10-530 libc.so.6(GLIBC_2.3.4)(64bit) is needed by mpg321-0.2.10-530 libdl.so.2()(64bit) is needed by mpg321-0.2.10-530 libid3tag.so.0()(64bit) is needed by mpg321-0.2.10-530 libmad.so.0()(64bit) is needed by mpg321-0.2.10-530 libz.so.1()(64bit) is needed by mpg321-0.2.10-530
Hi Sergey (and sorry to everybody for the long post!) For future reference, you can find the packages that provide missing dependencies as follows, using the --whatprovides parameter: carl@linux:~> rpm -q --whatprovides libz.so.1 zlib-1.2.3-3 Carlos is almost certainly correct that you have tried to install the incorrect version (64 bit). You can avoid these conflicts by setting up a complete list of installation sources in YaST's "Installation Source" module. Here are the ones I use, but you should try to use a nearer/local/faster server if one is available to you: Note: When you add these sources, be sure each has "refresh" set "on". "Packman" ======= protocol: http server: packman.rsync.zmi.at directory: suse/10.0 "Guru" ==== protocol: http server: ftp4.gwdg.de directory: pub/linux/misc/suser-guru/rpm/10.0/ 10.0 === protocol: ftp server: ftp4.gwdg.de directory: pub/suse/i386/10.0/inst-source-extra protocol: ftp server: ftp4.gwdg.de directory: pub/suse/i386/10.0/SUSE-Linux10.0-GM-Extra protocol: ftp server: ftp4.gwdg.de directory: pub/opensuse/distribution/SL-10.0-OSS/inst-source Java for 10.0 ======== protocol: ftp server: ftp4.gwdg.de directory: pub/opensuse/distribution/SL-10.0-OSS/inst-source-java ** Optional ** Supplementary Desktops for 10.0 ("unofficial" and "unsupported" newer versions; the KDE is great! GNOME may or may not be broken... I was selective... you might want to avoid. YMMV.) KDE 3.5.2 ====== protocol: ftp server: ftp4.gwdg.de directory: pub/suse/i386/supplementary/KDE/update_for_10.0/yast-source GNOME 2.12.2 ========= protocol: ftp server: ftp4.gwdg.de directory: pub/suse/i386/supplementary/GNOME/update_for_10.0/yast-source The secret to using all of these repositories effectively lies in YaST's "Software Management" module. Launch the module, select "Package Groups" from the 'Filter' drop-down list at top-left. In the left pane, scroll all the way to the bottom and select 'zzz All'. When the list of packages has fully populated in the right pane, you can then scroll through all the packages that are available to YaST for install/update/remove... this includes Suser-Guru and Packman packages. Of particular importance are the "Inst. Ver." and "Avail. Ver." columns which stand for, respectively, "Installed Version" (blank means not installed) and "Available Version" (is available for installation.) YaST (actually rpm in the background) helps you avoid and/or resolve dependency conflicts automatically. Have fun & good luck! Carl
Carl Hartung wrote:
Hi Sergey (and sorry to everybody for the long post!)
For future reference, you can find the packages that provide missing dependencies as follows, using the --whatprovides parameter:
carl@linux:~> rpm -q --whatprovides libz.so.1 zlib-1.2.3-3
Dear Carl, Thank you for your detailed email, I will definetely save it as a reference for the future, now for some reasons I don't have an access to the Internet from home(where actually my Linux machine is...), and have to do all internet staff from the University then bring it all home and do it manually, that is why it is so problematic for me :( I realized that I was using a wrong package (64 bit), I didn't knew anything about "bit" versions of packages(...or systems, as Carlos said), will google to learn more about that. Thank you very much anyway, Regards, -- Sergey Mkrtchyan Scientific Researcher Department of Molecular Physics, Faculty of Physics, Yerevan State University Tel: (374-10) 55-43-41 Fax: (374-10) 57-76-89
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2006-05-06 at 17:38 +0500, Sergey Mkrtchyan wrote:
Try mpg321, that works okay for me.
-bash: mpg321: Command not found
Then find it with "pin mpg321" and install it. And if "pin" is not found, install "pin". }:-) - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFEXK8DtTMYHG2NR9URAtmLAJwKVxYftnzrZj29BsluY8nJvHS5LACfbuHh I/rOWvTtL9Xdrqy5u8oRukc= =mnLu -----END PGP SIGNATURE-----
Carlos E. R. wrote:
The Saturday 2006-05-06 at 17:38 +0500, Sergey Mkrtchyan wrote:
Try mpg321, that works okay for me.
-bash: mpg321: Command not found
Then find it with "pin mpg321" and install it. And if "pin" is not found, install "pin". }:-)
Pin also gives nothing from ARCHIVES_10.0.gz, At least I hadn't have to install pin, one positive point in all this ;) Thanks, -- Sergey Mkrtchyan Scientific Researcher Department of Molecular Physics, Faculty of Physics, Yerevan State University Tel: (374-10) 55-43-41 Fax: (374-10) 57-76-89
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2006-05-06 at 19:55 +0500, Sergey Mkrtchyan wrote:
Then find it with "pin mpg321" and install it. And if "pin" is not found, install "pin". }:-)
Pin also gives nothing from ARCHIVES_10.0.gz, At least I hadn't have to install pin, one positive point in all this ;)
I forgot the issues Novell have with those things. It came in 9.3, but not in 10.0. Or if it comes, it will be in the retail version. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFEXMNmtTMYHG2NR9URAtiIAJ4+JNxI7zG7NI9cfsgqk4A/bah2gQCeO3CZ YwngUqki1XYRRxlDzPqehGM= =jpcR -----END PGP SIGNATURE-----
On Sat, 2006-05-06 at 19:55 +0500, Sergey Mkrtchyan wrote:
Carlos E. R. wrote:
The Saturday 2006-05-06 at 17:38 +0500, Sergey Mkrtchyan wrote:
Try mpg321, that works okay for me.
-bash: mpg321: Command not found
Then find it with "pin mpg321" and install it. And if "pin" is not found, install "pin". }:-)
Pin also gives nothing from ARCHIVES_10.0.gz, At least I hadn't have to install pin, one positive point in all this ;)
Thanks,
My results for this on my 10.0 system: *** zgrep mpg123 /var/lib/pin/ARCHIVES.gz ------------------------------------------------------------------ ./CD5/suse/noarch/man-pages-ja-20050715-2.noarch.rpm: -rw-r--r-- 1 root root 5516 Sep 13 02:57 /usr/share/man/ja/man1/mpg123.1.gz Looks like it's on disk 5. ~
I believe the play command is part of the sox install.
I installed sox, but now it refuses to play mp3s...something like "Failed reading blablabla.mp3 Do not understand format type: mp3"
On my system I ran "sox -h" to show the supported file formats. mp3 wasn't one of them. However, doing a "man sox" I see: .mp3 MP3 Compressed Audio MP3 audio files come from the MPEG standards for audio and video compression. They are a lossy compression format that achieves good compression rates with a minimum amount of quality loss. Also see Ogg Vorbis for a similar format. MP3 support in SoX is optional and requires access to either or both the external libmad and libmp3lame libraries. To see if there is support for Mp3 run sox -h and look for it under the list of supported file formats as "mp3". -- Marshall Lake -- mlake@mlake.net -- http://mlake.net
Marshall Lake wrote:
On my system I ran "sox -h" to show the supported file formats. mp3 wasn't one of them. However, doing a "man sox" I see:
.mp3 MP3 Compressed Audio MP3 audio files come from the MPEG standards for audio and video compression. They are a lossy compression format that achieves good compression rates with a minimum amount of quality loss. Also see Ogg Vorbis for a similar format. MP3 support in SoX is optional and requires access to either or both the external libmad and libmp3lame libraries. To see if there is support for Mp3 run sox -h and look for it under the list of supported file formats as "mp3".
It is the same here,and as I understand sox is for audio data editing, but when I try to convert mp3 to wav (which is played here), it gives bash # sox High_Hopes.mp3 High_Hopes.wav sox: Failed reading High_Hopes.mp3: Do not understand format type: mp3 also tried bash # sox -t mp3 High_Hopes.mp3 -t wav High_Hopes.wav sox: Unknown input file format for 'Could.mp3': File type 'mp3' is not known Maybe the problem is in libmad and libmp3lame libraries, but YaST gives nothing for both of them. Concluding from the last sentence in man, as there is no mp3 in the list of supported file formats in the sox -h, so there is no mp3 supported. Can't understand what the problem is... -- Sergey Mkrtchyan Scientific Researcher Department of Molecular Physics, Faculty of Physics, Yerevan State University Tel: (374-10) 55-43-41 Fax: (374-10) 57-76-89
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2006-05-06 at 19:27 +0500, Sergey Mkrtchyan wrote:
bash # sox -t mp3 High_Hopes.mp3 -t wav High_Hopes.wav sox: Unknown input file format for 'Could.mp3': File type 'mp3' is not known
Maybe the problem is in libmad and libmp3lame libraries, but YaST gives nothing for both of them.
The first one I think comes with the retail version of SuSE, not on the download version. I can't check. As for lame, it certainly will not be provided by SuSE (license and pattent issues). - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFEYxwCtTMYHG2NR9URAr8/AKCGzsQlCkpFxGDHRhvwiPSv0kLMTACdFgQB ++E1jM4AYx4r2Mp1GI84V58= =A7BN -----END PGP SIGNATURE-----
Am Freitag, 5. Mai 2006 16:12 schrieb Ronald Wiplinger:
I need to play a sound from the command line. Which program and which format should I use ?
Hello Ronald, i use 'play' fo this. Plays .wav and also .la files. It belongs to the sox Package, i think. Have a nice weekend, regards Rolf-Dieter Damm -- P4i845GV R5, GF FX5200 Personal Cinema, SAMSUNG SP1213N, SAMSUNG DVD-ROM SD-616E F504, BENQ DVD DD DW1620 B7N9, FRITZ ISDN Card PCI 2.01, PHILIPS 109E5, SAMSUNG SymcMaster 913N ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
participants (13)
-
Carl Hartung
-
Carlos E. R.
-
James Wright
-
Jos van Kan
-
Jürgen Mell
-
Marshall Lake
-
Mike McMullin
-
Patrick Shanahan
-
Peter Groff
-
Richard Bos
-
Rolf-Dieter Damm
-
Ronald Wiplinger
-
Sergey Mkrtchyan