Questions tagged [sample-rate]

157 questions
2
votes
2 answers

Play Sounds of Varying Varying Pitch Asynchronously and Concurrently

My goal is to use Python to play sounds with the following requirements in a computer game context. Take some input WAV file and randomly Vary the pitch to +/- 50% of original. Changing the sample rate seems to be an easy way to do this with…
Zaorish9
  • 103
  • 2
  • 10
2
votes
1 answer

Arduino UNOv3 synchronisation of GPS and IMU MPU6050

I am relatively new with Arduino and I want to: Set the frequency of the IMU to 100 Hz. Synchronise GPS and MPU6050 in order to get data at the same time: 1 set of IMU data and 1 set of GPS data -> 99 sets of IMU data. (//1 second) -> 1 set of…
2
votes
1 answer

Simultaneous recording and playback at different sample rates in iOS

I am working on an iOS app where audio recording and playback should happen simultaneously but at different sampling rates. Recording will be done through a connected USB Audio device, and playback is done through the inbuilt speaker. I am using…
2
votes
1 answer

Java - Determine number of bytes to read from wave file to get to timestamp

I have an AudioFormat object (returned from audioInputStream.getFormat()). I have a timestamp (in milliseconds) that I want to start reading from the corresponding wav file from. How do I determine how many bytes to read/skip from the…
CamHart
  • 3,825
  • 7
  • 33
  • 69
2
votes
0 answers

USB Audio confusion - What data rates are possible?

I'm new to USB development, and i'm quite confused about what data rates are realistic. I'm trying to develop an external sound card connected on an AVR32 processor, which supports USB Full Speed(12 Mb/s). I'll use USB audio class 1 to send the…
Wiingaard
  • 4,150
  • 4
  • 35
  • 67
2
votes
2 answers

Android - Audio Record - Sample rates

I developed a game for android that uses Audio Record to get the mic input. You can have a glance at https://play.google.com/store/apps/details?id=fixappmedia.micro The thing is that I'm using the following function to get the sample rates available…
jpaguerre
  • 1,130
  • 1
  • 13
  • 20
2
votes
1 answer

Audio samplerate converter using libsndfile and libsamplerate. Not sure if using function src_simple correctly

I have been building a simple samplerate converter in c using libsndfile and libsamplerate. I just cant seem to get the src_simple function of libsamplerate to work, whatever I try. I have striped back my code to be as simple as possible and it now…
OliD
  • 37
  • 1
  • 2
  • 5
1
vote
2 answers

how can I scan live mp3 streams for their sample rate?

I am new to FFMPEG and I am suppose to scan all of my files for sample rate. I am not sure as to what this is because I am new to this and don't know how to even get started with FFMPEG's scanning. These live streams are mp3 streams, music tracks. I…
Bulvak
  • 1,794
  • 8
  • 31
  • 63
1
vote
0 answers

Getting only 100sample/second from MPU6050 through Raspberry pi Pico

I wanted to plot the raw sensor data like the accelerometer gyroscope and temperature data of MPU6050. For me MPU6050 is soldered with Pico and Pico is connected to my laptop via a USB connection. Now, my problem is the frequency is quite low like…
1
vote
1 answer

Flutter Sensors_plus package: Adjusting sample rate of sensordata for mobile web application

https://github.com/flutter/flutter/issues/25971 In the GitHub thread, the community has managed to adjust the sample rate for android devices. My problem is that I'm building a web application using the "sensors_plus" flutter package and I can't…
1
vote
0 answers

After importing audio into unity, the file is playing back slightly slower and at a slightly lower pitch

I have tried converting the audio file prior to importing into unity to both 44.1k and 48k sample rates and they sounds identical when played back in unity (slowed down and pitched down). I have tried this with a .wav file and a .aif at both sample…
1
vote
0 answers

Count Samples in GNU Radio

What is the common procedure to count the number of processed samples, so that it can be shown to the user as "time passed" since begin of sampling.
Semnodime
  • 1,872
  • 1
  • 15
  • 24
1
vote
1 answer

Java audio change sample rate

How do you change the sample rate of an audio file? In my app I append multiple audio files in .wav format which have a sample rate of 24,000 Hz and I want to convert the resulting file's sample rate to 20,050 Hz. I tried creating a new AudioFormat…
V. Pantis
  • 105
  • 1
  • 7
1
vote
1 answer

binary format of a PeakTech 1330 oscilloscope

Does anybody know the binary format of a PeakTech 1330 oscilloscope? What I do know: The first 32 byte seem to be a header describing the instrument. The last 94 byte seem to describe the setting (gain, time scale, channel used ...) - but I have no…
1
vote
1 answer

Chrome browser cannot play wav audio files with 1000 sampling rate

I can see that the browser has loaded a wav file with a sampling rate of 1000, but the canplaythrough event cannot be triggered. Manually clicking the play button cannot play the wav file (the wav file with a sampling rate of 8000 can be played…
shen zp
  • 11
  • 2