Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gyldendal/kobber-audio-recorder

Package Overview
Dependencies
Maintainers
0
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gyldendal/kobber-audio-recorder

An audio recorder and playback interface that lets you do multiple recordings and bounce them down to a single mp3.

  • 0.3.64
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
22
decreased by-73.49%
Maintainers
0
Weekly downloads
 
Created
Source

Kobber AudioRecorder

An audio recorder and playback interface that lets you do multiple recordings and bounce them down to a single mp3.

Basic Setup

Install via npm

npm i @gyldendal/kobber-audio-recorder

Examples of ways to mount the component:

Straight into the html, mounting the component to a target in the DOM.

<script type="module" src="@gyldendal/kobber-audio-recorder"></script>
<script type="module">
    import AudioRecorder from "@gyldendal/kobber-audio-recorder";
    const recorder = new AudioRecorder({
        target: document.getElementById("from-index"),
    });
</script>
<div id="from-index"></div>

As a class constructor, here shown in the context of Svelte.

<script>
    import { onMount } from "svelte";
    import AudioRecorder from "@gyldendal/kobber-audio-recorder";

    onMount(() => {
        const target = document.getElementById("in-svelte");
            if (target) {
                new AudioRecorder({ target: target });
            }
    });
</script>

<div id="in-svelte"></div>

As a customElement

import AudioRecorder from "@gyldendal/kobber-audio-recorder";   

<kobber-audio-recorder id=""></kobber-audio-recorder>

Properties

mp3Callback

A callback function passed to the component, called with a mp3 blob as argument when the recording is updated.

FAQs

Package last updated on 17 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc