Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
not official API for Microsoft speech synthesis from Microsoft Edge web browser read aloud
not official API for Microsoft speech synthesis from Microsoft Edge web browser read aloud
pip install --upgrade msspeech
or
poetry add msspeech
After updating an already installed library To update the list of voices, run the command in your terminal:
msspeech-update-voices
or
poetry run msspeech-update-voices
Since the first of July 2022, the list of voices and the API as a whole has been very much limited!
They returned back some male voices and added new languages, as well as made support for emotional styles. Despite the fact that styles appeared in JSON, you still won't be able to use them, SSML does not perceive them. SSML is very limited here, so there is no point in supporting it.
The official documentation is not suitable for this API. It seems this API uses undocumented SSML markup.
the pitch and rate values are set as a percentage from -100 to +100, that is, it can be a negative, positive number, or zero for the default value.
examples: -30, 40, 0
The volume should be a fractional number from 0.1 to 1.0, but in fact it doesn't work for some reason.
The maximum synthesize text length is approximately 31000 characters per request.
synthesize text:
msspeech Guy hello --filename audio.mp3
update voices list:
msspeech-update-voices
import asyncio
from msspeech import MSSpeech
async def main():
mss = MSSpeech()
print("Geting voices...")
voices = await mss.get_voices_list()
print("searching Russian voice...")
for voice in voices:
if voice["Locale"] == "ru-RU":
print("Russian voice found:", voice["FriendlyName"])
await mss.set_voice(voice["Name"])
print("*" * 10)
filename = "audio.mp3"
# with open("s.txt", encoding="UTF8") as f: text:str = f.read()
text = "Или написать текст здесь"
print("waiting...")
await mss.set_rate(10)
await mss.set_pitch(0)
await mss.set_volume(1.0)
await mss.synthesize(text.strip(), filename)
print("*"*10)
print("SUCCESS! OK!")
print("*"*10)
if __name__ == "__main__":
asyncio.run(main())
FAQs
not official API for Microsoft speech synthesis from Microsoft Edge web browser read aloud
We found that msspeech 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.