Add Python ASR examples with alsa (#646)

This commit is contained in:
Fangjun Kuang
2024-03-08 11:34:48 +08:00
committed by GitHub
parent e9e8d755d9
commit d3287f9494
12 changed files with 326 additions and 10 deletions

View File

@@ -16,7 +16,7 @@
#endif
#if __ANDROID_API__ >= 27
#include "nnapi_provider_factory.h"
#include "nnapi_provider_factory.h" // NOLINT
#endif
namespace sherpa_onnx {

View File

@@ -276,8 +276,8 @@ as the device_name.
}
}
using namespace std::chrono_literals;
std::this_thread::sleep_for(20ms); // sleep for 20ms
using namespace std::chrono_literals; // NOLINT
std::this_thread::sleep_for(20ms); // sleep for 20ms
}
t.join();

View File

@@ -192,8 +192,8 @@ as the device_name.
}
}
using namespace std::chrono_literals;
std::this_thread::sleep_for(20ms); // sleep for 20ms
using namespace std::chrono_literals; // NOLINT
std::this_thread::sleep_for(20ms); // sleep for 20ms
}
t.join();
t2.join();

View File

@@ -53,10 +53,6 @@ card 3: UACDemoV10 [UACDemoV1.0], device 0: USB Audio [USB Audio]
and if you want to select card 3 and the device 0 on that card, please use:
hw:3,0
or
plughw:3,0
as the device_name.