{"id":18009150,"url":"https://github.com/kwea123/bookkeeping","last_synced_at":"2025-04-04T12:40:40.889Z","repository":{"id":109612691,"uuid":"139248704","full_name":"kwea123/bookkeeping","owner":"kwea123","description":"網頁語音記帳程式 - 利用Google Cloud Speech API 實現快速語音記帳","archived":false,"fork":false,"pushed_at":"2018-07-03T12:49:33.000Z","size":90,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T22:30:34.527Z","etag":null,"topics":["bookkeeping","google-cloud-speech","html","python"],"latest_commit_sha":null,"homepage":"","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/kwea123.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":"2018-06-30T12:44:17.000Z","updated_at":"2022-02-26T17:42:09.000Z","dependencies_parsed_at":"2023-06-19T20:45:22.184Z","dependency_job_id":null,"html_url":"https://github.com/kwea123/bookkeeping","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/kwea123%2Fbookkeeping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwea123%2Fbookkeeping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwea123%2Fbookkeeping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwea123%2Fbookkeeping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kwea123","download_url":"https://codeload.github.com/kwea123/bookkeeping/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247182337,"owners_count":20897379,"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":["bookkeeping","google-cloud-speech","html","python"],"created_at":"2024-10-30T02:08:50.000Z","updated_at":"2025-04-04T12:40:40.858Z","avatar_url":"https://github.com/kwea123.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bookkeeping (記帳)\n\n**注意：本應用程式需用到Google Cloud Speech API，需要付費**\n\n這是一個記帳用應用程式，可以用語音輸入帳目以及金額，它會在螢幕上顯示結果。\n\n範例：\n![alt text](sample.png)\n\n# 安裝\n\n1. Clone這個資料夾。\n```\ngit clone https://github.com/kwea123/bookkeeping.git\n```\n2. 進入本資料夾，並安裝所需資料包。\n```\ncd bookkeeping\npip install -r requirements.txt\n```\n3. 根據[Google Cloud Speech API](https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/speech/cloud-client)，申請一個google帳號，並啟用Cloud Speech API。他會要你產生一組`.json`密鑰，請將這個密鑰檔保存好。\n4. 更改`bookkeeping.py`中`os.environ['GOOGLE_APPLICATION_CREDENTIALS']`的值，把它設成剛才下載的密鑰路徑。\n\n# 使用方法\n\n1. 進入本資料夾，在命令行中輸入`python bookkeeping.py`。這會啟動應用程式，開啟網頁連至`localhost:5000`即可看見。\n2. 按左上角「錄音」即可以語音輸入記帳。格式為「OOOXX元」，例如「蘋果50元」。可連續說。當google認為你說完一句話時，螢幕會顯示他辨識出的內容。須注意的是，每次錄音時間最多65秒，多了會出錯(google本身的設定)。以後可能會修正。\n3. 要停止錄音時請說「停止」或「結束」(可在`bookkeeping.py`裡面改)，說了之後應用程式會儲存所說的資料並顯示。\n4. 按左上角「儲存」可儲存當前`.csv`檔為`data.csv`。(若不儲存，則關掉開啟伺服器的命令行時所有資料將會消失)\n5. 其他功能應該很容易理解，懶得寫。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwea123%2Fbookkeeping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkwea123%2Fbookkeeping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwea123%2Fbookkeeping/lists"}