MarekRudzki / TalkBridge

Voice translator
3 stars 2 forks source link

macos failed to start recording #6

Closed flutter-painter closed 6 months ago

flutter-painter commented 7 months ago

flutter: Start recording [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(-3, Failed to start recording, Input device not found from available list., null)

0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:652:7)

1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:310:18)

#2 VoiceRecorder.build.startRecording (package:talkbridge/features/voice_record/presentation/widgets/voice_recorder.dart:40:9) #3 VoiceRecorder.build.... (package:talkbridge/features/voice_record/presentation/widgets/voice_recorder.dart:162:29)
MarekRudzki commented 7 months ago

Hi. The described issue is probably caused by missing permissions. I have updated the code. Unfortunately, currently I do not have access to macOS device, so if you could check if the issue still occurs I would be really grateful. Thanks in advance

flutter-painter commented 7 months ago

Hi @MarekRudzki,

Indeed it comes from the entitlements, example/macos/Runner/DebugProfile.entitlements macos/Runner/DebugProfile.entitlements macos/Runner/Release.entitlements We need to add :

com.apple.security.device.audio-input

Also since the app uses internet, also need to add :

com.apple.security.network.client
MarekRudzki commented 6 months ago

HI @flutter-painter, thanks for suggestions, I have added required entitlements.