Questions tagged [audioformat]

Audio format indicates how to interpret data stored in an audio file. A device can read an audio file in order to play sounds through the device's speaker. Popular audio formats include MP3 and WAV (among others). Use this tag for questions regarding the various audio formats.

82 questions
10
votes
2 answers

How is audio data stored in raw pcm format?

I am writing an app to manipulate audio where i need to convert a file (wav, MP3, etc) to raw data (samples are presented as float) at the first place. I use ffmpeg in cmd: ffmpeg -i test.wav -f s16le -acodec pcm_s16le output.dat How are samples…
Tian Ye
  • 101
  • 1
  • 1
  • 3
8
votes
1 answer

Using Mutagen to process all accepted file types

What do I need to do in order to process every file type accepted by mutagen, .ogg, .apev2, .wma, flac, mp4, and asf? (I excluded mp3 because it has the most documentation on it) I'd appreciated if someone who know how this is done could provide…
lzc
  • 1,645
  • 5
  • 27
  • 41
7
votes
4 answers

What does interleaved stereo PCM linear Int16 big endian audio look like?

I know that there are a lot of resources online explaining how to deinterleave PCM data. In the course of my current project I have looked at most of them...but I have no background in audio processing and I have had a very hard time finding a…
William Rosenbloom
  • 2,506
  • 1
  • 14
  • 37
6
votes
2 answers

Converting wav file to wav file (changing format)

Trying to find a workaround for my previous question, I'd like to convert a 16k 8bit mono wav which is written in byte[] (which has wav header) to a 8k 8bit mono stream/byte[]. Is there any .Net library with samples available for this kind of…
Kamyar
  • 18,639
  • 9
  • 97
  • 171
6
votes
2 answers

How to check if new Audio is supported by browser?

In safari 5, new Audio is not supported, so the error console displays : TypeError : 'undefined' is not a constructor (evaluating 'new Audio') How could I programatically know whether new Audio is supported by browser ?
totoaussi
  • 712
  • 1
  • 11
  • 27
5
votes
2 answers

Length of audio file in Java

I'm having issues with parsing the data from an mp3 file based on it's bytes. The first part the output is correct, I have an mp3 file that is 254 seconds long and I obtain its information from the mp3 parsing library mp3agic from Github. However,…
waylonion
  • 6,866
  • 8
  • 51
  • 92
5
votes
1 answer

How to read and modify amr audio file data?

How can i extract information like sample rate , bit rate etc from an AMR-NB file . Strictly speaking I want the sample rate or any other data that may alter its pitch or tempo. It was easy for WAV files but here I am constrained with AMR-NB format…
user1448559
  • 83
  • 2
  • 9
4
votes
0 answers

How can I change codec parsing system in MjSip?

I am working on a softphone project and using MjSip stack to create develop it. The core MjSip is only suporrted with PCMA/PCMU codecs. But I want to add some more codecs with it like G729, GSM, iLBC etc. In MjSip the class AudioSender.java is a…
S. M. Shahinul Islam
  • 2,780
  • 4
  • 36
  • 68
4
votes
1 answer

Retrieving the title, artist/author and duration of a .wav file

I am trying to get the properties of a .wav file I am using in my Java project using the following code. However when I run this code the methods format.getProperty("title"), format.getProperty("author"), and format.getProperty("duration") all…
Dan
  • 7,286
  • 6
  • 49
  • 114
3
votes
1 answer

What is the Standard Audio Format Produced by synthesizeToFile in Android TextToSpeech?

Using the synthesizeToFile method of Android TextToSpeech, how are we to know what file format (WAV, MP3, OGG), and/or attributes (sample rate, bit depth, etc.) the resulting file will be? I can't find an explicit standard in the documentation... it…
Nerdy Bunz
  • 6,040
  • 10
  • 41
  • 100
3
votes
1 answer

Save audio file from app to iPad/iPhone library

I have been trying to figure out how to do this for most of the day, but I haven't been able to find much help. We have this multimedia app that allows users to view pictures, videos, and music/ringtones about the particular subject. I know you can…
Brian
  • 819
  • 4
  • 20
  • 35
3
votes
0 answers

Android MediaRecorder: Difference between AmrWb and ThreeGpp OutputFormat

If i use the Android MediaRecorder to record i file i can set its properties like…
3
votes
0 answers

Audio Recording not working in Samsung Galaxy S5

I am developing an android application, in that i want to record audio and save into a folder. I have tried this sample code, its reading data from audio object(AudioRecord) but the same application reading only 0 bytes in SAMSUNG GALAXY S5(USB 3.0)…
iosLearner
  • 1,312
  • 1
  • 16
  • 30
3
votes
1 answer

What format can I use to record on android and play it in ios

I have tried so many different formats when I record a audio on android, that I get dizzy by just thinking about it. When I record by using .wav on ios, I can play it on android without any problem. But Im not able to play the recorded audio from a…
Thomas M. Tveten
  • 467
  • 1
  • 9
  • 22
3
votes
3 answers

How can I convert a wav file in java

How can I convert a wav file in java AudioFormat targetFormat = new AudioFormat( sourceFormat.getEncoding(), fTargetFrameRate, 16, …
user1697850
  • 31
  • 1
  • 2
1
2 3 4 5 6