Questions tagged [sample-rate]
157 questions
0
votes
0 answers
Change Audio Pitch with Audio Speed Ffmpeg
i'm using Ffmpeg to change Audio Pitch and Speed and here's some command i'm trying:
ffmpeg -i audioPath -filter:a atempo=audioSpeed,asetrate=audioPitch -ar sampleRate -b:a xValue(k) output.mp3
ffmpeg -i audioPath -filter:a atempo=(audioSpeed /…

Vivek Thummar
- 395
- 4
- 17
0
votes
1 answer
Incorrect signal returned by librosa.clicks
I'm trying to write a simple metronome with librosa.clicks
import librosa
import numpy as np
bpm = 200
exercise_duration = 10
sr = 22050
seconds_per_beat = 60/bpm
beats_number = round(bpm/ (60/exercise_duration))
metronome_clicks = [0]
for i in…

user14864717
- 35
- 5
0
votes
1 answer
Recorded voice notes slows the application
In my iPhone application, i am recording voice of user and saving it in device.
My setting of AVAudioRecorder is as follows:
NSMutableDictionary* recordSetting = [[NSMutableDictionary alloc] init];
[recordSetting setValue :[NSNumber…

Yogi
- 3,578
- 3
- 35
- 56
0
votes
0 answers
inconsistency sample time matlab simulink
I need to do some research, which requires multiplying the recorded sample of the wav signal by the harmonic sine and cosine function. At the initial launch, I could listen to the recorded VAV file, but the 1 kHz harmonic oscillation was angular, as…

Антон
- 123
- 4
0
votes
1 answer
Flite TTS Sample Rate
Is it possible to change the sample rate of the audio output in flite tts? The default output is 16 kHz PCM and I'd like to change it to output 8 kHz.

brhoover
- 1
0
votes
1 answer
Increase the sampling rate of Arduino Nano 33 BLE
I'm using a Arduino Nano 33 BLE. In my project I have to send the accelerometer and gyroscope data via bluetooth to an android application.
My sample rate is 10Hz but I should have 50Hz. How can I change Arduino Nano's sample rate?
thank you

Mara
- 1
- 2
0
votes
0 answers
Adding silent pause between byte array of two audio
I have multiple audio files converted into byte array for each, and i have start time and end time of each audio file (these audio files are converted from video so i have its time stamps).
Now i want to merge these byte array of audio files to…

Darshan
- 515
- 1
- 3
- 16
0
votes
0 answers
Sample rate of standard sin function in C
I want to create a sin wave for 1000 Hz, 8000 sample rate.
When ı write below codes in C language on Dev C++ platform;
#include
#include
double sampleRate=8000.00;
double freq=1000.00;
double sine,t,delta;
int i=0;
int main(){
…

KaruF
- 47
- 5
0
votes
0 answers
How to calculate sample rate of any CSV data?
Sample rate calculation is done of .wav data easily using following this code.
sampleRate, data = scipy.io.wavfile.read('ecg.wav')
times = np.arange(len(data))/sampleRate
If I want to calculate same sample rate of my .csv file what should I change…

Abc
- 19
- 6
0
votes
2 answers
Why window_length/hop_length are multiplied with sample rate in librosa.core.stft in this example?
I'm new to voice recognition and I'm going through the details in this implementation of speaker verification. In data_preprocess.py authors use librosa library. Here is a simplified version of the code:
def preprocess_data(data_dir, res_dir, N, M,…

mirzanahal
- 167
- 2
- 12
0
votes
1 answer
Resampling data from 1280 Hz to 240 Hz in python
I have a python list of force data that was sampled at 1280 Hz, I have to get it do exactly 240 Hz in order to match it exactly with a video that was filmed at 240 Hz. I was thinking about downsampling to 160 Hz and then upsampling through…

Michael
- 23
- 2
0
votes
1 answer
How to change the audio sample rate in Unity?
The default audio sample rate is 48000. Is it possible to change it to other values like 44100?
I log the value of AudioSettings.outputSampleRate and it shows 48000. But it doesn't seem possible to change that value.

Thinium
- 171
- 1
- 14
0
votes
1 answer
Change Sample rate with AudioConverter
I am trying to re-sample the input audio 44.1 kHz to 48 kHz.
using AudioToolbox's AUAudioUnit.inputHandler
writing out the input 44.1 kHZ to a wav file (this is working perfectly)
converting the 44.1 kHz to 48 kHz and writing out this converted…

szuniverse
- 1,076
- 4
- 17
- 32
0
votes
0 answers
BLE113 data reading in LabView - lower sampling frequency
my goal is to obtain the data from BLE113 and processed them in Labview. I managed it using the BLE toolkit and it works. However, the sampling frequency is lower than it should be (1000 S/s). The number of samples per second is around 940 instead…

Dan
- 33
- 3
0
votes
1 answer
Upsampling with 64 hz in R
I have data in the below format. Sample data pasted here. It basically has 3 variables Start time, End time & set of values between these timestamps. The sampling rate is 64Hz
Now I need output in the following format with difference between two…

Coolsun
- 189
- 9