Beispiel #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
Beispiel #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
Beispiel #3
0
 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)
Beispiel #4
0
 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)
Beispiel #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)
Beispiel #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)
Beispiel #7
0
 def onRecordVoice(self):
     self._recordedAudio = getAudio(self.mw, encode=False)
     self.onReplayRecorded()
Beispiel #8
0
 def onRecordVoice(self):
     self._recordedAudio = getAudio(self.mw, encode=False)
     self.onReplayRecorded()