Author Topic: Media Monkey Artist Info  (Read 1422 times)

0 Members and 1 Guest are viewing this topic.

OklahomaGreyBeard

  • Contributor
  • ***
  • Posts: 54
  • Karma: 3
    • View Profile
Media Monkey Artist Info
« on: May 13, 2015, 01:20:45 PM »
I took nime5ter's wikipedia command and adapted it to get more info on the currently playing band/artist on Media Monkey. I'ts currently setup to pause MM, read the first paragraph about the band/artist then start playing MM again. If you prefer you could easily change it to give the info on OSD instead.

I added (band) to the search results to help get the right band but then had to add a check for individual artists.

The next goal is to  have it ask Shall I continue? at the end of each paragraph and either stop or continue depending on the response.

Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<!--C:\VOXCommando\export\VcGroup_MM Wikipedia.xml-->
<!--This commandGroup xml file was exported from VoxCommando-->
<VoiceCommands version="2.1.4.5">
    <commandGroup open="True" name="MM Wikipedia" enabled="True" prefix="" priority="0" requiredProcess="" description="">
        <command id="1165" name="Artist Wikipedia Info" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>TTS.Stop</cmdType>
                <params />
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>MM.Pause</cmdType>
                <params />
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>MM.CurrentSongData</cmdType>
                <params>
                    <param>Artist</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>RoboB.Select</cmdType>
                <params>
                    <param>newwiki</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>RoboB.Navigate</cmdType>
                <params>
                    <param>http://en.wikipedia.org/wiki/{LastResult}(band)</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>RoboB.Show</cmdType>
                <params>
                    <param>True</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>RoboB.Wait</cmdType>
                <params />
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>RoboB.ElementRegex</cmdType>
                <params>
                    <param>p</param>
                    <param>&lt;b&gt;</param>
                    <param>False</param>
                    <param>True</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>RoboB.GetText</cmdType>
                <params />
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>OSD.ShowText</cmdType>
                <params>
                    <param>{LastResult}</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <if ifBlockDisabled="False" ifNot="False">
                <ifType>(A)Contains(B)</ifType>
                <ifParams>{LastResult}&amp;&amp;Other reasons this message may be displayed:</ifParams>
                <then>
                    <action>
                        <cmdType>MM.CurrentSongData</cmdType>
                        <params>
                            <param>Artist</param>
                        </params>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>RoboB.Navigate</cmdType>
                        <params>
                            <param>http://en.wikipedia.org/wiki/{LastResult}</param>
                        </params>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>RoboB.Wait</cmdType>
                        <params />
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>RoboB.ElementRegex</cmdType>
                        <params>
                            <param>p</param>
                            <param>&lt;b&gt;</param>
                            <param>False</param>
                            <param>True</param>
                        </params>
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                    <action>
                        <cmdType>RoboB.GetText</cmdType>
                        <params />
                        <cmdRepeat>1</cmdRepeat>
                    </action>
                </then>
                <else />
            </if>
            <action>
                <cmdType>Results.RegExReplace</cmdType>
                <params>
                    <param>\(.*?\)</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>Results.RegExReplace</cmdType>
                <params>
                    <param>\[\d+\]</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>TTS.SpeakSync</cmdType>
                <params>
                    <param>{LastResult}</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>MM.Play</cmdType>
                <params />
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>RoboB.Dispose</cmdType>
                <params />
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>tell me about this artist</phrase>
        </command>
    </commandGroup>
</VoiceCommands>

Best software purchase I think I've ever made...  :biglaugh

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Media Monkey Artist Info
« Reply #1 on: May 13, 2015, 04:25:32 PM »
This is what I like to see...  ;D

thanks.