Skip to content

Commit

Permalink
2022.10.27
Browse files Browse the repository at this point in the history
1、更新mac上的麦克风参数;
2、解决mac上无法重启问题;
3、上传brew安装脚本。
  • Loading branch information
xszyou committed Oct 27, 2022
1 parent bc2cbba commit 7f53568
Show file tree
Hide file tree
Showing 6 changed files with 845 additions and 7 deletions.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,28 @@

<img src="images/5.png" alt="QA">

相关文章:

1、[(34条消息) 非常全面的数字人解决方案_郭泽斌之心的博客-CSDN博客_数字人算法](https://blog.csdn.net/aa84758481/article/details/124758727)

2、[(34条消息) Fay数字人开源项目在mac 上的安装办法_郭泽斌之心的博客-CSDN博客](https://blog.csdn.net/aa84758481/article/details/127551258)



最近更新:

2022.10.27

1、更新mac上的麦克风参数;
2、解决mac上无法重启问题;
3、上传brew安装脚本。

2022.10.17

1、更新语音指令;

2、补充人设语法;

## 语音指令

- **关闭核心**
Expand Down Expand Up @@ -208,5 +230,5 @@ python main.py

技术交流群

<img src="images/37.jpg" alt="直播">
<img src="images/37.png" alt="微信群">

4 changes: 2 additions & 2 deletions core/recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ def __record(self):
device_id = self.__findInternalRecordingDevice(p)
if device_id < 0:
return
stream = p.open(input_device_index=device_id, rate=self.__RATE, format=self.__FORMAT, channels=self.__CHANNELS, input=True)
stream = p.open(input_device_index=device_id, rate=self.__RATE, format=self.__FORMAT, channels=self.__CHANNELS, input=True, frames_per_buffer=1024)

isSpeaking = False
last_mute_time = time.time()
last_speaking_time = time.time()
while self.__running:
data = stream.read(1024)
data = stream.read(1024, exception_on_overflow=False)
level = audioop.rms(data, 2)
if len(self.__history_data) >= 5:
self.__history_data.pop(0)
Expand Down
8 changes: 4 additions & 4 deletions fay_booter.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ def start():
util.log(1, '开启录音服务...')
recorderListener = RecorderListener(record['device'], feiFei) # 监听麦克风
recorderListener.start()

util.log(1, '注册命令...')
MyThread(target=console_listener).start() # 监听控制台
# mac下启动经常获取了不明内容,导致关闭再开启时等待输入
# util.log(1, '注册命令...')
# MyThread(target=console_listener).start() # 监听控制台

util.log(1, '完成!')
util.log(1, '使用 \'help\' 获取帮助.')
# util.log(1, '使用 \'help\' 获取帮助.')

# if __name__ == '__main__':
# ws_server: MyServer = None
Expand Down
Binary file removed images/37.jpg
Binary file not shown.
Binary file added images/37.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 7f53568

Please sign in to comment.