mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +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}"
|
return f"Recording, press ENTER when done... {dur:.1f}sec {bar}"
|
||||||
|
|
||||||
def record_and_transcribe(self):
|
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()
|
self.q = queue.Queue()
|
||||||
|
|
||||||
filename = tempfile.mktemp(suffix=".wav")
|
filename = tempfile.mktemp(suffix=".wav")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue