omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. jovica

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    jovica

    @jovica

    0
    Reputation
    682
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    jovica Unfollow Follow

    Latest posts made by jovica

    • RE: Amazon Lex using AudioRecorder

      @JonB thank you for your prompt response. What you suggested works: A wav file gets created.

      Unfortunately, AWS lex still does not seem to understand it once I submit it.

      Is there a way to capture a MPEG audio? That works as I receive MPEG response from Lex bot which I have then submitted right back to it and it worked like charm, bot can "understand it and response shows that in inputTranscript text that gets returned.

      posted in Pythonista
      jovica
      jovica
    • Amazon Lex using AudioRecorder

      I am trying to capture audio on my iPad to submit to AWS Lex bot using Audio recorder. This is the code that records the audio:

      settings = {ns('AVFormatIDKey'):ns(1633772320), ns('AVSampleRateKey'):ns(16000), ns('AVNumberOfChannelsKey'):ns(2), ns('AVLinearPCMBitDepthKey'):ns(16), ns('AVLinearPCMIsBigEndianKey'):ns(0),ns('AVLinearPCMIsFloatKey'):ns(0)}

      output_path = os.path.abspath(FileName)
      out_url = NSURL.fileURLWithPath_(ns(output_path))
      recorder = AVAudioRecorder.alloc().initWithURL_settings_error_(out_url, settings, None)

      However, Lex bot does not "understand" the submitted audio captured using above code.

      I understand that Lex needs a Linear PCM but I am unsure what settings to use in the above code to achieve that.

      Can somebody point me in the right direction?

      posted in Pythonista
      jovica
      jovica