Comments (3)
After having to work with stream.cpp
, I see the microphone data is retrieved from SDL iteratively, in parts which are then transcribed by whisper.cpp
.
The current implementation will need a way to grab so many seconds of microphone audio data. So it can be transcribed, then all the microphone data needs to be grabbed since the last time, before transcribing again etc.
from whispercpp.py.
I would like to get update for this topic
from whispercpp.py.
I haven't really explored the streaming functionality. However, from a brief look achieving this doesn't seem very straight forward. You'd need to look at whisper.cpp/stream/stream.cpp
and attempt to reimplement in Cython some of the functionality which interfaces with SDL for the audio capture (could be attempted in pure Python, but it would be easier to deal with the low level data structures). Alternativley you could keep most of stream.cpp
and make and expose a new single extern
(i.e. transcribe_stream()) a black box, which cython can pick up on and expose to Python, where everything else is handled in c++. But you'd need to figure out a nice way to return the text back to Python.
I'm not quite sure how the example works, unfortunately I can't delve particularly deep right now, but a particular issue will be having the data sent back continuously.
A simple yet inelegant method is simply launching a subprocess instead comprising a modified stream.cpp
and capturing stdout in Python.
from whispercpp.py.
Related Issues (20)
- get progress updates from python HOT 2
- Type error , tried everything nothing working HOT 6
- TypeError: argument should be a str object or an os.PathLike object returning str, not <class 'bytes'> HOT 1
- add support for other languages HOT 1
- Missing Licence HOT 1
- CoreML support? HOT 3
- Pip Install failing on windows HOT 1
- Cuda support?
- pip install failed in Mac M2
- Support specified language to decode
- [Question] How to get the start and end time? HOT 1
- Quantization model support?
- Set params? HOT 2
- The fillers are filtered while transcribing.
- ggml-large.bin doesn't exist anymore on hugginface
- Some compilation options are for amd64 only, doesn't work on arm64
- All models cause Python to core dump
- Crashing on Linux for me HOT 7
- Building wheels on WSL fails
- Github Workflow HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whispercpp.py.