A component for sending and receiving voice messages in web applications.
To install this component, use npm:
npm install voice-message
npm install -D tailwindcss
npx tailwindcss inita
// tailwind.config.js
module.exports = {
content: [
"./node_modules/voice-message/build/VoiceMessage.js",
],
theme: {
extend: {},
},
plugins: [],
};
// index.css
@tailwind base;
@tailwind components;
@tailwind utilities;
// app.js
import VoiceMessage from "voice-message/build/VoiceMessage";
function App() {
return (
<VoiceMessage
data={"path/audio"}
status={"inbound" || "outbound" }
/>
);
}
export default App;
If you find this project helpful, you can support its development by donating Bitcoin:
bc1qc640he5efwezsp864c5nt70uwhttd65sgamdr3