Jump to content

Python music!

jameshumphries47

okay guys at the moment for my first "proper" project in python im going to be making a real basic AI similar to siri. at the moment im using 3.4.2 and im stuck on how to play mp3's so far i have tried this

import os

os.system("start C:/Users/James/ai/music")

but then how would i choose my file... also is there a better way to do this?

Check out my current projects: Selling site (Click Here)

If($reply == "for me to see"){

   $action = "Quote me!";

}else{

   $action = "Leave me alone!";

}

Link to comment
Share on other sites

Link to post
Share on other sites

but then how would i choose my file... also is there a better way to do this?

If Windows - use WinAPI

If Linux or OSX - try Qt

 

Both have directory tree views, that's more than enough.

I don't know how winapi works with python, but for Qt there is PyQt

 

p.s. that is if understand correctly what you want to do.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×