コード例 #1
0
ファイル: editor.py プロジェクト: ACEfanatic02/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
コード例 #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
ファイル: reviewer.py プロジェクト: ACEfanatic02/anki
 def onRecordVoice(self):
     self._recordedAudio = getAudio(self.mw, encode=False)
     self.onReplayRecorded()