[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-70979":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":16,"starSnapshotCount":16,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},70979,"edge-tts","rany2\u002Fedge-tts","rany2","Use Microsoft Edge's online text-to-speech service from Python WITHOUT needing Microsoft Edge or Windows or an API key","https:\u002F\u002Fpypi.org\u002Fproject\u002Fedge-tts\u002F",null,"Python",11213,1041,78,3,0,34,72,372,102,119.05,"Other",false,"master",true,[27,28,29],"speech-synthesis","text-to-speech","tts","2026-06-12 04:00:58","# edge-tts\n\n`edge-tts` is a Python module that allows you to use Microsoft Edge's online text-to-speech service from within your Python code or using the provided `edge-tts` or `edge-playback` command.\n\n## Installation\n\nTo install it, run the following command:\n\n    $ pip install edge-tts\n\nIf you only want to use the `edge-tts` and `edge-playback` commands, it would be better to use `pipx`:\n\n    $ pipx install edge-tts\n\n## Usage\n\n### Basic usage\n\nIf you want to use the `edge-tts` command, you can simply run it with the following command:\n\n    $ edge-tts --text \"Hello, world!\" --write-media hello.mp3 --write-subtitles hello.srt\n\nIf you wish to play it back immediately with subtitles, you could use the `edge-playback` command:\n\n    $ edge-playback --text \"Hello, world!\"\n\nNote that `edge-playback` requires the installation of the [`mpv` command line player](https:\u002F\u002Fmpv.io\u002F), except on Windows.\n\nAll `edge-tts` commands work with `edge-playback` with the exception of the `--write-media`, `--write-subtitles` and `--list-voices` options.\n\n### Changing the voice\n\nYou can change the voice used by the text-to-speech service by using the `--voice` option. The `--list-voices` option can be used to list all available voices.\n\n    $ edge-tts --list-voices\n    Name                               Gender    ContentCategories      VoicePersonalities\n    ---------------------------------  --------  ---------------------  --------------------------------------\n    af-ZA-AdriNeural                   Female    General                Friendly, Positive\n    af-ZA-WillemNeural                 Male      General                Friendly, Positive\n    am-ET-AmehaNeural                  Male      General                Friendly, Positive\n    am-ET-MekdesNeural                 Female    General                Friendly, Positive\n    ar-AE-FatimaNeural                 Female    General                Friendly, Positive\n    ar-AE-HamdanNeural                 Male      General                Friendly, Positive\n    ar-BH-AliNeural                    Male      General                Friendly, Positive\n    ar-BH-LailaNeural                  Female    General                Friendly, Positive\n    ar-DZ-AminaNeural                  Female    General                Friendly, Positive\n    ar-DZ-IsmaelNeural                 Male      General                Friendly, Positive\n    ar-EG-SalmaNeural                  Female    General                Friendly, Positive\n    ...\n\n    $ edge-tts --voice ar-EG-SalmaNeural --text \"مرحبا كيف حالك؟\" --write-media hello_in_arabic.mp3 --write-subtitles hello_in_arabic.srt\n\n### Custom SSML\n\nSupport for custom SSML was removed because Microsoft prevents the use of any SSML that could not be generated by Microsoft Edge itself. This means that all the cases where custom SSML would be useful cannot be supported as the service only permits a single `\u003Cvoice>` tag with a single `\u003Cprosody>` tag inside it. Any available customization options that could be used in the `\u003Cprosody>` tag are already available from the library or the command line itself.\n\n### Changing rate, volume and pitch\n\nYou can change the rate, volume and pitch of the generated speech by using the `--rate`, `--volume` and `--pitch` options. When using a negative value, you will need to use `--[option]=-50%` instead of `--[option] -50%` to avoid the option being interpreted as a command line option.\n\n    $ edge-tts --rate=-50% --text \"Hello, world!\" --write-media hello_with_rate_lowered.mp3 --write-subtitles hello_with_rate_lowered.srt\n    $ edge-tts --volume=-50% --text \"Hello, world!\" --write-media hello_with_volume_lowered.mp3 --write-subtitles hello_with_volume_lowered.srt\n    $ edge-tts --pitch=-50Hz --text \"Hello, world!\" --write-media hello_with_pitch_lowered.mp3 --write-subtitles hello_with_pitch_lowered.srt\n\n## Python module\n\nIt is possible to use the `edge-tts` module directly from Python. Examples from the project itself include:\n\n* [\u002Fexamples\u002F](\u002Fexamples\u002F)\n* [\u002Fsrc\u002Fedge_tts\u002Futil.py](\u002Fsrc\u002Fedge_tts\u002Futil.py)\n\nOther projects that use the `edge-tts` module include:\n\n* [hass-edge-tts](https:\u002F\u002Fgithub.com\u002Fhasscc\u002Fhass-edge-tts\u002Fblob\u002Fmain\u002Fcustom_components\u002Fedge_tts\u002Ftts.py)\n* [Podcastfy](https:\u002F\u002Fgithub.com\u002Fsouzatharsis\u002Fpodcastfy\u002Fblob\u002Fmain\u002Fpodcastfy\u002Ftts\u002Fproviders\u002Fedge.py)\n* [tts-samples](https:\u002F\u002Fgithub.com\u002Fyaph\u002Ftts-samples\u002Fblob\u002Fmain\u002Fbin\u002Fcreate_sound_samples.py) - a collection of [mp3 sound samples](https:\u002F\u002Fgithub.com\u002Fyaph\u002Ftts-samples\u002Ftree\u002Fmain\u002Fmp3) to facilitate picking a voice for your project.\n","`edge-tts` 是一个 Python 模块，允许用户在不依赖 Microsoft Edge 浏览器、Windows 系统或 API 密钥的情况下，通过 Python 代码调用微软的在线文本转语音服务。其核心功能包括将文本转换为音频文件以及实时播放带字幕的音频，支持多种语言和声音风格的选择。技术上，该项目简化了与微软 TTS 服务交互的过程，提供了命令行工具 `edge-tts` 和 `edge-playback` 来方便地生成和播放音频。适用于需要快速集成高质量文本转语音功能但不想处理复杂配置的应用场景，如开发教育软件、制作有声读物或构建辅助技术产品等。",2,"2026-06-11 03:35:18","high_star"]