<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>VoiceBot RSS: Spotify internal volume control</title>
<atom:link href="https://www.voicebot.net/Discussions/RSS/?TopicID=0c4758d4-109b-43c7-8c05-558ed58658b4" rel="self" type="application/rss+xml" />
<link>https://www.voicebot.net/Discussions/RSS/?TopicID=0c4758d4-109b-43c7-8c05-558ed58658b4</link>
<description>VoiceBot RSS: Spotify internal volume control</description>
<lastBuildDate>Thu, 21 May 2026 11:35:50 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.voicebot.net/Discussions/RSS/?TopicID=0c4758d4-109b-43c7-8c05-558ed58658b4</generator>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#35</link>
<pubDate>Tue, 01 Aug 2017 13:39:21 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#35</guid>
<category>VoiceBot</category>
<description><![CDATA[We've added it to the repository, thanks Pablo!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
We've added it to the repository, thanks Pablo!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#34</link>
<pubDate>Sat, 29 Jul 2017 11:59:04 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#34</guid>
<category>VoiceBot</category>
<description><![CDATA[Slightly changed the script.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Slightly changed the script.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#33</link>
<pubDate>Sat, 29 Jul 2017 11:39:34 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#33</guid>
<category>VoiceBot</category>
<description><![CDATA[We've just released a new VoiceBot beta, and the BFS.Audio functions should now be available in Macro Scripts. If you run into any trouble after updating, please let us know!
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
We've just released a new <a href="https://www.voicebot.net/Download/Beta" target="_blank" rel="nofollow"><b>VoiceBot beta</b></a>, and the BFS.Audio functions should now be available in Macro Scripts. If you run into any trouble after updating, please let us know!<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#32</link>
<pubDate>Sat, 10 Jun 2017 13:39:17 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#32</guid>
<category>VoiceBot</category>
<description><![CDATA[I think yes. Change the string to BFS.Speech.TextToSpeechWithVoice(string.Format("string to say {0}", volumeRecogResult), "Microsoft Server Speech Text to Speech Voice (fi-FI, Heidi)");]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I think yes. Change the string to BFS.Speech.TextToSpeechWithVoice(string.Format("string to say {0}", volumeRecogResult), "Microsoft Server Speech Text to Speech Voice (fi-FI, Heidi)");
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#31</link>
<pubDate>Sat, 10 Jun 2017 13:13:24 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#31</guid>
<category>VoiceBot</category>
<description><![CDATA[Great! can i use different TTS?
In this case english is used:
BFS.Speech.TextToSpeech(string.Format("Set volume to {0}", volumeRecogResult));
But if I want it to be in finnish? Is this possible?
Because in the macro side tts in finnish is possible.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Great! can i use different TTS?<br/>
<br/>
In this case english is used:<br/>
BFS.Speech.TextToSpeech(string.Format("Set volume to {0}", volumeRecogResult));<br/>
<br/>
But if I want it to be in finnish? Is this possible?<br/>
<br/>
Because in the macro side tts in finnish is possible.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#30</link>
<pubDate>Sat, 10 Jun 2017 11:53:38 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#30</guid>
<category>VoiceBot</category>
<description><![CDATA[Not a problem.  Anyway, it's more of my mistake, because I forgot to add information about the culture used.
You can now select a language from the available for recognition.
Code
Copy
Select All
var culture = new CultureInfo("en-US");
Latest version with patches and additions.
Code
Copy...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Not a problem. <img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/face-smile.light.svg" alt=":)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":)" HelpButtonDataAlign="BelowMiddle" /> Anyway, it's more of my mistake, because I forgot to add information about the culture used.<br/>
You can now select a language from the available for recognition.<br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019e4a520562761facb07400dacb5d8f" class="ClipboardCopyControl"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e4a520562761facb07400dacb5d8fJs'); return false;"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019e4a520562761facb07400dacb5d8fJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">var culture = new CultureInfo("en-US");</pre><textarea id="code019e4a520562761facb07400dacb5d8f" name="code019e4a520562761facb07400dacb5d8f" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
Latest version with patches and additions.<br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019e4a5205647213b643b7f464e9444a" class="ClipboardCopyControl"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e4a5205647213b643b7f464e9444aJs'); return false;"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019e4a5205647213b643b7f464e9444aJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;
using System.Linq;
using System.Speech.Recognition.SrgsGrammar;
using System.Speech.Recognition;
using System.Xml;
using System.Globalization;
using SpotifyAPI.Local;

// Add to references | System.Core.dll | C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\System.Speech.dll
// and | YourPathToSpotifyApi\SpotifyApi.dll from (https://github.com/JohnnyCrazy/SpotifyAPI-NET/releases/latest)

public static class VoiceBotScript
{
    public static void Run(IntPtr windowHandle)
    {
        // Set your recognition language. Support languages: en-GB, en-US, de-DE, es-ES, fr-FR, ja-JP, zh-CN, zh-TW.
        var culture = new CultureInfo("en-US");
        
        // Path to open\save Volume.xml
        var dirPath = @"c:\Test\";
        
        // Open\save srgs file
        var srgsFile = SrgsCreator.GetFileWithVolume(dirPath);
        
        // Get recognition result
        var volumeRecogResult = SpeechRecognition.Recognition(srgsFile, culture);
        BFS.General.ThreadWait(3000);
        
        // Show what recognize. For testing. Can be removed
        //BFS.Dialog.ShowMessageInfo(volumeRecogResult.ToString());
        BFS.Speech.TextToSpeech(string.Format("Set volume to {0}", volumeRecogResult));

        // Set volume. Values in range 0-100 float
        var spLocalApi = new SpotifyLocalAPI();
        spLocalApi.SetSpotifyVolume(volumeRecogResult);
    }
}

class SpeechRecognition
{
    public static float Recognition(string srgsFile, CultureInfo culture)
    {  
        var volumeRecogResult = "";
        var sre = new SpeechRecognitionEngine(culture);
        var grammar = new Grammar(srgsFile);
        
        sre.LoadGrammar(grammar);
        try
        {
            sre.SetInputToDefaultAudioDevice();
            var result = sre.Recognize();
            if (result != null)
                volumeRecogResult = result.Text;
            else
                Recognition(srgsFile, culture);
        }
        catch (NullReferenceException ex)
        {
            BFS.Dialog.ShowMessageError(ex.Message);
        }
        finally
        {
            sre.UnloadGrammar(grammar);
        }
        
        return float.Parse(volumeRecogResult);
    }
}

// Create basic srgs file without regard to pronunciation
class SrgsCreator
{
    public static string GetFileWithVolume(string dirPath)
    {
        var volumeFile = dirPath + "Volume.xml";
        
        if (System.IO.File.Exists(volumeFile))
            return volumeFile;
        
        var choices = new Choices();
        var volArr = Enumerable.Range(1, 100).ToArray();
        
        foreach (var num in volArr)
            choices.Add(num.ToString());
        
        var grammarBuilder = new GrammarBuilder();
        grammarBuilder.Append(choices);
        var srgsDoc = new SrgsDocument(grammarBuilder);
        var xmlWriter = XmlWriter.Create(volumeFile);
        srgsDoc.WriteSrgs(xmlWriter);
        xmlWriter.Close();
        
        return volumeFile;
    }
}</pre><textarea id="code019e4a5205647213b643b7f464e9444a" name="code019e4a5205647213b643b7f464e9444a" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#29</link>
<pubDate>Sat, 10 Jun 2017 11:37:26 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#29</guid>
<category>VoiceBot</category>
<description><![CDATA[Oh my.. It is workin!
Thank you.. I did not know that my windows had a speech recognizer se to UK..
Thank you so much]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Oh my.. It is workin!<br/>
<br/>
Thank you.. I did not know that my windows had a speech recognizer se to UK..<br/>
<br/>
Thank you so much <img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/face-smile.light.svg" alt=":)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":)" HelpButtonDataAlign="BelowMiddle" />
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#28</link>
<pubDate>Sat, 10 Jun 2017 11:26:41 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#28</guid>
<category>VoiceBot</category>
<description><![CDATA[Remove or protect the log file in message. I can see the problem.  Failed to run function: Run failed. • Exception has been thrown by the target of a invocation. • The language for the grammar does not match the language of the speech recognizer.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Remove or protect the log file in message. I can see the problem.  Failed to run function: Run failed. • Exception has been thrown by the target of a invocation. • The language for the grammar does not match the language of the speech recognizer.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#27</link>
<pubDate>Sat, 10 Jun 2017 10:53:55 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#27</guid>
<category>VoiceBot</category>
<description><![CDATA[I changed the reference to the profile you send me. It did not help.
Here is the log.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I changed the reference to the profile you send me. It did not help.<br/>
<br/>
Here is the log.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#26</link>
<pubDate>Sat, 10 Jun 2017 07:00:32 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#26</guid>
<category>VoiceBot</category>
<description><![CDATA[Change the path in reference from C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Speech.dll to C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\System.Speech.dll and try to run the script from the profile. If that doesn't help, could ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Change the path in reference from <b>C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Speech.dll</b> to <b>C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\System.Speech.dll</b> and try to run the script from the profile. If that doesn't help, could you please send the Log file?<br/>
<br/>
<ul class="ListBullet">
<li>On the VoiceBot Settings &gt; Troubleshooting tab, change the Logging drop-down to "L1: Log Minimal" and click Apply</li>
<li>Run the script using Run Function</li>
<li>Close script</li>
<li>Disable debug logging</li>
<li>And attach it to a message in this topic without "Protect these attachments" check box</li></ul>
<br/>
For test I installed a new system on a virtual machine, installed <a href="https://www.microsoft.com/en-us/download/details.aspx?id=53345" target="_blank" rel="nofollow"><b>.NetFramework 4.6.2</b></a>, Spotify, and VB. Ran the script, it works.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#25</link>
<pubDate>Fri, 09 Jun 2017 18:17:55 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#25</guid>
<category>VoiceBot</category>
<description><![CDATA[Then Keith will wait and hope that he can help. I'll try to see tomorrow, maybe I'll see what I can't see right now.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Then Keith will wait and hope that he can help. I'll try to see tomorrow, maybe I'll see what I can't see right now.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#24</link>
<pubDate>Fri, 09 Jun 2017 18:03:31 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#24</guid>
<category>VoiceBot</category>
<description><![CDATA[Still nothing happens.. It says Run succesful. but nothing else happens.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Still nothing happens.. It says Run succesful. but nothing else happens.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#23</link>
<pubDate>Fri, 09 Jun 2017 17:56:16 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#23</guid>
<category>VoiceBot</category>
<description><![CDATA[I'm running out of options.  Try importing this profile, opening the script, and running it through "Run Function".]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I'm running out of options. <img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/face-smile.light.svg" alt=":)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":)" HelpButtonDataAlign="BelowMiddle" /> Try importing this profile, opening the script, and running it through "Run Function".
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#22</link>
<pubDate>Fri, 09 Jun 2017 17:37:38 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#22</guid>
<category>VoiceBot</category>
<description><![CDATA[No.
Where should I see this message?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
No.<br/>
<br/>
Where should I see this message?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#21</link>
<pubDate>Fri, 09 Jun 2017 17:29:45 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#21</guid>
<category>VoiceBot</category>
<description><![CDATA[My mistake, I need administrator privileges because I moved the Temp folder to C:\Windows\.
All right, let's try another option. Is the message "Recognized: 78" displayed when you run this script?
Code
Copy
Select All
using System;
using System.Drawing;
using System.Linq;
using System.Spe...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
My mistake, I need administrator privileges because I moved the Temp folder to C:\Windows\.<br/>
All right, let's try another option. Is the message "Recognized: 78" displayed when you run this script?<br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019e4a5205907053868c59e901398626" class="ClipboardCopyControl"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e4a5205907053868c59e901398626Js'); return false;"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019e4a5205907053868c59e901398626Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;
using System.Linq;
using System.Speech.Recognition.SrgsGrammar;
using System.Speech.Recognition;
using System.Xml;

// Add to references | System.Core.dll | C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Speech.dll

public static class VoiceBotScript
{
    public static void Run(IntPtr windowHandle)
    {
        // Path to open\save Volume.xml
        var dirPath = @"c:\Test\";
        
        // Open\save srgs file
        var srgsFile = SrgsCreator.GetFileWithVolume(dirPath);
        
        // Get recognition result
        SpeechRecognition.Recognition(srgsFile);
    }
}

class SpeechRecognition
{
    public static void Recognition(string volumeList)
    {  
        var volumeRecogResult = "";
        var sre = new SpeechRecognitionEngine();
        var grammar = new Grammar(volumeList);
        
        sre.LoadGrammar(grammar);
        var rr = sre.EmulateRecognize("78");
        if (rr != null && rr.Text != null)
            BFS.Dialog.ShowMessageInfo("Recognized: " + rr.Text);
    }
}

// Create basic srgs file without regard to pronunciation
class SrgsCreator
{
    public static string GetFileWithVolume(string dirPath)
    {
        var volumeFile = dirPath + "Volume.xml";
        
        if (System.IO.File.Exists(volumeFile))
            return volumeFile;
        
        var choices = new Choices();
        var volArr = Enumerable.Range(1, 100).ToArray();
        
        foreach (var num in volArr)
            choices.Add(num.ToString());
        
        var grammarBuilder = new GrammarBuilder();
        grammarBuilder.Append(choices);
        var srgsDoc = new SrgsDocument(grammarBuilder);
        var xmlWriter = XmlWriter.Create(volumeFile);
        srgsDoc.WriteSrgs(xmlWriter);
        xmlWriter.Close();
        
        return volumeFile;
    }
}</pre><textarea id="code019e4a5205907053868c59e901398626" name="code019e4a5205907053868c59e901398626" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#20</link>
<pubDate>Fri, 09 Jun 2017 16:27:26 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#20</guid>
<category>VoiceBot</category>
<description><![CDATA[Does not seem to make any difference.. :/
Oh well.. I can use the Spotify API script and make a few different commands for different volume levels.
Thanks anyway!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Does not seem to make any difference.. :/<br/>
<br/>
Oh well.. I can use the Spotify API script and make a few different commands for different volume levels.<img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/face-smile.light.svg" alt=":)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":)" HelpButtonDataAlign="BelowMiddle" /><br/>
<br/>
Thanks anyway!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#19</link>
<pubDate>Fri, 09 Jun 2017 16:11:13 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#19</guid>
<category>VoiceBot</category>
<description><![CDATA[Simply I have it run at startup with admin rights via the scheduler.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Simply I have it run at startup with admin rights via the scheduler.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#18</link>
<pubDate>Fri, 09 Jun 2017 16:07:23 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#18</guid>
<category>VoiceBot</category>
<description><![CDATA[Oh, sorry, I completely forgot that VB should be run as an administrator.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Oh, sorry, I completely forgot that VB should be run as an administrator.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#17</link>
<pubDate>Fri, 09 Jun 2017 14:27:39 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#17</guid>
<category>VoiceBot</category>
<description><![CDATA[Folder did not exist.. so I created it.. and ran the script again. Now there is Volume.xml file in the folder.
But the volume is still not changing.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Folder did not exist.. so I created it.. and ran the script again. Now there is Volume.xml file in the folder.<br/>
<br/>
But the volume is still not changing.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#16</link>
<pubDate>Fri, 09 Jun 2017 12:43:51 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#16</guid>
<category>VoiceBot</category>
<description><![CDATA[Ok. Check whether the file "Volume.xml" on the "C:\Test\" path. If file or folder not exist, create folder or change the path in code to a convenient path for you. Code
Copy
Select All
var dirPath = @"C:\Test\";
After that the 1st script should work.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ok. Check whether the file "Volume.xml" on the "C:\Test\" path. If file or folder not exist, create folder or change the path in code to a convenient path for you. <div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019e4a5205aa75cbbfcbe5fa9de908ed" class="ClipboardCopyControl"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e4a5205aa75cbbfcbe5fa9de908edJs'); return false;"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019e4a5205aa75cbbfcbe5fa9de908edJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">var dirPath = @"C:\Test\";</pre><textarea id="code019e4a5205aa75cbbfcbe5fa9de908ed" name="code019e4a5205aa75cbbfcbe5fa9de908ed" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div> After that the 1st script should work.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#15</link>
<pubDate>Fri, 09 Jun 2017 12:32:54 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#15</guid>
<category>VoiceBot</category>
<description><![CDATA[It changes the spotify volume on volume mixer according to the value in spApi.SetSpotifyVolume(50) ... so this is working]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
It changes the spotify volume on volume mixer according to the value in spApi.SetSpotifyVolume(50) ... so this is working
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#14</link>
<pubDate>Fri, 09 Jun 2017 12:25:53 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#14</guid>
<category>VoiceBot</category>
<description><![CDATA[Try this script for test
Code
Copy
Select All
using System;
using System.Drawing;
using SpotifyAPI.Local;
public static class VoiceBotScript
{
public static void Run(IntPtr windowHandle)
{
var spApi = new SpotifyLocalAPI();
spApi.SetSpotifyVolume(50);
}
}
In this case, you only nee...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Try this script for test<br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019e4a5205b672cc98dd6d81fecbf4cb" class="ClipboardCopyControl"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e4a5205b672cc98dd6d81fecbf4cbJs'); return false;"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019e4a5205b672cc98dd6d81fecbf4cbJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;
using SpotifyAPI.Local;

public static class VoiceBotScript
{
    public static void Run(IntPtr windowHandle)
    {
        var spApi = new SpotifyLocalAPI();
        spApi.SetSpotifyVolume(50);
    }
}</pre><textarea id="code019e4a5205b672cc98dd6d81fecbf4cb" name="code019e4a5205b672cc98dd6d81fecbf4cb" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
In this case, you only need to add SpotifyAPI.dll to reference. Change the value and run the script from the editor.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#13</link>
<pubDate>Fri, 09 Jun 2017 12:13:10 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#13</guid>
<category>VoiceBot</category>
<description><![CDATA[Nothing happens. Should there be some message box or something?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Nothing happens. Should there be some message box or something?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#12</link>
<pubDate>Fri, 09 Jun 2017 11:58:43 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#12</guid>
<category>VoiceBot</category>
<description><![CDATA[Add this string Code
Copy
Select All
BFS.Speech.TextToSpeech(string.Format("Set volume to {0}", volumeRecogResult));
after Code
Copy
Select All
BFS.General.ThreadWait(1000);
or uncomment Code
Copy
Select All
//BFS.Dialog.ShowMessageInfo(volumeRecogResult.ToString());
to see what respo...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Add this string <div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019e4a5205c177749484075b9466c209" class="ClipboardCopyControl"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e4a5205c177749484075b9466c209Js'); return false;"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019e4a5205c177749484075b9466c209Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">BFS.Speech.TextToSpeech(string.Format("Set volume to {0}", volumeRecogResult));</pre><textarea id="code019e4a5205c177749484075b9466c209" name="code019e4a5205c177749484075b9466c209" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div> after <div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019e4a5205c272fcafb6e65a55218349" class="ClipboardCopyControl"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e4a5205c272fcafb6e65a55218349Js'); return false;"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019e4a5205c272fcafb6e65a55218349Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">BFS.General.ThreadWait(1000);</pre><textarea id="code019e4a5205c272fcafb6e65a55218349" name="code019e4a5205c272fcafb6e65a55218349" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div> or uncomment <div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019e4a5205c37274b9708fc2dc7e3dee" class="ClipboardCopyControl"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e4a5205c37274b9708fc2dc7e3deeJs'); return false;"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019e4a5205c37274b9708fc2dc7e3deeJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">//BFS.Dialog.ShowMessageInfo(volumeRecogResult.ToString());</pre><textarea id="code019e4a5205c37274b9708fc2dc7e3dee" name="code019e4a5205c37274b9708fc2dc7e3dee" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div> to see what response returns from speech recog. Say command word to start script then wait some second and say number(0-100).<br/>
<br/>
If it's not help, comment this string <div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019e4a5205c574939a568439223c151d" class="ClipboardCopyControl"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e4a5205c574939a568439223c151dJs'); return false;"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019e4a5205c574939a568439223c151dJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">var volumeRecogResult = SpeechRecognition.Recognition(srgsFile);</pre><textarea id="code019e4a5205c574939a568439223c151d" name="code019e4a5205c574939a568439223c151d" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div> and set the volume like that <div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019e4a5205c673799368b67b9b729324" class="ClipboardCopyControl"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e4a5205c673799368b67b9b729324Js'); return false;"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019e4a5205c673799368b67b9b729324Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">spLocalApi.SetSpotifyVolume(50);</pre><textarea id="code019e4a5205c673799368b67b9b729324" name="code019e4a5205c673799368b67b9b729324" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Spotify internal volume control</title>
<link>https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#11</link>
<pubDate>Fri, 09 Jun 2017 11:38:11 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/spotify-internal-volume-control/?ID=0c4758d4-109b-43c7-8c05-558ed58658b4#11</guid>
<category>VoiceBot</category>
<description><![CDATA[Hey,
Your script seems awesome, but I cannot get to work? What I'm missing here?
I made a new Macro on Global Macros and named it Spotify Volume and the command to use it is spotify volume.. Then I added to actions new macro script and pasted your script there.
And I downloaded the SpotifyApi ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hey,<br/>
<br/>
Your script seems awesome, but I cannot get to work? What I'm missing here?<br/>
<br/>
I made a new Macro on Global Macros and named it Spotify Volume and the command to use it is spotify volume.. Then I added to actions new macro script and pasted your script there.<br/>
<br/>
And I downloaded the SpotifyApi and typed the references for System.Core and SpotifyAPI<br/>
<br/>
But when I try to run this script nothing happens?! Am I supposed to say Command word + number(0-100) or Command word + volume + number(0-100)<br/>
<br/>
I have tried both, but volume on Spotify does not change?<br/>
<br/>
I have tried verify function and run function, and they are both successful.<br/>
<br/>
Thanks for your help!
</div>
]]></content:encoded>
</item>
</channel>
</rss>