- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
sdk v3.5
Android Customize Audio Input with AAC audio,
Implement com.intel.webrtc.base.WoogeenAudioRecord.AudioFrameGeneratorInterface and Override generateFramesForNext10Ms.
But there are 1024 sample in one aac frame, Samplerate is 44100Hz,so one frame is 1024*1000/44100= 22.32ms, So how do i make 10ms data?
thanks!
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Those are formats that audio encoder could (depends on the devices) encode the PCM data to.
Customized audio input allows you using an alternative audio input instead of the device microphone, but it requires the input data is raw format which is PCM. The data will ultimately be encoded to one of those formats/codecs mentioned above.
To answer your question:
yes the generateFramesForNext10Ms() expects PCM data.
コピーされたリンク
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi Wenyuan, currently customized audio input supports raw audio data (PCM) only.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Thank you for your reply!
But I have read the documents about android sdk, it said AudioCodec contains PCMU,OPUS,PCMA,ISAC, and AAC in sdk v3.5.
And as you said, I should generate 10ms PCM data, right?
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hank Zhang (Intel) wrote:
Hi Wenyuan, currently customized audio input supports raw audio data (PCM) only.
Thank you for your reply!
But I have read the documents about android sdk, it said AudioCodec contains PCMU,OPUS,PCMA,ISAC, and AAC in sdk v3.5.
And as you said, I should generate 10ms PCM data, right?
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Those are formats that audio encoder could (depends on the devices) encode the PCM data to.
Customized audio input allows you using an alternative audio input instead of the device microphone, but it requires the input data is raw format which is PCM. The data will ultimately be encoded to one of those formats/codecs mentioned above.
To answer your question:
yes the generateFramesForNext10Ms() expects PCM data.
