Browse Source

Merge branch 'ble' of github.com:deepcloud2048/deep_voice into ble

weicu
wolfplus 1 year ago
parent
commit
2d410819af
  1. 4
      lib/modules/meeting/controllers/meeting_details_controller.dart
  2. 3
      lib/modules/pairing/controllers/pairing_controller.dart
  3. 5
      local_plugins/azure_speech/android/src/main/kotlin/com/yunqiinnovation/azure_speech/AzureAsrHelper.kt
  4. 2
      pubspec.yaml

4
lib/modules/meeting/controllers/meeting_details_controller.dart

@ -110,10 +110,10 @@ class MeetingDetailsController extends GetxController
void _getAgent() async {
final GetStorage storage = GetStorage();
final List<DBAgent> agents = storage.read("AGENTS");
// final List<DBAgent> agents = storage.read("AGENTS");
Map userInfo = storage.read("user_info");
_userId = userInfo['user']['uid'];
_agent = agents.firstWhere((agent) => agent.id == 'meet_assistant');
// _agent = agents.firstWhere((agent) => agent.id == 'meet_assistant');
}
void _getDataDetails() async {

3
lib/modules/pairing/controllers/pairing_controller.dart

@ -235,6 +235,9 @@ class PairingController extends GetxController {
}
_updateStatusDescription();
});
if (needdeivice) {
_handleDeviceConnected();
}
}
/// 处理设备连接成功事件

5
local_plugins/azure_speech/android/src/main/kotlin/com/yunqiinnovation/azure_speech/AzureAsrHelper.kt

@ -606,9 +606,8 @@ class AzureAsrHelper(private val context: Context) {
val sessionId = audioRecord?.audioSessionId ?: return
// 回音消除
echoCanceler = AcousticEchoCanceler.create(sessionId).apply {
enabled = true
}
echoCanceler = AcousticEchoCanceler.create(sessionId)
echoCanceler?.enabled = true;
}
/**

2
pubspec.yaml

@ -34,7 +34,7 @@ dependencies:
webview_flutter: ^4.10.0
flutter_easyloading: ^3.0.5
package_info_plus: ^8.3.0
file_picker: ^8.0.0+1
file_picker: ^10.1.5
haptic_feedback: ^0.5.1+1
tencentcloud_cos_sdk_plugin: ^1.2.3

Loading…
Cancel
Save