{"id":15655579,"url":"https://github.com/lorti/vue-dictaphone","last_synced_at":"2025-04-23T17:13:39.998Z","repository":{"id":39576765,"uuid":"133033058","full_name":"Lorti/vue-dictaphone","owner":"Lorti","description":"🎙️ Vue.js dictaphone component to record audio from the user","archived":false,"fork":false,"pushed_at":"2023-01-04T03:58:10.000Z","size":3368,"stargazers_count":24,"open_issues_count":23,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T17:13:33.661Z","etag":null,"topics":["audio-recorder","audio-visualizer","vue-component"],"latest_commit_sha":null,"homepage":null,"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/Lorti.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-05-11T11:47:05.000Z","updated_at":"2023-11-17T19:57:50.000Z","dependencies_parsed_at":"2023-02-01T19:46:42.453Z","dependency_job_id":null,"html_url":"https://github.com/Lorti/vue-dictaphone","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/Lorti%2Fvue-dictaphone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lorti%2Fvue-dictaphone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lorti%2Fvue-dictaphone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lorti%2Fvue-dictaphone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lorti","download_url":"https://codeload.github.com/Lorti/vue-dictaphone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250477810,"owners_count":21437049,"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-recorder","audio-visualizer","vue-component"],"created_at":"2024-10-03T12:59:53.359Z","updated_at":"2025-04-23T17:13:39.969Z","avatar_url":"https://github.com/Lorti.png","language":"Vue","funding_links":["https://www.paypal.me/manuninja"],"categories":[],"sub_categories":[],"readme":"# vue-dictaphone\n\n[![Donate](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://www.paypal.me/manuninja)\n\n🎙️ Vue.js dictaphone component to record audio from the user\n\n![](dictaphone.gif)\n\n---\n\n## Features\n\n* HTML/CSS is fully customizable via [Scoped Slots](https://vuejs.org/v2/guide/components-slots.html#Scoped-Slots)\n* Spectrum analyser for visualising frequencies (Optional)\n* `stop` event returns an `$event` object containing\n  * the audio blob (`$event.blob`) for further processing \n  * and a data URL (`$event.src`) for immediate output to the user\n* Components emit an `error` event, when the browser does not support audio recording or the user has blocked microphone access.\n\n## Installation\n\n```\nnpm install --save vue-dictaphone\n```\n\n```\nyarn add vue-dictaphone\n```\n\n## Usage\n\n```js\nimport VueDictaphone from \"vue-dictaphone\";\nVue.use(VueDictaphone);\n```\n\n```html\n\u003cvue-dictaphone @stop=\"handleRecording($event)\" \n                v-slot=\"{ isRecording, startRecording, stopRecording, deleteRecording }\"\u003e\n    \u003cbutton v-if=\"!isRecording\" @click=\"startRecording\"\u003eStart recording\u003c/button\u003e\n    \u003cbutton v-else @click=\"stopRecording\"\u003eStop recording\u003c/button\u003e\n\u003c/vue-dictaphone\u003e\n\n\u003cvue-dictaphone-spectrum-analyser/\u003e\n\n\u003ctemplate v-if=\"audioSource\"\u003e\n  \u003caudio :src=\"audioSource\" controls\u003e\u003c/audio\u003e\n\u003c/template\u003e\n```\n\n```js\nnew Vue({\n  // ... \n  data: {\n    audioSource: null\n  },\n  methods: {\n    handleRecording({ blob, src }) {\n      this.audioSource = src;\n    }\n  }\n  // ... \n});\n```\n\n### File types\n\nYou can pass an optional `mime-type` prop on the `vue-dictaphone` element to change the MIME type of the recorded audio. \n\n```html\n\u003cvue-dictaphone @stop=\"handleRecording($event)\" mime-type=\"audio/mp3\"\u003e\n  \u003c!-- ... --\u003e\n\u003c/vue-dictaphone\u003e\n```\n\nFor a list of MIME types supported by major browsers take a look a [Media formats for HTML audio and video](https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats#File_formats) on MDN.\n\n## Author\n\nManuel Wieser\u003cbr\u003e\n\u003chttps://manu.ninja/\u003e\u003cbr\u003e\n\u003chttps://twitter.com/manuelwieser\u003e\u003cbr\u003e\n\u003chttps://www.paypal.me/manuninja\u003e\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florti%2Fvue-dictaphone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Florti%2Fvue-dictaphone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florti%2Fvue-dictaphone/lists"}