{"id":25580381,"url":"https://github.com/tderflinger/vue-audio-tapir","last_synced_at":"2025-06-12T01:35:08.351Z","repository":{"id":37425953,"uuid":"432111503","full_name":"tderflinger/vue-audio-tapir","owner":"tderflinger","description":"Audio recorder component for Vue.js 3. It enables to record, play and send audio messages to a server.","archived":false,"fork":false,"pushed_at":"2024-06-22T09:33:11.000Z","size":2165,"stargazers_count":55,"open_issues_count":10,"forks_count":17,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T17:11:59.835Z","etag":null,"topics":["audio","message","microphone","mp3","recording","vue"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/tderflinger.png","metadata":{"files":{"readme":"README-zh.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":"2021-11-26T08:50:28.000Z","updated_at":"2025-03-17T05:24:01.000Z","dependencies_parsed_at":"2022-08-18T23:41:30.529Z","dependency_job_id":null,"html_url":"https://github.com/tderflinger/vue-audio-tapir","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/tderflinger%2Fvue-audio-tapir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tderflinger%2Fvue-audio-tapir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tderflinger%2Fvue-audio-tapir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tderflinger%2Fvue-audio-tapir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tderflinger","download_url":"https://codeload.github.com/tderflinger/vue-audio-tapir/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248602312,"owners_count":21131616,"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":["audio","message","microphone","mp3","recording","vue"],"created_at":"2025-02-21T04:15:51.373Z","updated_at":"2025-04-12T17:12:16.415Z","avatar_url":"https://github.com/tderflinger.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-audio-tapir [![npm](https://img.shields.io/npm/v/vue-audio-tapir)](https://www.npmjs.com/package/vue-audio-tapir) [![npm](https://img.shields.io/npm/l/vue-audio-tapir)](https://www.npmjs.com/package/vue-audio-tapir)  \n\n\u003cdiv style=\"text-align: right\"\u003e\u003ca href=\"./README.md\"\u003eEnglish\u003c/a\u003e\u003c/div\u003e\n\u003cbr/\u003e\n\nVue.js 3的音频记录器组件。它能够录制、播放并向服务器发送音频信息。\n有一个相应的无服务器的后端函数叫 [audio-tapir-function](https://github.com/tderflinger/audio-tapir-function)。\n你可以将两者结合起来使用，向你发送带有录音信息的电子邮件。\n\n\u003cimg src=\"./docs/the-tapir-color-new.png\" style=\"display: block; margin: 40px auto; width: 200px\" /\u003e\n\n## 演示\n\n音频貘的[演示页面](https://tderflinger.github.io/vue-audio-tapir/)。\n你可以录制和播放音频，但提交被禁用。\n\n## 使用案例\n\nvue-audio-tapir最流行的使用案例是将音频联系信息直接从网站传递给\n音频联系信息直接从一个网站传递到你的邮箱里。\n\n\u003cimg src=\"./docs/screenshot.png\" style=\"display: block; margin: 40px auto; width: 300px\" /\u003e\n \n## 架构概述\n\n\u003cimg src=\"./docs/architecture-overview.png\" style=\"display: block; margin: 40px auto; width: 550px\" /\u003e\n\n开发者在他的Vue 3网站中包含了vue-audio-tapir组件。当该网站的用户\n想留下语音信息时，他录下他的信息并提交。Vue-audio-tapir联系\n后台服务器，一个Netlify的无服务器功能并上传音频数据。无服务器的后端功能\n使用电子邮件服务Sendgrid将音频数据发送到一个电子邮件地址。\n最后，带有语音信息的电子邮件到达了目的地，可能是网站所有者的电子邮件应用程序。\n网站所有者的电子邮件应用程序。\n\n## 安装\n\n在一个Vue 3应用程序中，用以下方式安装。\n\n```bash\nnpm i vue-audio-tapir -save\n```\n\n或\n```bash\nyarn add vue-audio-tapir --save\n```\n\n## 使用实例\n\n```html\n\u003ctemplate\u003e\n  \u003ctapir-widget :time=\"2\" backendEndpoint=\"https://your-endpoint.com/.netlify/functions/audio-message\" \n                buttonColor=\"green\"/\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport TapirWidget from 'vue-audio-tapir';\nimport 'vue-audio-tapir/dist/vue-audio-tapir.css';\n\nexport default {\n  name: 'App',\n  components: {\n    TapirWidget,\n  }\n}\n\u003c/script\u003e\n```\n\n\n## 属性\n\n| 名称 | 类型 | 描述 | \n|------------------|----------|---------------------------------------------------|\n| time             | Number   | 最大记录时间（分钟）                                 |\n| bitRate          | Number   | 记录的比特率                                        |\n| sampleRate       | Number   | 录音的采样率                                        |\n| backendEndpoint  | String   | 以POST方式接收数据的服务的URL                         |\n| buttonColor      | String   | 用于制作主题的按钮的颜色代码             |\n| afterRecording   | Function | 当录制完成后的回调函数。     |\n| successfulUpload | Function | 当数据成功上传时调用的回调函数。 |\n| failedUpload     | Function | 当上传失败时调用的回调函数。 |\n\n发送到服务器的数据被编码为MP3格式，以便有效存储。\n对于MP3编码，使用的是[lamejs](https://github.com/zhuker/lamejs)库。\n\n## 依赖性\n\n- [Vue 3](https://v3.vuejs.org/)\n- [Tailwindcss](https://tailwindcss.com/)\n\n## 更多信息\n\n在Twitter上关注我的更新。[@tderflinger](https://twitter.com/tderflinger)\n\n你可以在我的博客上阅读更多关于音貘项目的信息。\n\nhttps://www.tderflinger.com/en/easily-receive-audio-messages-from-users\n\n\n## 参考文献\n\n这个项目的灵感来自[vue-audio-recorder](https://github.com/grishkovelli/vue-audio-recorder) 作者：Gennady Grishkovtsov。\n\n\n## 许可证\n\nMIT许可\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftderflinger%2Fvue-audio-tapir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftderflinger%2Fvue-audio-tapir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftderflinger%2Fvue-audio-tapir/lists"}