未验证 提交 8036e9f1 编写于 作者: O openharmony_ci 提交者: Gitee

!5902 语音播报场景和语音识别,焦点抢占、播音、录音xts

Merge pull request !5902 from 黄建飞/master
...@@ -1710,6 +1710,34 @@ describe('audioCapturer', function () { ...@@ -1710,6 +1710,34 @@ describe('audioCapturer', function () {
await recPromise(audioCapturerOptions64000, done); await recPromise(audioCapturerOptions64000, done);
}) })
/**
*@tc.number : SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_1300
*@tc.name : AudioRec-Set11 , SourceType set SOURCE_TYPE_VOICE_RECOGNITION
*@tc.desc : record audio with parameter set 011
*@tc.size : MEDIUM
*@tc.type : Function
*@tc.level : Level 2
*/
it('SUB_MULTIMEDIA_AUDIO_VOIP_REC_VOICE_CHAT_PROMISE_1300', 2, async function (done) {
let audioStreamInfo64000 = {
samplingRate: audio.AudioSamplingRate.SAMPLE_RATE_64000,
channels: audio.AudioChannel.CHANNEL_2,
sampleFormat: audio.AudioSampleFormat.SAMPLE_FORMAT_S32LE,
encodingType: audio.AudioEncodingType.ENCODING_TYPE_RAW,
};
let audioCapturerInfo64000 = {
source: audio.SourceType.SOURCE_TYPE_VOICE_RECOGNITION,
capturerFlags: 0
}
let audioCapturerOptions64000 = {
streamInfo: audioStreamInfo64000,
capturerInfo: audioCapturerInfo64000,
}
await getFd("capture_js-64000-2C-32B.pcm");
await recPromise(audioCapturerOptions64000, done);
})
/** /**
*@tc.number : SUB_MULTIMEDIA_AUDIO_RECORD_PROMISE_AUDIO_SCENE_DEFAULT_0100 *@tc.number : SUB_MULTIMEDIA_AUDIO_RECORD_PROMISE_AUDIO_SCENE_DEFAULT_0100
*@tc.name : AudioRec-Set1 *@tc.name : AudioRec-Set1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册