omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    Importing sound files

    Pythonista
    dropbox wav sound
    3
    3
    3619
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • newtoonie
      newtoonie last edited by

      I'm creating a game on pythonista and wondering, how can import custom sound files?
      I hear I can use the Dropbox API (never done something like this before)
      Will this allow me to import sound files?

      1 Reply Last reply Reply Quote 0
      • lukaskollmer
        lukaskollmer last edited by

        You could host the file on a web server and use urllib.urlretrieve to download the file.

        Example:

        import urllib.request
        urllib.request.urlretrieve ("http://www.example.com/songs/mp3.mp3", "mp3.mp3")
        
        1 Reply Last reply Reply Quote 0
        • ccc
          ccc last edited by

          The Cloud Jump game pulls sounds off the internet... https://github.com/Pythonista-Tools/Pythonista-Tools/blob/master/Games.md

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors