{"id":15649857,"url":"https://github.com/ccoreilly/wav2vec2-service","last_synced_at":"2025-04-30T16:30:30.311Z","repository":{"id":56815477,"uuid":"447754535","full_name":"ccoreilly/wav2vec2-service","owner":"ccoreilly","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-14T16:55:47.000Z","size":401,"stargazers_count":38,"open_issues_count":3,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T17:51:13.727Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ccoreilly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-13T21:15:10.000Z","updated_at":"2024-09-13T06:17:43.000Z","dependencies_parsed_at":"2022-09-06T19:51:54.588Z","dependency_job_id":null,"html_url":"https://github.com/ccoreilly/wav2vec2-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccoreilly%2Fwav2vec2-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccoreilly%2Fwav2vec2-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccoreilly%2Fwav2vec2-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccoreilly%2Fwav2vec2-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ccoreilly","download_url":"https://codeload.github.com/ccoreilly/wav2vec2-service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251742196,"owners_count":21636401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T12:32:18.774Z","updated_at":"2025-04-30T16:30:30.046Z","avatar_url":"https://github.com/ccoreilly.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wav2Vec2 simple service\n\nMimics the Huggingface Inference API for a speech recognition model.\n\n## Usage\n\nThis is an example with an image which includes a Wav2Vec2 model for the catalan language\n\n```sh\n\u003e docker run -p 8000:8000 -d ghcr.io/ccoreilly/wav2vec2-catala:0.1.0\n\u003e curl -X POST localhost:8000/recognize -F \"file=@sample.wav\"\n{\"text\":\"bon vesprà a totes i tots donem començament al ple ordinari convocat per avui trenta de setembre de dos mil vint-i-u a les vuit hores en el saló de plens d'ací de l'ajuntament de massanassa\"}\n```\n\n## Converting Wav2Vec2 to ONNX format\n\nUsing the ONNX model format results in an increase in inference speed when using a CPU. You can convert any Wav2Vec2ForCTC model from the huggingface model hub using the `convert_torch_to_onnx.py` script:\n\n```sh\n\u003e python3 -m venv .venv\n\u003e source .venv/bin/activate\n\u003e pip install -r requirements.txt\n\u003e python convert_torch_to_onnx.py --model ccoreilly/wav2vec2-large-xlsr-catala\n```\n\nYou can also quantize the model to reduce its size\n\n```sh\n\u003e python convert_torch_to_onnx.py --model ccoreilly/wav2vec2-large-xlsr-catala --quantize\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccoreilly%2Fwav2vec2-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccoreilly%2Fwav2vec2-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccoreilly%2Fwav2vec2-service/lists"}