{"id":21871406,"url":"https://github.com/kamui-fin/yomi-audio","last_synced_at":"2026-02-14T19:31:35.942Z","repository":{"id":135828751,"uuid":"555512469","full_name":"kamui-fin/yomi-audio","owner":"kamui-fin","description":"A custom yomichan audio server with local files","archived":false,"fork":false,"pushed_at":"2022-10-22T16:24:38.000Z","size":7,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-01T04:56:19.962Z","etag":null,"topics":["audio-server","yomichan"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kamui-fin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-10-21T18:25:07.000Z","updated_at":"2023-02-22T15:42:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"73f73747-99d7-4181-b3a0-3496b350ca15","html_url":"https://github.com/kamui-fin/yomi-audio","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kamui-fin/yomi-audio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamui-fin%2Fyomi-audio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamui-fin%2Fyomi-audio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamui-fin%2Fyomi-audio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamui-fin%2Fyomi-audio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kamui-fin","download_url":"https://codeload.github.com/kamui-fin/yomi-audio/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamui-fin%2Fyomi-audio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29453399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T15:52:44.973Z","status":"ssl_error","status_checked_at":"2026-02-14T15:52:11.208Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["audio-server","yomichan"],"created_at":"2024-11-28T06:14:12.144Z","updated_at":"2026-02-14T19:31:35.924Z","avatar_url":"https://github.com/kamui-fin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yomichan Audio Server\n\nAlthough Yomichan does support custom audio URLs, it doesn't solve the problem of using a local directory.\nInstead of having to mess with nginx configs, with yomi-audio, you can easily start an audio server and\npass it to Yomichan to pull pronunciation directly from your local filesystem.\n\n## Setup\n\nPython and pip are required to run the server. Clone the repository and install the necessary dependencies:\n\n```\ngit clone https://github.com/kamui-fin/yomi-audio \u0026\u0026 cd yomi-audio\npip install -r requirements.txt\n```\n\n### Running locally\n\nThe script offers a CLI that customizes the behavior of the server and starts it. The main required option is `-d` or `--directories` to specify the location of one or more directories containing the audio files. For example:\n\n```\npython app.py -d /home/user/audio_bank\n```\n\n### Sorting\n\nBy default, the original order in which they were specified is retained without any sorting.\n\nWith the `-s` flag, the directories passed in are sorted in ascending order by name. This can be leveraged to prioritize results from directories that contain higher quality audio.\n\n### Pattern matching\n\nThe default pattern for matching audio files is `{term}.mp3`.\nObviously, this may not suffice depending on the naming scheme.\nAs a result, there are two different ways to customize the way the _correct_ file is found.\n\nWith both ways, the `term` and `reading` must be surrounded by `{}` as a template literal, where they will be later replaced during matching.\n\nOne way is to use `-p` to directly match using a completely static/pre-defined naming pattern. This can be useful if the underlying naming scheme of the directory does not vary. For example, if all the files are named like `pronunciation_喜欢.mp3`, you can simply use the static pattern `pronunciation_{term}.mp3`.\n\nThe other way with `-g` utilizes powerful [glob](\u003chttps://en.wikipedia.org/wiki/Glob_(programming)\u003e) functionality. An example would be `???{term}???.mp3` to match `{term}` with 3 leading and trailing characters.\n\n## Connecting to Yomichan\n\nOnce you have the server running, open Yomichan settings. Click \"Configure audio playback sources\" under the Audio section and add the following custom URL:\n\n```\nhttp://localhost:5000/?expression={term}\u0026reading={reading}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamui-fin%2Fyomi-audio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkamui-fin%2Fyomi-audio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamui-fin%2Fyomi-audio/lists"}