Testing thread about nothing (I'm trying to diagnose an LQ-related Firefox issue)
GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I really don't care to re-type my own code. I use a scanner with Optical Character Recognition (OCR) software. Sometimes the files are not always readily available but the print copy is so scan is a must since my big fingers & hands slow me down.
I really don't care to re-type my own code. I use a scanner with Optical Character Recognition (OCR) software. Sometimes the files are not always readily available but the print copy is so scan is a must since my big fingers & hands slow me down.
I don't understand, what does OCR have to do with an online tutorial?
Going back to the whole "playing non-audio files as sound" thing, I found a way to do it that isn't limited to 8kHz mono:
Put this in your terminal (assuming you have SoX installed):
Code:
play -q -t raw -s -b 16 -r 44100 -c 2 <file of your choice here>
This plays the file as a signed, 16-bit PCM wave at 44100Hz, in stereo.
Another advantage of doing it this way is that you have control over the volume (-v option).
Enjoy
EDIT: DON'T do this with device files! I tried it, and not only did I not hear anything (tried it with /dev/input/mouse0), but I also couldn't get play to abort with ^C. I had to kill it manually, which didn't allow it to release the audio device, and so I had to reboot to get sound back.
Have you found any interesting examples you can give us?
Try redirecting the output of a command that produces a lot of text output to a file (e.g. "ls -R / > all-dirs-list.txt" or "tree / > tree-list.txt"), then play back the text file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.