🌐
GitHub
github.com › compodoc › typescript-ast-soundtrack
GitHub - compodoc/typescript-ast-soundtrack: Play sound with the AST of a typescript file
Play sound with the AST of a typescript file. Contribute to compodoc/typescript-ast-soundtrack development by creating an account on GitHub.
Author   compodoc
🌐
GitHub
github.com › topics › audio-player
audio-player · GitHub Topics
react audio rust player typescript music-player audio-player aesthetic tauri tailwindcss ... react audio hooks player reactjs sound audio-player html5-audio-api html5-audio-player xstate react-hook howlerjs-library howler-audio-library
🌐
GitHub
github.com › joshwcomeau › use-sound
GitHub - joshwcomeau/use-sound: A React Hook for playing sound effects · GitHub
If your project uses TypeScript, you should also install the @types/howler package as a dev dependency. The tutorial includes many demos, as well as instructions for finding and preparing sound effects.
Starred by 3.1K users
Forked by 108 users
Languages   JavaScript 64.1% | TypeScript 35.9%
🌐
GitHub
github.com › slnsw › react-ts-audio-player
GitHub - slnsw/react-ts-audio-player: React-based audio player built in Typescript.
React-based audio player built in Typescript. Contribute to slnsw/react-ts-audio-player development by creating an account on GitHub.
Author   slnsw
🌐
GitHub
github.com › EvandroLG › ts-audio
GitHub - EvandroLG/ts-audio: :musical_score: ts-audio is an agnostic library that makes it easy to work with AudioContext and create audio playlists in the browser
ts-audio is a lightweight, agnostic, and easy-to-use TypeScript/JavaScript library that simplifies working with the Web Audio API (AudioContext) and provides powerful playlist management capabilities.
Starred by 341 users
Forked by 25 users
Languages   TypeScript 97.2% | JavaScript 2.6% | Shell 0.2% | TypeScript 97.2% | JavaScript 2.6% | Shell 0.2%
🌐
GitHub
github.com › shime › play-sound
GitHub - shime/play-sound: Play sounds by shelling out to one of the available audio players. · GitHub
var player = require('play-sound')(opts = {}) // $ mplayer foo.mp3 player.play('foo.mp3', function(err){ if (err) throw err }) // { timeout: 300 } will be passed to child process player.play('foo.mp3', { timeout: 300 }, function(err){ if (err) throw err }) // configure arguments for executable if any player.play('foo.mp3', { afplay: ['-v', 1 ] /* lower volume for afplay on OSX */ }, function(err){ if (err) throw err }) // access the node child_process in case you need to kill it on demand var audio = player.play('foo.mp3', function(err){ if (err && !err.killed) throw err }) audio.kill()
Starred by 221 users
Forked by 32 users
Languages   JavaScript
🌐
GitHub
github.com › topics › sound
sound · GitHub Topics · GitHub
generator random sound synthesizer patch generative preset u-he u-he-diva u-he-hive-2 ... 🎶 An opensource javascript (typescript) audio player for the browser, built using the Web Audio API with support for HTML5 audio elements or XMLHttpRequest
🌐
npm
npmjs.com › package › play-sound
play-sound - npm
August 24, 2023 - npm i play-sound · github.com/shime/play-sound · github.com/shime/play-sound · 16,896 · 1.1.6 · MIT · 5.49 kB · 4 · 3 years ago · justinjmoses · shime · Analyze security with SocketCheck bundle sizeView package healthExplore dependencies ...
      » npm install play-sound
    
Published   Aug 24, 2023
Version   1.1.6
Author   Hrvoje Simic
Find elsewhere
🌐
GitHub
github.com › Microsoft › TypeScript › issues › 24569
Typescript Audio() object not taking NodeRequire as parameter · Issue #24569 · microsoft/TypeScript
June 1, 2018 - Actual behavior: So, putting this logic in Typescript, this will work without a type error: const htmlaudio: HTMLAudioElement = new Audio(require('./assets/song.mp3')); htmlaudio.play(); However, if the parameter is explicitly declared to be type NodeRequire, the code will still work but will flag a type error: const audio: NodeRequire = require('./assets/song.mp3'); const htmlaudio: HTMLAudioElement = new Audio(audio); htmlaudio.play(); Argument of type 'NodeRequire' is not assignable to parameter of type 'string | undefined'.
Author   phinguyen1618
🌐
npm
npmjs.com › package › @types › play-sound
@types/play-sound - npm
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/play-sound.
      » npm install @types/play-sound
    
🌐
Tone.js
tonejs.github.io
Tone.js
The third (optional) argument of triggerAttackRelease is when along the AudioContext time the note should play.
🌐
GitHub
github.com › nativeformat › NFPlayerJS
GitHub - nativeformat/NFPlayerJS: A JavaScript/TypeScript audio engine for the Web and Server capable of multitrack time stretching, pitch shifting, declarative effects, faster than realtime processing, and more!
A JavaScript/TypeScript audio engine for the Web and Server capable of multitrack time stretching, pitch shifting, declarative effects, faster than realtime processing, and more! - nativeformat/NFP...
Starred by 130 users
Forked by 7 users
Languages   TypeScript 92.1% | JavaScript 7.6% | HTML 0.3% | TypeScript 92.1% | JavaScript 7.6% | HTML 0.3%
🌐
TypeScript
typescriptlang.org › play › typescript › language › soundness.ts.html
TypeScript: Playground Example - Soundness
const getPI = () => 3.14; function runFunction(func: () => void) { func(); } runFunction(getPI); // For more information on the places where soundness of the type system is compromised, see: https://github.com/Microsoft/TypeScript/wiki/FAQ#type-system-behavior https://github.com/Microsoft/TypeScript/issues/9825 https://www.typescriptlang.org/docs/handbook/type-compatibility.html ·
🌐
GitHub
github.com › nomadhoc › sound-play
GitHub - nomadhoc/sound-play: An native audio player for NodeJS. · GitHub
const sound = require("sound-play"); sound.play("file.mp3");
Starred by 109 users
Forked by 19 users
Languages   JavaScript
🌐
GitHub
github.com › topics › audio
audio · GitHub Topics
react audio javascript music rust player typescript music-player vue websocket wasm apple-music audio-player astro fft lyric tauri vue3
🌐
Ourcade
examples.ourcade.co › phaser3-typescript › audio › web-audio › play-sound-on-keypress
Play Sound On Keypress Example for Phaser 3 in TypeScript - Ourcade: Playful Game Development
JavaScript and TypeScript game development code examples in Phaser 3 for a kind and helpful community for open-minded and optimistic learners and developers
🌐
npm
npmjs.com › package › @types › audio-play
@types/audio-play - npm
November 6, 2023 - Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/audio-play. /** * Creates and plays/pauses a sound effect or music.
      » npm install @types/audio-play
    
🌐
GitHub
github.com › parcel-bundler › parcel › issues › 1911
How to correctly load local assets like audio files · Issue #1911 · parcel-bundler/parcel
August 20, 2018 - audioFiles = []; loaded = 0; preload(numberOfSounds: object): void { // iterates through all the files for (const emotion in numberOfSounds) { for (let i=0; i<numberOfSounds[emotion]; i++) { const url = `./../sounds/${emotion}/${emotion}-${i}.mp3`; console.log(url); // ../sounds/happy/happy-0.mp3 this.audioFiles[this.loaded] = new Audio(url); this.loaded++; } } }
Author   mathildebuenerd