We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently ported up to line 116 of jumpcutter.py:
sampleRate, audioData = wavfile.read(TEMP_FOLDER+"/audio.wav") audioSampleCount = audioData.shape[0] maxAudioVolume = getMaxVolume(audioData)
I'm not sure if my max volume finder function is doing what I think it's doing, though:
pub fn get_sample_rate(filename: String) -> Metadata { let mut reader = hound::WavReader::open(filename).unwrap(); let metadata = reader.spec(); let max_volume = reader.samples::<i32>().fold(0.0, |max_volume, s| { let sample = f64::from(s.unwrap()); if sample > max_volume { return sample; } max_volume }); Metadata { sample_rate: metadata.sample_rate, sample_count: reader.len(), max_volume: max_volume } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently ported up to line 116 of jumpcutter.py:
I'm not sure if my max volume finder function is doing what I think it's doing, though:
The text was updated successfully, but these errors were encountered: