update Readme

This commit is contained in:
makaveli10
2023-06-02 01:36:55 +08:00
parent 4552ecbb19
commit 2c7416386c
+6 -4
View File
@@ -30,24 +30,26 @@ Unlike traditional speech recognition systems that rely on continuous audio stre
- On the client side - On the client side
- To transcribe an audio file: - To transcribe an audio file:
```bash ```bash
python client.py --audio "audio.wav" python client.py --audio "audio.wav" --host "localhost" --port "9090"
``` ```
- To transcribe from microphone: - To transcribe from microphone:
```bash ```bash
python client.py python client.py --host "localhost" --port "9090"
``` ```
## Transcribe audio from browser ## Transcribe audio from browser
- Run the websocket-server - Run the server
```bash ```bash
python websocket_server.py python server.py
``` ```
This would start the websocket server on port ```9090```. This would start the websocket server on port ```9090```.
- Head over to ```Audio-Transcription``` module to unpack and load a chrome extension to capture any audio in the browser(only Chrome for now) and send it to the websocket server to transcribe the audio in the current tab. - Head over to ```Audio-Transcription``` module to unpack and load a chrome extension to capture any audio in the browser(only Chrome for now) and send it to the websocket server to transcribe the audio in the current tab.
## Future Work ## Future Work
- [ ] Update Documentation. - [ ] Update Documentation.
- [ ] Keep only a single server implementation i.e. websockets and get rid of the socket implementation in ```server.py```. Also, update ```client.py``` to websockets-client implemenation. - [ ] Keep only a single server implementation i.e. websockets and get rid of the socket implementation in ```server.py```. Also, update ```client.py``` to websockets-client implemenation.