mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
catch ^c
This commit is contained in:
parent
053751cb43
commit
bfa7fedd18
1 changed files with 6 additions and 0 deletions
|
@ -46,6 +46,12 @@ class Voice:
|
|||
return f"Recording, press ENTER when done... {dur:.1f}sec {bar}"
|
||||
|
||||
def record_and_transcribe(self):
|
||||
try:
|
||||
return self.raw_record_and_transcribe()
|
||||
except KeyboardInterrupt:
|
||||
return
|
||||
|
||||
def raw_record_and_transcribe(self):
|
||||
self.q = queue.Queue()
|
||||
|
||||
filename = tempfile.mktemp(suffix=".wav")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue