mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-17 15:22:10 +00:00
fx
This commit is contained in:
@@ -110,6 +110,7 @@ class SRBuffer(voice_recv.AudioSink):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def write(self, user, data) -> None:
|
def write(self, user, data) -> None:
|
||||||
|
logger.info("DAta write")
|
||||||
if user:
|
if user:
|
||||||
self.wavewriter[str(user.id)][0].writeframes(data.pcm)
|
self.wavewriter[str(user.id)][0].writeframes(data.pcm)
|
||||||
self.wavewriter[str(user.id)][1] = time.time_ns() #time from last write
|
self.wavewriter[str(user.id)][1] = time.time_ns() #time from last write
|
||||||
@@ -193,6 +194,8 @@ class Transcriber(commands.Cog):
|
|||||||
self.comm_queue.put(stop_token)
|
self.comm_queue.put(stop_token)
|
||||||
await ctx.voice_client.disconnect()
|
await ctx.voice_client.disconnect()
|
||||||
|
|
||||||
|
|
||||||
|
#this needs to be async and transcript fun awaited
|
||||||
def transcribe_output_queue(queue):
|
def transcribe_output_queue(queue):
|
||||||
logger.info("Transcript worker start")
|
logger.info("Transcript worker start")
|
||||||
config = aai.TranscriptionConfig(speaker_labels=True, language_code="pl")
|
config = aai.TranscriptionConfig(speaker_labels=True, language_code="pl")
|
||||||
|
|||||||
Reference in New Issue
Block a user