Giter Club home page Giter Club logo

discord-jtalkbot's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

discord-jtalkbot's Issues

タイムアウトしたらもう動かない

遅めのサーバーだと反応が返せなくてタイムアウトする。
そうなると、もう読み上げてくれない。。。

多分、下記Zennの記事をもとに修正したら対処できるとは思う
https://zenn.dev/tfandkusu/scraps/824214ceb45a3f

INFO:cogs.autoreadercog:talk(nitech_jp_atr503_m001.htsvoice):ボットさん、From: NHK NEWS WEB 社会
ERROR:discord.client:Attempting a reconnect in 1.64s
Traceback (most recent call last):
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 561, in connect
    await self.ws.poll_event()
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/gateway.py", line 587, in poll_event
    raise ConnectionClosed(self.socket, shard_id=self.shard_id, code=code) from None
discord.errors.ConnectionClosed: Shard ID None WebSocket closed with 1000
ERROR:discord.voice_client:Disconnected from voice... Reconnecting in 0.89s.
Traceback (most recent call last):
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/voice_client.py", line 414, in poll_voice_ws
    await self.ws.poll_event()
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/gateway.py", line 892, in poll_event
    msg = await asyncio.wait_for(self.ws.receive(), timeout=30.0)
  File "/usr/lib/python3.8/asyncio/tasks.py", line 501, in wait_for
    raise exceptions.TimeoutError()
asyncio.exceptions.TimeoutError
WARNING:discord.gateway:Shard ID None has stopped responding to the gateway. Closing and restarting.
WARNING:discord.voice_client:Could not connect to voice... Retrying...
WARNING:aiohttp.websocket:websocket connection is closing.
INFO:cogs.autoreadercog:discord-jtalkbot#5425 disconnected v:PrivateServer/General.
INFO:cogs.autoreadercog:1 人になりました

ユーザーごとに声色を変えたい

問題点

  • どのユーザーが書き込んだ内容を読み込んでいるのかが分からない
  • ユーザー名を発話させるとテンポが悪い

対処

  • open_jtalkで読み上げさせる際、別のhtsvoiceを読み込ませればいい
  • 設定でいくつか持たせて置いて、それを適当に割り振る
  • パンクしたら諦めて重複させる(htsvoiceが全部使われていたら、適当に振る)

open_jtalkの例しかないのだけど、実は他のやつも使える。その設定・改造方法についてドキュメントがない

規則音声合成エンジン AquesTalkが使えるのは確認済。
(ただ、注意点が色々ありそうだから自分のローカルで試す程度にとどめてた)

Pythonから呼び出せるなら、他の音声合成エンジンもできる気がする。
そういうのが把握できたら、色々追記してもいいかもしれない。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.