yangrongzhao commited on
Commit ·
6e4c376
1
Parent(s): 9bae8c7
Update README
Browse files
README.md
CHANGED
|
@@ -1,4 +1,25 @@
|
|
| 1 |
---
|
| 2 |
license: bsd-3-clause
|
| 3 |
pipeline_tag: automatic-speech-recognition
|
| 4 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: bsd-3-clause
|
| 3 |
pipeline_tag: automatic-speech-recognition
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Whisper
|
| 7 |
+
|
| 8 |
+
## CPP
|
| 9 |
+
|
| 10 |
+
### 服务端
|
| 11 |
+
|
| 12 |
+
```
|
| 13 |
+
cd cpp
|
| 14 |
+
./whisper_srv --model_type tiny --model_path ../models-ax650 --language zh --port 8080
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
### 客户端
|
| 18 |
+
|
| 19 |
+
curl命令行测试:
|
| 20 |
+
```
|
| 21 |
+
ffmpeg -i demo.wav -f f32le -c:a pcm_f32le - 2>/dev/null | \
|
| 22 |
+
curl -X POST 10.126.33.192:8080/asr \
|
| 23 |
+
-H "Content-Type: application/octet-stream" \
|
| 24 |
+
--data-binary @-
|
| 25 |
+
```
|