Add Dart API for VAD (#904)

This commit is contained in:
Fangjun Kuang
2024-05-22 21:56:21 +08:00
committed by GitHub
parent 81346d1172
commit 49ee458bfb
11 changed files with 598 additions and 14 deletions

View File

@@ -1,7 +1,9 @@
// Copyright (c) 2024 Xiaomi Corporation
import 'package:sherpa_onnx/sherpa_onnx.dart' as sherpa_onnx;
import 'package:flutter/material.dart';
import "./speaker_identification_test.dart";
import "./vad_test.dart";
void main() {
runApp(const MyApp());
@@ -51,6 +53,7 @@ class _MyHomePageState extends State<MyHomePage> {
if (_counter <= 10) {
sherpa_onnx.initBindings();
await testSpeakerID();
// await testVad();
}
setState(() {