Skip to content

Commit

Permalink
fix: 修复edgeTTS在极客模式下的问题(#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
wzpan committed May 17, 2023
1 parent 6423dec commit b3c9c8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ pvrecorder
openai
apscheduler
asyncio
edge-tts
edge-tts
nest_asyncio
3 changes: 2 additions & 1 deletion robot/TTS.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import asyncio
import edge_tts
import nest_asyncio

from aip import AipSpeech
from . import utils, config, constants
Expand All @@ -21,7 +22,7 @@
from xml.etree import ElementTree

logger = logging.getLogger(__name__)

nest_asyncio.apply()

class AbstractTTS(object):
"""
Expand Down

0 comments on commit b3c9c8d

Please sign in to comment.