Added sound effects to the exam generation
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import {Howl, Howler} from "howler";
|
||||
|
||||
export const checkSound = () => {
|
||||
export type Sound = "check" | "sent";
|
||||
export const playSound = (path: Sound) => {
|
||||
const sound = new Howl({
|
||||
src: ["audio/check.mp3"],
|
||||
src: [`audio/${path}.mp3`],
|
||||
});
|
||||
|
||||
sound.play();
|
||||
|
||||
Reference in New Issue
Block a user