Home
last modified time | relevance | path

Searched refs:sampleRateInHz (Results 1 – 11 of 11) 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.java74 public int start(int sampleRateInHz, @SupportedAudioFormat int audioFormat, in start() argument
DUtteranceProgressListener.java99 …public void onBeginSynthesis(String utteranceId, int sampleRateInHz, int audioFormat, int channelC… in onBeginSynthesis() argument
DTextToSpeechService.java662 public void dispatchOnBeginSynthesis(int sampleRateInHz, int audioFormat, int channelCount); in dispatchOnBeginSynthesis() argument
869 … public void dispatchOnBeginSynthesis(int sampleRateInHz, int audioFormat, int channelCount) { in dispatchOnBeginSynthesis() argument
872 …Callbacks.dispatchOnBeginSynthesis(getCallerIdentity(), utteranceId, sampleRateInHz, audioFormat, … in dispatchOnBeginSynthesis() local
1474 …patchOnBeginSynthesis(Object callerIdentity, String utteranceId, int sampleRateInHz, int audioForm… in dispatchOnBeginSynthesis() argument
1478 cb.onBeginSynthesis(utteranceId, sampleRateInHz, audioFormat, channelCount); in dispatchOnBeginSynthesis()
DTextToSpeech.java2139 public void onBeginSynthesis(String utteranceId, int sampleRateInHz, int audioFormat,
2143 … listener.onBeginSynthesis(utteranceId, sampleRateInHz, audioFormat, channelCount);
/frameworks/base/media/java/android/media/
DAudioTrack.java363 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument
366 this(streamType, sampleRateInHz, channelConfig, audioFormat, in AudioTrack()
418 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument
428 .setSampleRate(sampleRateInHz) in AudioTrack()
806 private void audioParamCheck(int sampleRateInHz, int channelConfig, int channelIndexMask, in audioParamCheck() argument
810 if ((sampleRateInHz < AudioFormat.SAMPLE_RATE_HZ_MIN || in audioParamCheck()
811 sampleRateInHz > AudioFormat.SAMPLE_RATE_HZ_MAX) && in audioParamCheck()
812 sampleRateInHz != AudioFormat.SAMPLE_RATE_UNSPECIFIED) { in audioParamCheck()
813 throw new IllegalArgumentException(sampleRateInHz in audioParamCheck()
816 mSampleRate = sampleRateInHz; in audioParamCheck()
[all …]
DAudioRecord.java275 public AudioRecord(int audioSource, int sampleRateInHz, int channelConfig, int audioFormat, in AudioRecord() argument
285 .setSampleRate(sampleRateInHz) in AudioRecord()
671 private void audioParamCheck(int audioSource, int sampleRateInHz, int audioFormat) in audioParamCheck() argument
686 if ((sampleRateInHz < AudioFormat.SAMPLE_RATE_HZ_MIN || in audioParamCheck()
687 sampleRateInHz > AudioFormat.SAMPLE_RATE_HZ_MAX) && in audioParamCheck()
688 sampleRateInHz != AudioFormat.SAMPLE_RATE_UNSPECIFIED) { in audioParamCheck()
689 throw new IllegalArgumentException(sampleRateInHz in audioParamCheck()
692 mSampleRate = sampleRateInHz; in audioParamCheck()
926 static public int getMinBufferSize(int sampleRateInHz, int channelConfig, int audioFormat) { in getMinBufferSize() argument
945 int size = native_get_min_buff_size(sampleRateInHz, channelCount, audioFormat); in getMinBufferSize()
[all …]
/frameworks/base/media/java/android/media/projection/
DMediaProjection.java146 int sampleRateInHz, int channelConfig, in createAudioRecord() argument
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp773 jint sampleRateInHz) { in android_media_AudioTrack_set_playback_rate() argument
780 return nativeToJavaStatus(lpTrack->setSampleRate(sampleRateInHz)); in android_media_AudioTrack_set_playback_rate()