Audio response with Rasa

Hi,

I am working on a project which requires me to play a short audio clip(.mp3) after user response, Could you please suggest to me the right way to do this?

Here’s what I tried -

In domain.yml file,

...
responses:
  ...
  utter_recording:
  - custom:
    attachment:
      type: audio
      payload:
        src: "/home/typing_sound.mp3"
      autoplay: true
...

this throws the following error - YamlValidationException: Failed to validate ‘/home/ritheshrn/rasa-proof-of-concept/faq-conversation/domains/domain.yml’. Please make sure the file is correct and all mandatory parameters are specified. Here are the errors found during validation

I validated the yaml format using an online tool and it seems fine.

Thanks!

Can you upload file somewhere online (public URL) and try add it in domain file. Remeber dont use Google Drive or Dropbox share Url. Url should look like this

https://websitename/mp3name.mp3