Sound from browser
const speak = (msg) => {
const sp = new SpeechSynthesisUtterance(msg);
[sp.voice] = speechSynthesis.getVoices();
speechSynthesis.speak(sp);
};
speak("Hellow world");
Search for a command to run...
const speak = (msg) => {
const sp = new SpeechSynthesisUtterance(msg);
[sp.voice] = speechSynthesis.getVoices();
speechSynthesis.speak(sp);
};
speak("Hellow world");
No comments yet. Be the first to comment.
npm install -g npm
import { createContext, useState, useEffect } from 'react'; const NotificationContext = createContext({ notification: null, // { title, message, status } showNotification: function (notificationData) {}, hideNotification: function () {}, }); ...
"redis://127.0.0.1:6379"
document .getElementById("scrollTo") .scrollIntoView({ behavior: "smooth", block: "start" });