Add Python ASR examples with alsa (#646)
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
#endif
|
||||
|
||||
#if __ANDROID_API__ >= 27
|
||||
#include "nnapi_provider_factory.h"
|
||||
#include "nnapi_provider_factory.h" // NOLINT
|
||||
#endif
|
||||
|
||||
namespace sherpa_onnx {
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user