![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Use Microsoft Edge's online text-to-speech service from JavaScript WITHOUT needing Microsoft Edge or Windows or an API key
edge-tts
is a allows you to use Microsoft Edge's online text-to-speech service from within your TypeScript code.
Based on edge-tts for python.
import { tts, ttsSave } from 'edge-tts'
// buffer of mp3 data
const audioBuffer = await tts('hello world')
// or if you just want a file
await ttsSave('hello world', './tts.mp3')
// customize voice
await tts('hello world', {
voice: 'es-VE-PaolaNeural', // can be any Voice.Name, Voice.ShortName, or Voice.FriendlyName
volume: '+50%', // 50% louder
rate: '-50%', // 50% the speed
pitch: '-50Hz' // 50Hz lower
})
Find voices to use for the voice
param using getVoices
import { getVoices, tts } from 'edge-tts'
// get list of available voices
const voices = await getVoices()
// get voices done by native english speakers
const englishVoices = voices.filter(v => v.Locale === 'en-US')
// select a random english voice
const voice = englishVoices[Math.floor(Math.random() * englishVoices.length)]
// can also use voice.ShortName, or voice.FriendlyName
const audioBuffer = await tts('hello world', { voice: voice.Name })
FAQs
Use Microsoft Edge's online text-to-speech service from JavaScript WITHOUT needing Microsoft Edge or Windows or an API key
The npm package edge-tts receives a total of 9 weekly downloads. As such, edge-tts popularity was classified as not popular.
We found that edge-tts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.