• Home
  • Downloads
  • Contact Us
  • Report Broken Link
Friday, May 9, 2025
  • Login
lessons4you.info
  • Videos
  • Downloads
  • Help
    • Contact Us
    • Report Broken Link
No Result
View All Result
  • Videos
  • Downloads
  • Help
    • Contact Us
    • Report Broken Link
No Result
View All Result
Lessons4you.info
No Result
View All Result

Write a PHP Script to Download Files

SQL Find Duplicate Record in a Table

Play raw files in Linux Ubuntu/Debian/CentOS/RedHat

by
December 11, 2021
in Uncategorized
Reading Time: 1 min read
A A
Share on FacebookShare on Twitter

RAW Audio format or just RAW Audio is a computer format for storing uncompressed audio in raw form. Comparable to WAV or AIFF in size, RAW Audio file does not include any header information (sampling rate, bit depth, endian, or number of channels). So if you try to play RAW file, it will give you error. To play RAW file you have to manually add header information.

1
2
3
 
$ play -c 1 -s -r 8000 -t raw -2 filename.raw
 

Play all RAW files within a folder

1
2
3
 
$ for i in `ls *.raw`; do `play -c 1 -s -r 8000 -t raw -2 $i`; done
 

Don’t need to remember all these parameters, you can create a alias as a custom command to play the RAW file. Open you ~/.bashrc file.

1
2
3
 
$ vi ~/.bashrc
 

Add this line to your ~/.bashrc file.

1
2
3
 
alias playraw="play -c 1 -s -r 8000 -t raw -2"
 

Use source command to update your ~/.bashrc file

1
2
3
 
$ source ~/.bashrc
 

Now, you can use “playraw” as a command to play RAW files.

1
2
3
 
$ playraw filename.raw
 

Tags: Play RAWRAW Audio File
Previous Post

Write a PHP Script to Download Files

Next Post

SQL Find Duplicate Record in a Table

Related Posts

How To Install The TWRP Recovery on Xiaomi Redmi 1s
Uncategorized

How To Install The TWRP Recovery on Xiaomi Redmi 1s

May 14, 2022
MIUI Collection Of Gapps (2.3.x – 5.0.x)
Uncategorized

MIUI Collection Of Gapps (2.3.x – 5.0.x)

May 14, 2022
Download Android 5.1.x Lollipop PA Gapps
Uncategorized

Download Android 5.1.x Lollipop PA Gapps

May 15, 2022
Download gapps for Android 5.1 Lollipop Cyanogemod 12.1
Uncategorized

Download gapps for Android 5.1 Lollipop Cyanogemod 12.1

May 14, 2022
Reddit AMA with OxygenOS Team OnePlus
Uncategorized

Reddit AMA with OxygenOS Team OnePlus

May 14, 2022
How to Remove Adobe Updater from OS X Menu Bar?
Uncategorized

How to Remove Adobe Updater from OS X Menu Bar?

July 19, 2023
Next Post

SQL Find Duplicate Record in a Table

  • Home
  • Downloads
  • Contact Us
  • Report Broken Link

© 2022 lessons4you.info

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Videos
  • Downloads
  • Help
    • Contact Us
    • Report Broken Link

© 2022 lessons4you.info