AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

how to play itunes music’s from terminal or aiml pattern
 
 

I want to write a command that launches iTunes and play the first song that is in the playlist or song list,for now I can launch iTunes from my code but it doesn’t start the song automatically is there away to make it work
``` <category>
      PLAY MUSIC FROM MY COMPUTER </pattern>
      <template>
        <random>
          <li>Sure thing! </li>
          <li>OKAY,  </li>
          <li>OK! </li>
        </random>
        <system>
open -a /Applications/itunes.app/Contents/MacOS/itunes/play</system>
      </template>
  </category>
```

 

 
  [ # 1 ]

What would you type in to a command prompt to get iTunes to start playing?

 

 
  [ # 2 ]
Steve Worswick - May 9, 2019:

What would you type in to a command prompt to get iTunes to start playing?

An attempt to make a very simple, Personal Assistant that understands speech as well as text input and is capable of performing tasks other than conversing. and my project is based on aiml and uses pyaiml for using the AIML interpreter in python.

I am on a mac terminal .
I want to give a command for my aiml pattern to open iTunes and automatically play a random song, is there to make it work? Like for example iPhone’s Siri , she starts playing music automatically after she receives a command “play a music”, no need to press the play button

I used this to launch iTunes

[/code] <system
open -/Applications/iTunes.app/Contents/MacOS/itunes</system>[code] 

thanks for the quick reply

 

 
  [ # 3 ]

I tried this ```<system> open -a itunes 1.mp3</system>```
it automatically starts the music from my python folder
not from the actual itunes library

 

 
  [ # 4 ]

Forget about the chatbot for a moment. Unless you can type a command that will do this, you will find it impossible to replicate this in any chatbot.

It can only do what you can do. If you can’t type a command that plays a random tune from your library, the bot won’t be able to either.

 

 
  [ # 5 ]
Steve Worswick - May 10, 2019:

Forget about the chatbot for a moment. Unless you can type a command that will do this, you will find it impossible to replicate this in any chatbot.

It can only do what you can do. If you can’t type a command that plays a random tune from your library, the bot won’t be able to either.

MY QUESTION IS, WHAT IS TERMINAL COMMAND TO LAUNCH ITUNES AND PLAY AUTOMATICALLY ,

ON LINUX THIS WORKS

[/code]<category>
        <
pattern>PLAY MUSIC</pattern>
        <
template>
             <
random>
               <
li>OK!</li>
            </
random>
            <
systemrhythmbox-client --play</system>
        </
template>
    </
category[code] 
 

 
  [ # 6 ]

So using a command prompt, can you type in “rhythmbox-client—play” to get it to work?
If so, just put that in your system tags.

if that doesn’t work, you will need to visit an itunes forum for assitance, as it’;s not really an AIML issue.

 

 
  [ # 7 ]
Steve Worswick - May 10, 2019:

So using a command prompt, can you type in “rhythmbox-client—play” to get it to work?
If so, just put that in your system tags.

if that doesn’t work, you will need to visit an itunes forum for assitance, as it’;s not really an AIML issue.

okay I will thank you

 

 
  login or register to react