示例#1
0
 def onRecSound(self):
     try:
         file = getAudio(self.widget)
     except Exception, e:
         showWarning(_(
             "Couldn't record audio. Have you installed lame and sox?") +
                     "\n\n" + unicode(e))
         return
示例#2
0
文件: editor.py 项目: AidanJones/anki
 def onRecSound(self):
     try:
         file = getAudio(self.widget)
     except Exception, e:
         showWarning(_(
             "Couldn't record audio. Have you installed lame and sox?") +
                     "\n\n" + unicode(e))
         return
示例#3
0
文件: editor.py 项目: hans/anki
 def onRecSound(self):
     try:
         file = getAudio(self.widget)
     except Exception as e:
         showWarning(_(
             "Couldn't record audio. Have you installed lame and sox?") +
                     "\n\n" + repr(str(e)))
         return
     self.addMedia(file)
示例#4
0
文件: editor.py 项目: yzdxs/anki
 def onRecSound(self):
     try:
         file = getAudio(self.widget)
     except Exception as e:
         showWarning(
             _("Couldn't record audio. Have you installed lame and sox?") +
             "\n\n" + repr(str(e)))
         return
     self.addMedia(file)
示例#5
0
 def onRecSound(self):
     try:
         file = getAudio(self.widget)
     except Exception as e:
         showWarning(
             tr(TR.EDITING_COULDNT_RECORD_AUDIO_HAVE_YOU_INSTALLED) +
             "\n\n" + repr(str(e)))
         return
     if file:
         self.addMedia(file)
示例#6
0
 def onRecSound(self):
     try:
         file = getAudio(self.widget)
     except Exception as e:
         showWarning(
             _("Couldn't record audio. Have you installed 'lame'?")
             + "\n\n"
             + repr(str(e))
         )
         return
     if file:
         av_player.play_file(file)
         self.addMedia(file)
示例#7
0
文件: reviewer.py 项目: Afoucaul/anki
 def onRecordVoice(self):
     self._recordedAudio = getAudio(self.mw, encode=False)
     self.onReplayRecorded()
示例#8
0
 def onRecordVoice(self):
     self._recordedAudio = getAudio(self.mw, encode=False)
     self.onReplayRecorded()