Questions tagged [sample-rate]

157 questions
1
vote
0 answers

Amazon Transcribe Medical - Sample Rate Not Supported

I have a handfull of files with a sample rate of 8000hz and 11025hz. Amazon's own documentation indicates that the valid MediaSampleRateHertz is between 8000 - 48000 (inclusive, judging by examples). However running a media transcribe job (both via…
Gavin
  • 2,214
  • 2
  • 18
  • 26
1
vote
1 answer

iPhone Audio Queue sample rate question

I am in the process of making a piece of pitch correction software for the iPhone. I am currently at the fun Audio Queue part and I have a few questions about changing the pitch. My current idea to increase the pitch is to double the sampling rate…
1
vote
0 answers

PCM Audio mixing which is having two different sample rates is not working

I have two audio files both are having different sample rates. I am converting both audios into PCM audios and then mixing them. So in the final output, one audio is going faster than the actual one. I have used the Superpowered SDK for audio mixing…
1
vote
1 answer

is it possible to change the playback pitch of an audioqueue

This is supposed to be possible on Mac OS X by overwriting the sample rate in the AudioStreamBasicDescription then create a new output queue. I've been able to retrieve the default sample rate and write a new one (ie. replace 44100 with 48000) but…
1
vote
1 answer

How can get audio with sample rate of 44100 from iPhone 11 or iPhone 11 Pro Max

I am using the following code to get the audio sample of the 44100 sample rate from the iPhone 11. iPhone 11 has a 48000 sample rate by default. let audioEngine = AVAudioEngine() let inputNode = audioEngine.inputNode let main =…
Raj Aggrawal
  • 761
  • 1
  • 6
  • 21
1
vote
0 answers

Why does AVCaptureSession give audio at 44100 but the newer iPhones capture at 48k?

AVCapture session always gives audio block buffers in 44100, but all newer iPhones (since 6 series) capture at 48000. And you can't specify to the Capture Session a sample rate either! Does anyone know why this is? I cannot find any info on this. It…
1
vote
0 answers

iOS: AVAudioSession sample rate is not changing when playing a sound from speaker

When setting the preferred sample rate to 16000 it is working fine. However, when I want to play the sound from the speaker and print the sample rate I find it 48000. I tried to set the sample rate again after playing from the speaker, but it is not…
mahdi
  • 149
  • 12
1
vote
1 answer

Generating sin wave creates noise

I have a simple program in C to generate a square wave at a specific frequency, sample-rate, and amplitude, which works fine. However, if I comment out the relevant line and uncomment the new sine-wave line, it generates my sine wave, but also…
C. Dunn
  • 101
  • 1
  • 6
1
vote
0 answers

AVAudioSession sample rates < 48Khz?

We have a VOIP app that generally transfers audio packets with a sample rate of 32Khz. For what would seem to be a reasonable match, we've typically set the AVAudioSessions preferred sample rate to 32Khz as well. On later iPhones (e.g. iPhone XS)…
Electro-Bunny
  • 1,380
  • 2
  • 12
  • 33
1
vote
0 answers

Pygame mixer changes playing speed with new audio interface

I am working on a simple program that plays samples using pygame on a raspberry pi. My code works fine using the built-in headphone out of the RPi (44.1kHz), but if I use a usb soundcard (Behringer U-Control, 48kHz) then my sounds play faster. If I…
Louis T
  • 75
  • 8
1
vote
0 answers

Re-sample audio stream

I am using MediaStreamRecorder to record audio in client , and then I send the blob result using websocket server, I am trying to re-sample from 44100 to 16000 in the server size , but no luck. Any idea how to re-sample the stream ? Thanks
MoShe
  • 6,197
  • 17
  • 51
  • 77
1
vote
0 answers

MPU 6050 SD Writing Frequency Arduino is not constant , how to have a constant writing frequency?

I am a noob and i am from civil engineer, I apologize in advance. I have a MPU6050 connected to my Arduino Uno and I write the data on an SD. I can write at a sample rate of 20millis. Why i have this default frequency? This is part of the code //…
1
vote
1 answer

How to detect the precise sampling interval from samples stored in a database?

A hardware sensor is sampled precisely (precise period of sampling) using a real-time unit. However, the time value is not sent to the database together with the sampled value. Instead, time of insertion of the record to the database is stored for…
pepr
  • 20,112
  • 15
  • 76
  • 139
1
vote
1 answer

How to measure the sample rate in python when getting data from a ADC?

I am working in a project using Raspberry Pi 3 B where I get data from a IR sensor(Sharp GP2Y0A21YK0F) through a ADC MPC3008 and display it in real-time using PyQtgraph library. However, it seems that I am getting very few samples and the graph is…
Hugo Oliveira
  • 197
  • 2
  • 3
  • 8
1
vote
1 answer

Python wave audio sample rate

I am trying to tie together javascript front end, flask server and microsoft's cognitive services for audio identification. Microsoft's server requests audio data to be with specific parameters, particularly it requests 16000…
Nix
  • 465
  • 1
  • 7
  • 16