mirror of
https://github.com/babysor/MockingBird.git
synced 2024-03-22 13:11:31 +08:00
Update ui.py
This commit is contained in:
parent
f9982797cf
commit
035c39c562
@ -205,7 +205,7 @@ class UI(QDialog):
|
|||||||
self.record_button.setText("Recording...")
|
self.record_button.setText("Recording...")
|
||||||
self.record_button.setDisabled(True)
|
self.record_button.setDisabled(True)
|
||||||
|
|
||||||
self.log("recording %d seconds of audio" % duration)
|
self.log("Recording %d seconds of audio" % duration)
|
||||||
sd.stop()
|
sd.stop()
|
||||||
try:
|
try:
|
||||||
wav = sd.rec(duration * sample_rate, sample_rate, 1)
|
wav = sd.rec(duration * sample_rate, sample_rate, 1)
|
||||||
@ -277,7 +277,6 @@ class UI(QDialog):
|
|||||||
" in %s \n" \
|
" in %s \n" \
|
||||||
"Please note use 'E:\datasets' as root path " \
|
"Please note use 'E:\datasets' as root path " \
|
||||||
"instead of 'E:\datasets\aidatatang_200zh\corpus/test' as an example " % datasets_root)
|
"instead of 'E:\datasets\aidatatang_200zh\corpus/test' as an example " % datasets_root)
|
||||||
|
|
||||||
self.log(msg)
|
self.log(msg)
|
||||||
msg += ".\nThe recognized datasets are:\n\t%s\nFeel free to add your own. You " \
|
msg += ".\nThe recognized datasets are:\n\t%s\nFeel free to add your own. You " \
|
||||||
"can still use the toolbox by recording samples yourself." % \
|
"can still use the toolbox by recording samples yourself." % \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user