/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 1576 …patchOnBeginSynthesis(Object callerIdentity, String utteranceId, int sampleRateInHz, int audioForm… in dispatchOnBeginSynthesis() argument 1580 cb.onBeginSynthesis(utteranceId, sampleRateInHz, audioFormat, channelCount); in dispatchOnBeginSynthesis()
|
D | TextToSpeech.java | 2213 int sampleRateInHz, 2219 utteranceId, sampleRateInHz, audioFormat, channelCount);
|
/frameworks/base/media/java/android/media/ |
D | AudioTrack.java | 639 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 …]
|
D | AudioRecord.java | 322 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/ |
D | android_media_AudioTrack.cpp | 847 jint sampleRateInHz) { in android_media_AudioTrack_set_playback_rate() argument 854 return nativeToJavaStatus(lpTrack->setSampleRate(sampleRateInHz)); in android_media_AudioTrack_set_playback_rate()
|