From c0e9b5d9ef10714a3200775d3d2b05c8eb6492fd Mon Sep 17 00:00:00 2001 From: ctao456 Date: Sun, 23 Jun 2024 20:37:08 -0700 Subject: [PATCH] [ASR] Fix asr microservice README on SPR CPU (#235) * Fix asr microservice with Python run on SPR CPU Signed-off-by: Chun Tao * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add gitignore to ignore python cache files Signed-off-by: Chun Tao * no need to add gitignore Signed-off-by: Chun Tao * revert lines in asr.py Signed-off-by: Chun Tao --------- Signed-off-by: Chun Tao Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- comps/asr/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/comps/asr/README.md b/comps/asr/README.md index f5a197be1..c1dacb261 100644 --- a/comps/asr/README.md +++ b/comps/asr/README.md @@ -22,6 +22,14 @@ nohup python whisper_server.py --device=cpu & python check_whisper_server.py ``` +Note: please make sure that port 7066 is not occupied by other services. Otherwise, use the command `npx kill-port 7066` to free the port. + +If the Whisper server is running properly, you should see the following output: + +```bash +{'asr_result': 'Who is pat gelsinger'} +``` + - Gaudi2 HPU ```bash @@ -35,10 +43,17 @@ python check_whisper_server.py ## 1.3 Start ASR Service/Test ```bash +cd ../ python asr.py python check_asr_server.py ``` +While the Whisper service is running, you can start the ASR service. If the ASR service is running properly, you should see the output similar to the following: + +```bash +{'id': '0e686efd33175ce0ebcf7e0ed7431673', 'text': 'who is pat gelsinger'} +``` + # 🚀2. Start Microservice with Docker (Option 2) Alternatively, you can also start the ASR microservice with Docker.