Added Speech Recognition with Hugging Face from Node.js to Python #321
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.
Main Contributor: Waterberry71 (Jacob)
Participant: Edumanu82 (Eduardo)
What does this PR do?
This PR adds a new template for "Speech Recognition with Hugging Face" which has python and node.js support now.
The Main Package includes:
My Setup file
My AppwriteService file
My Main File
Added Utility File
Outside of the Main Process
Test Plan
Install Dependencies
pip install appwrite
pip install huggingface_hub
pip install python-dotenv
Run Docker for Appwrite on terminal within the parent directory of that template
cd python/speech_recognition_with_huggingface
Source: https://appwrite.io/docs/advanced/self-hosting
docker run -it --rm
--volume /var/run/docker.sock:/var/run/docker.sock
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw
--entrypoint="install"
appwrite/appwrite:1.6.0
For replication purposes, make sure to use Default Recommendations when you see like (port 80, port 443, localhost, etc)
After installation, use port 80 for example to sign up and create an account
Retrieve your project id and key only
Environment Setup
Objective: Ensure all environment variables are correctly set.
Use this request to execute main.py in order to get things running
Mock Test for this template (WIP)
Test Result (WIP):
My Hypothesis:
Perhaps the content of my .wav file is corrupted, make sure the test file you are using is supported
There could also be an issue in File Retrieval
I will continue debugging.
PR related
The structure of the main operation files here were used as reference in Waterberry's object detection with hugging face template pull request.
At least for this and for efficiency, this was possible because they are both using the same template API with a difference of specificity.
Have you read the Contributing Guidelines on issues?
Thoroughly yes.
Resources
Created my cited guide for navigating how to run Appwrite locally
Received feedback from team afterwards:
https://docs.google.com/document/d/1uPj4TdY5sdGFFG8uy-g47OhRXsYx1DoBchHDZu6cM2E/edit?usp=sharing