LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 05-24-2004, 08:12 PM   #1
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Send signal to /dev/dsp


Hi!

I was wondering if I could produce a sound using console.

I was considering like a command:

echo "Some logical text here" > /dev/dsp

This would send that text to the soundcard output, right?

Well wrong. It doesn't work for two reasons.

Either the text does not tell the soundcard anything usable to do (or hearable) or it can't be written to soundcard output just that easily.

Thanks for any help on doing that!

Peace!
 
Old 05-24-2004, 08:22 PM   #2
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
Type cat vmlinuz > /dev/dsp to hear the Voice of God.
 
Old 05-24-2004, 08:24 PM   #3
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Original Poster
Rep: Reputation: 45
This does nothing for me Just beeps now ant then.
 
Old 05-24-2004, 08:56 PM   #4
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
*lol* -you did that? sorry it didn't do anything.
ok. BSF. does your sound work in X? if so you can play music at the console using for example "play". this program can play nearly everthing. first try "locate play" to see if its here. if you have a ogg/mp3-file somewhere around try "play music.ogg/mp3". wav should work too. i asume you have only one soundcard. else use the -d /dev/dsp1 switch.
 
Old 05-25-2004, 02:36 AM   #5
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Original Poster
Rep: Reputation: 45
My sound works. I can play all these files. I was just curious to see if I can send any signal to my soundcard and it would play it. Because that would be so cool. Also to my internal pc speaker if that was possible.

Any ideas on how and if thats possible?

I am not trying to get my soundcard fixed.... it works.....this is for educational and fun reasons only.

Thanks!
 
Old 05-25-2004, 04:17 AM   #6
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
if you want to use the speaker there is a prog to do so. i dont know where- you have to search your distribution or the internet. maybe you'll need a kernel-module to be insmod'd to do so.
if want to get speech try software like recite (rather simple), festival or other.

sl mritch
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
no /dev/dsp nor /dev/mixer on 2.6.9 amuro_ray Slackware 9 08-03-2009 03:54 PM
devfs and devfsd don't create /dev/dsp or /dev/sound/dsp ? behmjose Linux - Hardware 2 10-02-2006 01:27 PM
how to send a signal to a thread stephenwalter Programming 2 10-17-2005 02:07 AM
No /dev/dsp /dev/mixer etc david.skinner Linux - Software 2 05-19-2005 03:28 AM
Slackware 9.1/Lucent/Agere DSP (digital signal processing) chipset webwolf70 Slackware 1 09-03-2004 02:21 AM


All times are GMT -5. The time now is 08:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration