Questions tagged [sample-rate]

157 questions
5
votes
9 answers

Library for samplerate conversion of audio data?

What is a good Delphi library for samplerate conversion of audio data? I don't mind paying for something. I need to upsample and download sample audio in realtime. I understand the theory but don't want to write my own routines. EDIT: Bonus points…
Shannon Matthews
  • 9,649
  • 7
  • 44
  • 75
5
votes
1 answer

How to set Audio Sampling rate higher than 44.1kHz on linux/android platform?

I noticed that android.media.AudioRecord failed to work when using wrong sampleRateInHz REPRODUCE You can also reproduce easily that issue using pcmrecorder on Samsung Nexus S (by Google)…
RzR
  • 3,068
  • 29
  • 26
5
votes
1 answer

Pydub Slice Audio Segment By Sample

Suppose I have two audio segments of the same sample rate that I have imported from .wav files in Pydub, and assume I know which is shorter. Now suppose I want to split the longer audio file into two segments so that the first segment is the exact…
joejoejoejoe4
  • 1,206
  • 1
  • 18
  • 38
5
votes
4 answers

Android AudioRecord questions?

I have been messing around with the AudioRecord feature of the Android API and found some strange behaviors with it. Background info: My phone is a HTC Incredible I am using the Eclipse plugin for Android development with the emulator. Targeted…
dakira
  • 333
  • 3
  • 5
  • 12
5
votes
2 answers

How to get sample rate of mp3 file using python

I need to play this mp3 file using pygame but I dont know what the sample rate of the file is. I need some way to programaticaly get the sample rate of the audio file so that I can play it at the correct rate cuz if I dont then it just distorts the…
sharpchain
  • 355
  • 2
  • 7
  • 15
5
votes
1 answer

iPhone 6S audio issue while streaming

I developed an iOS application with live video streaming. I fixed the audio sample rate to 8k. Audio works fine up to iPhone6 devices, but when i stream video in 6s and 6s plus audio part is not working. How can i fixed this issue? I tried in…
Jio
  • 1,146
  • 1
  • 9
  • 22
5
votes
1 answer

Why does MATLAB change the sample rate while trying to acquire data?

I am using a DataQ acquisition device in Matlab 32-bit with the Data Acquisition toolbox. On occasion, when I have my sample rate set to 300, it tells me: Warning: This hardware could not support the requested value of 300 for SampleRate.…
user2312820
  • 53
  • 1
  • 4
4
votes
0 answers

Supported microphone sample rate on iOS

I am trying to look up what sample rate is supported on all Android and iOS devices when recording audio via the microphone. On Android the documentation clearly states that 44,1 kHz is currently the only value to be guaranteed to work on all…
Jan Kleprlík
  • 320
  • 3
  • 12
4
votes
2 answers

Fastest and most efficient upsampling routine for Audio in Java

I have a need to convert audio samples from 11025 and 22050 to 44100; I'm looking for the fastest and best sounding conversion routine. I require that the answer be given in pure Java, without the need for external routines or libraries. The source…
Paul Gregoire
  • 9,715
  • 11
  • 67
  • 131
4
votes
1 answer

SpeechSynthesizer in C# creates wav that has 22kHz... needs to be 16kHz

My C# application needs to covert text to wav file and inject it into a Skype call. The code that creates the wav file is below. The problem is that the file has 22kHz sample rate and Skype accepts only 16kHz. Is there any way to adjust this…
screenshot345
  • 598
  • 3
  • 9
  • 18
4
votes
1 answer

Distorted sound after sample rate change

This one keeps me awake: I have an OS X audio application which has to react if the user changes the current sample rate of the device. To do this I register a callback for both in- and output devices on ‘kAudioDevicePropertyNominalSampleRate’. So…
hobotron
  • 463
  • 1
  • 4
  • 14
4
votes
0 answers

How to convert or record .wav file in 16khz 16bit mono little-endian?

I am just implementing sphinx4 speech recognition in java. What I need is how to record sound or convert any sound .wave file into 16khz 16bit mono little-endian file. had to search a lot for this..but no specific guidance I have got. hope anyone…
BhavikKama
  • 8,566
  • 12
  • 94
  • 164
4
votes
4 answers

FFMPEG wmv conversion to flv

anyone using ffmpeg I have a fairly simple wmv exported by a user from movie maker with standard output and want to convert to .flv using C:>ffmpeg -i "E:\Jab Core 4 Recounters.wmv" -vcodec flv "C:\Net…
Brandon Grossutti
  • 1,241
  • 5
  • 16
  • 24
4
votes
0 answers

Exact mp4 framerate (synchronisation issues)

I'm writing an audio stretcher to convert audio from 24p to PAL video. 24p is 24000 / 1001 ~= 23.976 fps PAL is exactly 25 fps. The algorithm I use is very simple. If 'm' is the output sample number and 'n' is the input sample number, then m =…
rhlee
  • 3,857
  • 5
  • 33
  • 38
3
votes
1 answer

How to change microphone sample rate to 16000 on linux?

I am currently working on a project for which I am trying to use Deepspeech on a raspberry pi while using microphone audio, but I keep getting an Invalid Sample rate error. Using pyAudio I create a stream which uses the sample rate the model wants,…
N.T.A vH
  • 51
  • 1
  • 6
1
2
3
10 11