I am trying to use Silero VAD using the Sherpa-Onnx package for Flutter. I am not able to get the assets from Flutter to the native layer. My code is derived from the pure Dart API example and it works well when running directly on the host machine. But fails when using Flutter
Logs -
flutter: AudioChatWidget: Copied assets to local storage: /Users/keyurstudent/Library/Developer/CoreSimulator/Devices/C8AF3178-C8BC-4A99-90A9-B0963D0DEEB1/data/Containers/Data/Application/9A993521-4159-483B-A937-CD430E235584/Documents/silero_vad/model.onnx, /Users/keyurstudent/Library/Developer/CoreSimulator/Devices/C8AF3178-C8BC-4A99-90A9-B0963D0DEEB1/data/Containers/Data/Application/9A993521-4159-483B-A937-CD430E235584/Documents/3dspeaker_speech_eres2net_sv_en_voxceleb_16k/model.onnx
flutter: AudioChatWidget: Copied AI bot audio files to local storage: [/Users/keyurstudent/Library/Developer/CoreSimulator/Devices/C8AF3178-C8BC-4A99-90A9-B0963D0DEEB1/data/Containers/Data/Application/9A993521-4159-483B-A937-CD430E235584/Documents/ai_bot_sample1.wav, /Users/keyurstudent/Library/Developer/CoreSimulator/Devices/C8AF3178-C8BC-4A99-90A9-B0963D0DEEB1/data/Containers/Data/Application/9A993521-4159-483B-A937-CD430E235584/Documents/ai_bot_sample2.wav, /Users/keyurstudent/Library/Developer/CoreSimulator/Devices/C8AF3178-C8BC-4A99-90A9-B0963D0DEEB1/data/Containers/Data/Application/9A993521-4159-483B-A937-CD430E235584/Documents/ai_bot_sample3.wav]
flutter: Failed to create VoiceActivityDetector
flutter: VAD initialized
flutter: SpeakerEmbeddingExtractor: SpeakerEmbeddingExtractorConfig(model: /Users/keyurstudent/Library/Developer/CoreSimulator/Devices/C8AF3178-C8BC-4A99-90A9-B0963D0DEEB1/data/Containers/Data/Application/9A993521-4159-483B-A937-CD430E235584/Documents/3dspeaker_speech_eres2net_sv_en_voxceleb_16k/model.onnx, numThreads: 1, debug: true, provider: cpu)
flutter: SpeakerEmbeddingExtractor: SpeakerEmbeddingExtractorConfig(model: /Users/keyurstudent/Library/Developer/CoreSimulator/Devices/C8AF3178-C8BC-4A99-90A9-B0963D0DEEB1/data/Containers/Data/Application/9A993521-4159-483B-A937-CD430E235584/Documents/3dspeaker_speech_eres2net_sv_en_voxceleb_16k/model.onnx, numThreads: 1, debug: true, provider: cpu)
flutter: SpeakerEmbeddingExtractor: ptr: Pointer: address=0x0
Lost connection to device.
Hi,
I am trying to use Silero VAD using the Sherpa-Onnx package for Flutter. I am not able to get the assets from Flutter to the native layer. My code is derived from the pure Dart API example and it works well when running directly on the host machine. But fails when using Flutter
Logs -