-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solution to the errors occuring when we run the inference and some picture example #2308
Open
MEI-mk11
wants to merge
7
commits into
coqui-ai:main
Choose a base branch
from
MEI-mk11:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+69
−0
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c82b64e
Update README.rst
MEI-mk11 474ce98
Add files via upload
MEI-mk11 9ef8149
Update README.rst
MEI-mk11 33e304e
Update README.rst
MEI-mk11 743c3e4
Create README.rst
MEI-mk11 83877c4
Update README.rst
MEI-mk11 6a9f009
Update README.rst
MEI-mk11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
🐸How to use the pre-trained model to simply run inference | ||
--------------- | ||
|
||
|
||
🐸Download trained Coqui STT models and run the inference on it. Though the old README file has told us how to do it, but I still get some errors in the process. And I find the guidance lack of picture example and error-fixed solution, so I create the new README file just to guide people facing the same error as me. | ||
|
||
|
||
* You can use the 🐸STT Model Manager by following these steps. | ||
# Create a virtual environment | ||
|
||
$ python3 -m venv venv-stt | ||
|
||
$ source venv-stt/bin/activate | ||
|
||
# Install 🐸STT model manager | ||
|
||
$ python -m pip install -U pip | ||
|
||
$ python -m pip install coqui-stt-model-manager | ||
|
||
# Run the model manager. A browser tab will open and you can then download and test models from the Model Zoo. | ||
|
||
$ stt-model-manager | ||
|
||
# Problem occurs when I use this method: | ||
|
||
*When using the provided way to create virtual environment, it can not find the bin file. So I change to use the mkvirtualenv | ||
*After creating the enviroment, error still occurs when I want to download STT manager | ||
|
||
.. |doc-img| image:: https://github.com/ZhengkunMei/STT/blob/main/images/virtual%20environment.png | ||
:target: https://github.com/ZhengkunMei/STT/blob/main/images/virtual%20environment.png | ||
:alt: Documentation | ||
|
||
|
||
.. |covenant-img| image:: https://github.com/ZhengkunMei/STT/blob/main/images/STT%20manager%20(2).png | ||
:target: https://github.com/ZhengkunMei/STT/blob/main/images/STT%20manager%20(2).png | ||
:alt: Contributor Covenant | ||
|
||
|
||
|
||
|doc-img| |covenant-img| | ||
|
||
|
||
|
||
|
||
* If you face the same error as me, you can choose the second way to get the model | ||
|
||
*Using `STT model <https://coqui.ai/models/>`_ to download your model | ||
|
||
|
||
|
||
* Then installing the stt to virtual environment | ||
|
||
*(coqui-stt-venv)$ python -m pip install -U pip && python -m pip install stt | ||
|
||
* Use the command below to test your inference | ||
|
||
*(coqui-stt-venv)$ stt --model model.tflite --scorer huge-vocabulary.scorer --audio my_audio_file.wav | ||
|
||
|
||
* SoX lacking error and its solution | ||
|
||
*When we use the last command to run the model, there is an error showing we did not install the SoX | ||
*Solution and result: the audio file need to be 16000Hz instead of 44100Hz, so I record my own voice "Hello world" and test it. | ||
*The result is a little bit different than I expected but still close to it | ||
.. |doc-img| image:: https://github.com/ZhengkunMei/STT/blob/main/images/output.png | ||
:target: https://github.com/ZhengkunMei/STT/blob/main/images/output.png | ||
:alt: Documentation | ||
|doc-img| |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Links should point to
coqui-ai/STT
project.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also wouldn't it be better to share the actual text within ` instead of un-pastable and sometimes unreadable images?