Home
last modified time | relevance | path

Searched refs:sampleRateInHz (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/java/android/speech/tts/
DFileSynthesisCallback.java102 public int start(int sampleRateInHz, int audioFormat, int channelCount) { in start() argument
104 Log.d(TAG, "FileSynthesisRequest.start(" + sampleRateInHz + "," + audioFormat in start()
114 mDispatcher.dispatchOnBeginSynthesis(sampleRateInHz, audioFormat, channelCount); in start()
131 mSampleRateInHz = sampleRateInHz; in start()
202 int sampleRateInHz = 0; in done() local
227 sampleRateInHz = mSampleRateInHz; in done()
237 makeWavHeader(sampleRateInHz, audioFormat, channelCount, dataLength)); in done()
284 private ByteBuffer makeWavHeader(int sampleRateInHz, int audioFormat, int channelCount, in makeWavHeader() argument
287 int byteRate = sampleRateInHz * sampleSizeInBytes * channelCount; in makeWavHeader()
302 header.putInt(sampleRateInHz); in makeWavHeader()
DPlaybackSynthesisCallback.java125 public int start(int sampleRateInHz, int audioFormat, int channelCount) { in start() argument
126 if (DBG) Log.d(TAG, "start(" + sampleRateInHz + "," + audioFormat + "," + channelCount in start()
135 mDispatcher.dispatchOnBeginSynthesis(sampleRateInHz, audioFormat, channelCount); in start()
158 mAudioParams, sampleRateInHz, audioFormat, channelCount, in start()
DITextToSpeechCallback.aidl71 … void onBeginSynthesis(String utteranceId, int sampleRateInHz, int audioFormat, int channelCount); in onBeginSynthesis() argument
DSynthesisCallback.java73 int sampleRateInHz, in start() argument
DUtteranceProgressListener.java99 …public void onBeginSynthesis(String utteranceId, int sampleRateInHz, int audioFormat, int channelC… in onBeginSynthesis() argument
DTextToSpeechService.java686 void dispatchOnBeginSynthesis(int sampleRateInHz, int audioFormat, int channelCount); in dispatchOnBeginSynthesis() argument
895 … public void dispatchOnBeginSynthesis(int sampleRateInHz, int audioFormat, int channelCount) { in dispatchOnBeginSynthesis() argument
898 …Callbacks.dispatchOnBeginSynthesis(getCallerIdentity(), utteranceId, sampleRateInHz, audioFormat, … in dispatchOnBeginSynthesis() local
1576 …patchOnBeginSynthesis(Object callerIdentity, String utteranceId, int sampleRateInHz, int audioForm… in dispatchOnBeginSynthesis() argument
1580 cb.onBeginSynthesis(utteranceId, sampleRateInHz, audioFormat, channelCount); in dispatchOnBeginSynthesis()
DTextToSpeech.java2213 int sampleRateInHz,
2219 utteranceId, sampleRateInHz, audioFormat, channelCount);
/frameworks/base/media/java/android/media/
DAudioTrack.java639 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument
642 this(streamType, sampleRateInHz, channelConfig, audioFormat, in AudioTrack()
697 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument
707 .setSampleRate(sampleRateInHz) in AudioTrack()
1683 private void audioParamCheck(int sampleRateInHz, int channelConfig, int channelIndexMask, in audioParamCheck() argument
1687 if ((sampleRateInHz < AudioFormat.SAMPLE_RATE_HZ_MIN || in audioParamCheck()
1688 sampleRateInHz > AudioFormat.SAMPLE_RATE_HZ_MAX) && in audioParamCheck()
1689 sampleRateInHz != AudioFormat.SAMPLE_RATE_UNSPECIFIED) { in audioParamCheck()
1690 throw new IllegalArgumentException(sampleRateInHz in audioParamCheck()
1693 mSampleRate = sampleRateInHz; in audioParamCheck()
[all …]
DAudioRecord.java322 public AudioRecord(int audioSource, int sampleRateInHz, int channelConfig, int audioFormat, in AudioRecord() argument
332 .setSampleRate(sampleRateInHz) in AudioRecord()
958 private void audioParamCheck(int audioSource, int sampleRateInHz, int audioFormat) in audioParamCheck() argument
974 if ((sampleRateInHz < AudioFormat.SAMPLE_RATE_HZ_MIN || in audioParamCheck()
975 sampleRateInHz > AudioFormat.SAMPLE_RATE_HZ_MAX) && in audioParamCheck()
976 sampleRateInHz != AudioFormat.SAMPLE_RATE_UNSPECIFIED) { in audioParamCheck()
977 throw new IllegalArgumentException(sampleRateInHz in audioParamCheck()
980 mSampleRate = sampleRateInHz; in audioParamCheck()
1223 static public int getMinBufferSize(int sampleRateInHz, int channelConfig, int audioFormat) { in getMinBufferSize() argument
1242 int size = native_get_min_buff_size(sampleRateInHz, channelCount, audioFormat); in getMinBufferSize()
[all …]
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp847 jint sampleRateInHz) { in android_media_AudioTrack_set_playback_rate() argument
854 return nativeToJavaStatus(lpTrack->setSampleRate(sampleRateInHz)); in android_media_AudioTrack_set_playback_rate()