{"id":18028007,"url":"https://github.com/lfbear/tools","last_synced_at":"2025-04-04T20:22:15.184Z","repository":{"id":71633772,"uuid":"89582761","full_name":"lfbear/tools","owner":"lfbear","description":"small tool","archived":false,"fork":false,"pushed_at":"2017-04-27T10:10:20.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T05:56:52.018Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lfbear.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}},"created_at":"2017-04-27T09:52:59.000Z","updated_at":"2017-04-27T09:54:54.000Z","dependencies_parsed_at":"2023-05-13T00:30:19.738Z","dependency_job_id":null,"html_url":"https://github.com/lfbear/tools","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/lfbear%2Ftools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfbear%2Ftools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfbear%2Ftools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfbear%2Ftools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lfbear","download_url":"https://codeload.github.com/lfbear/tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247243247,"owners_count":20907229,"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-30T08:14:01.021Z","updated_at":"2025-04-04T20:22:15.161Z","avatar_url":"https://github.com/lfbear.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# small tools\n\n+ [Baidu Voice API](/baidu_tools.py) (百度语音服务rest api调用封装)\n\nA single python script (depend on python libs: requests, base64, json, os)\n    \n    - Voice to Text (语音识别服务)\n  \n```\n    api = baiduYuyin(API_KEY,API_SECRET) # you can get key and secret at http://yuyin.baidu.com/, it's free\n    words = api.sound2text('./test.wav') # words is a list, failed if words is empty\n    # special for test.wav, it must be a wav file, 8kHZ and 16bit\n    # I get wav file by this cmd: arecord -D \"plughw:CARD=Device\" -d 5 -r 8000 -t wav -f S16_LE test.wav\n```\n  \n    - Text to Voice (语音合成服务)\n```\n  api = baiduYuyin(API_KEY,API_SECRET)\n  api.text2sound(output_msg,file_name); # output_msg is a list, file_name is a mp3 file that voice will storage\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfbear%2Ftools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flfbear%2Ftools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfbear%2Ftools/lists"}