Skip to content

Commit

Permalink
[ASR] Fix asr microservice README on SPR CPU (#235)
Browse files Browse the repository at this point in the history
* Fix asr microservice with Python run on SPR CPU

Signed-off-by: Chun Tao <[email protected]>

* [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 <[email protected]>

* no need to add gitignore

Signed-off-by: Chun Tao <[email protected]>

* revert lines in asr.py

Signed-off-by: Chun Tao <[email protected]>

---------

Signed-off-by: Chun Tao <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
ctao456 and pre-commit-ci[bot] authored Jun 24, 2024
1 parent 48ed5d8 commit c0e9b5d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions comps/asr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit c0e9b5d

Please sign in to comment.