Skip to content

Commit 272e661

Browse files
committed
tidy up moonshine sample
1 parent 0d510ae commit 272e661

2 files changed

Lines changed: 26 additions & 4 deletions

File tree

  • examples/stt_moonshine_transcription
  • getstream/plugins/stt/moonshine

examples/stt_moonshine_transcription/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async def main() -> None: # noqa: D401
4343
client = Stream.from_env()
4444

4545
call_id = str(uuid.uuid4())
46-
print(f"📞 Call ID: {call_id}")
46+
print(f"📞 Call ID: {call_id}")
4747

4848
user_id = f"user-{uuid.uuid4()}"
4949
create_user(client, user_id, "My User")

getstream/plugins/stt/moonshine/README.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,34 @@ This plugin provides Speech-to-Text functionality using [Moonshine](https://gith
1313
- **WebRTC Optimized**: Seamless integration with Stream video calling infrastructure
1414
- **Efficient Model Loading**: ONNX version loads models on-demand for optimal memory usage
1515

16-
## Installation
16+
## Installation (uv)
1717

18-
The plugin requires the Moonshine ONNX library:
18+
If your project already uses **uv**, add the plugin to your `pyproject.toml`
19+
and let uv resolve everything:
20+
21+
```toml
22+
[project]
23+
dependencies = [
24+
# … other deps …
25+
"getstream-plugins-stt-moonshine",
26+
]
27+
28+
[tool.uv.sources]
29+
getstream-plugins-stt-moonshine = { path = "getstream/plugins/stt/moonshine" } # or remove for PyPI
30+
```
31+
32+
Then:
33+
34+
```bash
35+
uv sync # installs useful-moonshine-onnx, onnxruntime, etc.
36+
```
37+
38+
### Classic pip (optional)
39+
40+
If you prefer to install only the runtime libraries manually:
1941

2042
```bash
21-
pip install useful-moonshine-onnx@git+https://github.com/usefulsensors/moonshine.git#subdirectory=moonshine-onnx
43+
pip install "useful-moonshine-onnx @ git+https://github.com/usefulsensors/moonshine.git#subdirectory=moonshine-onnx"
2244
pip install onnxruntime
2345
```
2446

0 commit comments

Comments
 (0)