diff --git a/src/components/touch-btn/touch-btn.vue b/src/components/touch-btn/touch-btn.vue index c834cd96..14d08f71 100644 --- a/src/components/touch-btn/touch-btn.vue +++ b/src/components/touch-btn/touch-btn.vue @@ -396,6 +396,7 @@ }); startAudioRecord({ onFrame: (pcmData: any) => { + console.log('pcmData', pcmData.length); if (wsStatus.value && ws.value) { if (voiceQueue.length > 0) { voiceQueue.forEach((cachedData) => { diff --git a/src/uni_modules/ty-camera/utssdk/app-android/config.json b/src/uni_modules/ty-camera/utssdk/app-android/config.json index d8dd7740..d159b364 100644 --- a/src/uni_modules/ty-camera/utssdk/app-android/config.json +++ b/src/uni_modules/ty-camera/utssdk/app-android/config.json @@ -1,3 +1,3 @@ { - "minSdkVersion": "35" + "minSdkVersion": "29" } \ No newline at end of file diff --git a/src/uni_modules/ty-recording/utssdk/app-android/config.json b/src/uni_modules/ty-recording/utssdk/app-android/config.json index ee37d455..d159b364 100644 --- a/src/uni_modules/ty-recording/utssdk/app-android/config.json +++ b/src/uni_modules/ty-recording/utssdk/app-android/config.json @@ -1,3 +1,3 @@ { - "minSdkVersion": "22" + "minSdkVersion": "29" } \ No newline at end of file diff --git a/src/uni_modules/ty-recording/utssdk/app-android/index.uts b/src/uni_modules/ty-recording/utssdk/app-android/index.uts index b4699124..d74b4eba 100644 --- a/src/uni_modules/ty-recording/utssdk/app-android/index.uts +++ b/src/uni_modules/ty-recording/utssdk/app-android/index.uts @@ -61,6 +61,7 @@ export function startAudioRecord(options : StartAudioRecordOptions) : void { // const lastVolume = calculateVolumeLight(buffer, readSize); // console.log('lastVolume', lastVolume); + options.onFrame?.(data) }