Exemplo n.º 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
Exemplo n.º 2
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
Exemplo n.º 3
0
Arquivo: editor.py Projeto: 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)
Exemplo n.º 4
0
Arquivo: editor.py Projeto: 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 7
0
 def onRecordVoice(self):
     self._recordedAudio = getAudio(self.mw, encode=False)
     self.onReplayRecorded()
Exemplo n.º 8
0
 def onRecordVoice(self):
     self._recordedAudio = getAudio(self.mw, encode=False)
     self.onReplayRecorded()