
Research
Security News
Malicious npm Package Wipes Codebases with Remote Trigger
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Library for interfacing with Microsoft EdgeTTS service heavily inspired by Entity-Now/Edge_tts_sharp. This library uses direct streaming under the hood and is able to start playing audio immediatelly before the download is completed. It provides an audio stream or can write directly into 3rd party stream (like HTTP reponse).
EdgeTTS Sharp is a .NET Standard 2.1 library that provides an easy-to-use interface for text-to-speech (TTS) synthesis using Microsoft's Edge voices. It is designed to work across different systems and environments, offering flexible ways to handle audio streams. Whether you need real-time streaming, file saving, or direct playback, EdgeTTS Sharp makes it simple to integrate high-quality TTS into your applications.
ā Real-time audio streaming ā Start playback immediately as the first audio packet arrives.
ā Save to file ā Store generated speech as an audio file while streaming.
ā Stream to third-party services ā Send audio directly to a network stream (e.g., HTTP response).
ā Cross-platform support ā Works on any system supporting .NET Standard 2.1.
ā Windows-specific playback support ā Utilize NAudio for local playback on Windows.
EdgeTts.GetAudioStream
Returns a stream that starts playing immediately once the first audio packet arrives.
var voice = await EdgeTts.GetVoice("en-US-ChristopherNeural");
await using var stream = voice.GetAudioStream("test");
// use the stream here
EdgeTts.SaveAudioToFile
Uses GetAudioStream
internally and redirects the stream to a file. The saving process starts immediately when the first packet arrives.
var voice = await EdgeTts.GetVoice("en-US-ChristopherNeural");
await voice.SaveAudioToFile("test", @"d:\test\test1.mp3");
EdgeTts.StreamText
Streams audio directly to a specified output stream, such as an HTTP response body. If HTTP headers are set correctly, browsers can start playback before the download finishes, showing the progress indicator as the audio loads.
[HttpGet("api/audio/{id}")]
[Produces("audio/mpeg")]
[ResponseCache(NoStore = true, Location = ResponseCacheLocation.None)]
...
var voice = await EdgeTts.GetVoice("en-US-ChristopherNeural");
// stream audio directly to HttpResponse as it's being downloaded
await voice.StreamText(this.Response.Body, "test");
EdgeTts.GetVoices
Provides an offline lookup of all available voices from Edge_tts_sharp. If the list is outdated, feel free to report it.
EdgeTts.GetVoice
Retrieves a specific voice using its short name (e.g., "en-US-ChristopherNeural"
).
This module is for Windows users who want local playback using NAudio. However, due to NAudio's limitations, it requires downloading the entire stream before playback begins.
EdgeTtsWindowsPlayback.PlayText
var voice = await EdgeTts.GetVoice("en-US-ChristopherNeural");
await voice.PlayText("test");
EdgeTtsSharp is licensed under the MIT License.
The configuration file containing the list of available voices was taken from Entity-Now/Edge_tts_sharp, and the authentication method is also inspired by that project.
FAQs
Library for interfacing with Microsoft EdgeTTS service heavily inspired by Entity-Now/Edge_tts_sharp. This library uses direct streaming under the hood and is able to start playing audio immediatelly before the download is completed. It provides an audio stream or can write directly into 3rd party stream (like HTTP reponse).
We found that edgettssharp 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.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.
Security News
New CNA status enables OpenJS Foundation to assign CVEs for security vulnerabilities in projects like ESLint, Fastify, Electron, and others, while leaving disclosure responsibility with individual maintainers.