edge_tts 实现实时流式语音播放输出
参考:
https://blog.csdn.net/weixin_42357472/article/details/132256328
安装
pip install edge-tts
import asyncio
import edge_tts
import pygame
import io
from edge_tts import VoicesManager
from collections import deque
from concurrent.futures import ThreadPoolExecutor
class EdgeTTSStreaming:
def __init__(self):
self.voice =