File tree Expand file tree Collapse file tree
examples/stt_moonshine_transcription
getstream/plugins/stt/moonshine Expand file tree Collapse file tree Original file line number Diff line number Diff 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" )
Original file line number Diff line number Diff 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"
2244pip install onnxruntime
2345```
2446
You can’t perform that action at this time.
0 commit comments