/frameworks/base/core/java/android/speech/tts/ |
D | FileSynthesisCallback.java | 102 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()
|
D | PlaybackSynthesisCallback.java | 125 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()
|
D | ITextToSpeechCallback.aidl | 71 … void onBeginSynthesis(String utteranceId, int sampleRateInHz, int audioFormat, int channelCount); in onBeginSynthesis() argument
|
D | SynthesisCallback.java | 73 int sampleRateInHz, in start() argument
|
D | UtteranceProgressListener.java | 99 …public void onBeginSynthesis(String utteranceId, int sampleRateInHz, int audioFormat, int channelC… in onBeginSynthesis() argument
|
D | TextToSpeechService.java | 686 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 1575 …patchOnBeginSynthesis(Object callerIdentity, String utteranceId, int sampleRateInHz, int audioForm… in dispatchOnBeginSynthesis() argument 1579 cb.onBeginSynthesis(utteranceId, sampleRateInHz, audioFormat, channelCount); in dispatchOnBeginSynthesis()
|
D | TextToSpeech.java | 2154 int sampleRateInHz, 2160 utteranceId, sampleRateInHz, audioFormat, channelCount);
|
/frameworks/base/media/java/android/media/ |
D | AudioTrack.java | 487 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument 490 this(streamType, sampleRateInHz, channelConfig, audioFormat, in AudioTrack() 545 public AudioTrack(int streamType, int sampleRateInHz, int channelConfig, int audioFormat, in AudioTrack() argument 555 .setSampleRate(sampleRateInHz) in AudioTrack() 1244 private void audioParamCheck(int sampleRateInHz, int channelConfig, int channelIndexMask, in audioParamCheck() argument 1248 if ((sampleRateInHz < AudioFormat.SAMPLE_RATE_HZ_MIN || in audioParamCheck() 1249 sampleRateInHz > AudioFormat.SAMPLE_RATE_HZ_MAX) && in audioParamCheck() 1250 sampleRateInHz != AudioFormat.SAMPLE_RATE_UNSPECIFIED) { in audioParamCheck() 1251 throw new IllegalArgumentException(sampleRateInHz in audioParamCheck() 1254 mSampleRate = sampleRateInHz; in audioParamCheck() [all …]
|
D | AudioRecord.java | 298 public AudioRecord(int audioSource, int sampleRateInHz, int channelConfig, int audioFormat, in AudioRecord() argument 308 .setSampleRate(sampleRateInHz) in AudioRecord() 764 private void audioParamCheck(int audioSource, int sampleRateInHz, int audioFormat) in audioParamCheck() argument 780 if ((sampleRateInHz < AudioFormat.SAMPLE_RATE_HZ_MIN || in audioParamCheck() 781 sampleRateInHz > AudioFormat.SAMPLE_RATE_HZ_MAX) && in audioParamCheck() 782 sampleRateInHz != AudioFormat.SAMPLE_RATE_UNSPECIFIED) { in audioParamCheck() 783 throw new IllegalArgumentException(sampleRateInHz in audioParamCheck() 786 mSampleRate = sampleRateInHz; in audioParamCheck() 1025 static public int getMinBufferSize(int sampleRateInHz, int channelConfig, int audioFormat) { in getMinBufferSize() argument 1044 int size = native_get_min_buff_size(sampleRateInHz, channelCount, audioFormat); in getMinBufferSize() [all …]
|
/frameworks/base/core/jni/ |
D | android_media_AudioTrack.cpp | 786 jint sampleRateInHz) { in android_media_AudioTrack_set_playback_rate() argument 793 return nativeToJavaStatus(lpTrack->setSampleRate(sampleRateInHz)); in android_media_AudioTrack_set_playback_rate()
|