marcus-daily
commited on
Commit
·
3267e96
1
Parent(s):
849c530
Removing incorrect code sample
Browse files
README.md
CHANGED
|
@@ -107,23 +107,7 @@ All audio/text pairs are released on the [pipecat‑ai/datasets](https://hugging
|
|
| 107 |
|
| 108 |
[oai_citation:7‡Daily](https://www.daily.co/blog/smart-turn-v2-faster-inference-and-13-new-languages-for-voice-ai/)
|
| 109 |
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
import soundfile as sf
|
| 115 |
-
|
| 116 |
-
pipe = pipeline(
|
| 117 |
-
"audio-classification",
|
| 118 |
-
model="pipecat-ai/smart-turn-v2",
|
| 119 |
-
feature_extractor="facebook/wav2vec2-base"
|
| 120 |
-
)
|
| 121 |
-
|
| 122 |
-
speech, sr = sf.read("user_utterance.wav")
|
| 123 |
-
if sr != 16_000:
|
| 124 |
-
raise ValueError("Resample to 16 kHz")
|
| 125 |
-
|
| 126 |
-
result = pipe(speech, top_k=None)[0]
|
| 127 |
-
print(f"Completed turn? {result['label']} Prob: {result['score']:.3f}")
|
| 128 |
-
# label == 'complete' → user has finished speaking
|
| 129 |
-
```
|
|
|
|
| 107 |
|
| 108 |
[oai_citation:7‡Daily](https://www.daily.co/blog/smart-turn-v2-faster-inference-and-13-new-languages-for-voice-ai/)
|
| 109 |
|
| 110 |
+
|
| 111 |
+
## How to use
|
| 112 |
+
|
| 113 |
+
Please see the blog post and GitHub repo for more information on using the model, either standalone or with Pipecat.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|