Skip to content

Commit 68b2ddb

Browse files
committed
修改sdk video demo对讲为16k,单声道,16位深
Change-Id: Ib6c574e295aec26b44d6e7fd709ade8a2a1d58c5
1 parent 6756ae0 commit 68b2ddb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdkdemo/src/main/java/com/tencent/iot/explorer/link/demo/video/preview/VideoPreviewActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ class VideoPreviewActivity : VideoBaseActivity(), EventView, TextureView.Surface
137137
presenter.getEventsData(Date())
138138
tv_event_status.visibility = View.VISIBLE
139139
tv_event_status.setText(R.string.loading)
140-
// audioRecordUtil = AudioRecordUtil(this, "${it.productId}/${presenter.getDeviceName()}", 16000)
140+
audioRecordUtil = AudioRecordUtil(this, "${it.productId}/${presenter.getDeviceName()}", 16000, AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT)
141141
// //变调可以传入pitch参数
142-
audioRecordUtil = AudioRecordUtil(this, "${it.productId}/${presenter.getDeviceName()}", 16000, AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT, -6)
142+
// audioRecordUtil = AudioRecordUtil(this, "${it.productId}/${presenter.getDeviceName()}", 16000, AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT, -6)
143143
audioRecordUtil.recordSpeakFlv(true)
144144
}
145145

0 commit comments

Comments
 (0)