audio

Split audio file into several files, each below a size threshold

时光总嘲笑我的痴心妄想 提交于 2021-02-07 20:45:59
问题 I have a FLAC file which I need to split into several distinct FLAC files, each of which must be below 100 MB in size. Are there any UNIX tools which can do this for me? Can I implement this logic myself? Side-note: since FLAC is compressed, I figure that the easiest solution will require first converting the file to WAV. 回答1: There are two parts to your question. Convert existing FLAC audio file to some other format like wav Split converted wav file into chunk of specific size. Obviously,

Split audio file into several files, each below a size threshold

喜夏-厌秋 提交于 2021-02-07 20:45:25
问题 I have a FLAC file which I need to split into several distinct FLAC files, each of which must be below 100 MB in size. Are there any UNIX tools which can do this for me? Can I implement this logic myself? Side-note: since FLAC is compressed, I figure that the easiest solution will require first converting the file to WAV. 回答1: There are two parts to your question. Convert existing FLAC audio file to some other format like wav Split converted wav file into chunk of specific size. Obviously,

OpenAL: alBufferData returns AL_INVALID_VALUE even though input variables *look* OK?

萝らか妹 提交于 2021-02-07 19:24:26
问题 So, I'm building a threaded IMA ADPCM decoder streaming audio data to OpenAL (see below for short description) but I've run into some trouble. One of my issues is that sometimes my call to alBufferData: alBufferData(*bufferID, format, pcmData, sizeInBytes, bitRate); returns AL_INVALID_VALUE even though, when checking the parameters they look, e.g., like this: bufferID='109770616', format='AL_FORMAT_STEREO16', dataPtr='109754188', sizeInBytes='8164' Any clues, anyone? The actual sound being

Get amplitude from MediaPlayer using Visualizer

寵の児 提交于 2021-02-07 17:24:27
问题 i've been reading another posts about calculate the amplitude in real time from a Mediaplayer, but i have no clear how to get a value useful for me. What i need is a linear amplitude value normalize between 0-100, but as i've watched in another posts they are performing a db calculation which has not much sense, cause they are not normalized to max 0dB value (from How to calculate the audio amplitude in real time (android)): double amplitude = 0; for (int i = 0; i < audioData.length/2; i++) {

Efficiently split a large audio file in R

主宰稳场 提交于 2021-02-07 17:11:16
问题 Previously I asked this question on SO about splitting an audio file. The answer I got from @Jean V. Adams worked relatively (downside: input was stereo and output was mono, not stereo) well for small sound objects: library(seewave) # your audio file (using example file from seewave package) data(tico) audio <- tico # this is an S4 class object # the frequency of your audio file freq <- 22050 # the length and duration of your audio file totlen <- length(audio) totsec <- totlen/freq # the

Efficiently split a large audio file in R

蓝咒 提交于 2021-02-07 17:10:43
问题 Previously I asked this question on SO about splitting an audio file. The answer I got from @Jean V. Adams worked relatively (downside: input was stereo and output was mono, not stereo) well for small sound objects: library(seewave) # your audio file (using example file from seewave package) data(tico) audio <- tico # this is an S4 class object # the frequency of your audio file freq <- 22050 # the length and duration of your audio file totlen <- length(audio) totsec <- totlen/freq # the

Efficiently split a large audio file in R

ぐ巨炮叔叔 提交于 2021-02-07 17:09:21
问题 Previously I asked this question on SO about splitting an audio file. The answer I got from @Jean V. Adams worked relatively (downside: input was stereo and output was mono, not stereo) well for small sound objects: library(seewave) # your audio file (using example file from seewave package) data(tico) audio <- tico # this is an S4 class object # the frequency of your audio file freq <- 22050 # the length and duration of your audio file totlen <- length(audio) totsec <- totlen/freq # the

How to change the pitch with JavaScript?

删除回忆录丶 提交于 2021-02-07 09:56:59
问题 Let’s say you have an audio variable called audio and it stores a sound. I know how to change the speed for example: audio.playBackRate = 2; But I don't know how to change the pitch. Is there an audio.pitch attribute or do I have to create it myself? I want to do something like this: var audio = new Audio(); audio.src = "sound_effect.wav"; audio.pitch = 2 //doubling the pitch but there is no pitch attribute audio.play(); 回答1: I think you need to use a library to apply pitch shifting to your

How to change the pitch with JavaScript?

孤街浪徒 提交于 2021-02-07 09:56:09
问题 Let’s say you have an audio variable called audio and it stores a sound. I know how to change the speed for example: audio.playBackRate = 2; But I don't know how to change the pitch. Is there an audio.pitch attribute or do I have to create it myself? I want to do something like this: var audio = new Audio(); audio.src = "sound_effect.wav"; audio.pitch = 2 //doubling the pitch but there is no pitch attribute audio.play(); 回答1: I think you need to use a library to apply pitch shifting to your

Get an audio session's volume level

孤街浪徒 提交于 2021-02-07 09:23:19
问题 Does anyone know how to get the current volume level of an audio session* in Vista or 7? I've got the IAudioSessionControl2 and IAudioSessionManager2 instances you need to listen for volume changes , but actually getting the current volume is proving elusive. *by audio session I mean (roughly) the per-application audio control, not the "master" one Note that (so far as I can tell) IAudioSessionManager2->GetSimpleVolume() isn't the right answer here. The only thing that publishes a GUID in