<?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>Fri, 18 Sep 2026 15:50:08 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(&quot;en-US&quot;);
Latest version with patches and additions.
C...]]></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=":)" /> 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="#code01a0b535f8b170d2a8a7f8d85b48ee0c" 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('code01a0b535f8b170d2a8a7f8d85b48ee0cJs'); 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="code01a0b535f8b170d2a8a7f8d85b48ee0cJs" name="code01a0b535f8b170d2a8a7f8d85b48ee0cJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">var culture = new CultureInfo(&quot;en-US&quot;);</pre><textarea id="code01a0b535f8b170d2a8a7f8d85b48ee0c" name="code01a0b535f8b170d2a8a7f8d85b48ee0c" 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="#code01a0b535f8b675318db885c4eb595966" 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('code01a0b535f8b675318db885c4eb595966Js'); 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="code01a0b535f8b675318db885c4eb595966Js" name="code01a0b535f8b675318db885c4eb595966Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">using System;&#xA;using System.Drawing;&#xA;using System.Linq;&#xA;using System.Speech.Recognition.SrgsGrammar;&#xA;using System.Speech.Recognition;&#xA;using System.Xml;&#xA;using System.Globalization;&#xA;using SpotifyAPI.Local;&#xA;&#xA;// Add to references | System.Core.dll | C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\System.Speech.dll&#xA;// and | YourPathToSpotifyApi\SpotifyApi.dll from (https://github.com/JohnnyCrazy/SpotifyAPI-NET/releases/latest)&#xA;&#xA;public static class VoiceBotScript&#xA;{&#xA;    public static void Run(IntPtr windowHandle)&#xA;    {&#xA;        // Set your recognition language. Support languages: en-GB, en-US, de-DE, es-ES, fr-FR, ja-JP, zh-CN, zh-TW.&#xA;        var culture = new CultureInfo(&quot;en-US&quot;);&#xA;        &#xA;        // Path to open\save Volume.xml&#xA;        var dirPath = @&quot;c:\Test\&quot;;&#xA;        &#xA;        // Open\save srgs file&#xA;        var srgsFile = SrgsCreator.GetFileWithVolume(dirPath);&#xA;        &#xA;        // Get recognition result&#xA;        var volumeRecogResult = SpeechRecognition.Recognition(srgsFile, culture);&#xA;        BFS.General.ThreadWait(3000);&#xA;        &#xA;        // Show what recognize. For testing. Can be removed&#xA;        //BFS.Dialog.ShowMessageInfo(volumeRecogResult.ToString());&#xA;        BFS.Speech.TextToSpeech(string.Format(&quot;Set volume to {0}&quot;, volumeRecogResult));&#xA;&#xA;        // Set volume. Values in range 0-100 float&#xA;        var spLocalApi = new SpotifyLocalAPI();&#xA;        spLocalApi.SetSpotifyVolume(volumeRecogResult);&#xA;    }&#xA;}&#xA;&#xA;class SpeechRecognition&#xA;{&#xA;    public static float Recognition(string srgsFile, CultureInfo culture)&#xA;    {  &#xA;        var volumeRecogResult = &quot;&quot;;&#xA;        var sre = new SpeechRecognitionEngine(culture);&#xA;        var grammar = new Grammar(srgsFile);&#xA;        &#xA;        sre.LoadGrammar(grammar);&#xA;        try&#xA;        {&#xA;            sre.SetInputToDefaultAudioDevice();&#xA;            var result = sre.Recognize();&#xA;            if (result != null)&#xA;                volumeRecogResult = result.Text;&#xA;            else&#xA;                Recognition(srgsFile, culture);&#xA;        }&#xA;        catch (NullReferenceException ex)&#xA;        {&#xA;            BFS.Dialog.ShowMessageError(ex.Message);&#xA;        }&#xA;        finally&#xA;        {&#xA;            sre.UnloadGrammar(grammar);&#xA;        }&#xA;        &#xA;        return float.Parse(volumeRecogResult);&#xA;    }&#xA;}&#xA;&#xA;// Create basic srgs file without regard to pronunciation&#xA;class SrgsCreator&#xA;{&#xA;    public static string GetFileWithVolume(string dirPath)&#xA;    {&#xA;        var volumeFile = dirPath &#x2B; &quot;Volume.xml&quot;;&#xA;        &#xA;        if (System.IO.File.Exists(volumeFile))&#xA;            return volumeFile;&#xA;        &#xA;        var choices = new Choices();&#xA;        var volArr = Enumerable.Range(1, 100).ToArray();&#xA;        &#xA;        foreach (var num in volArr)&#xA;            choices.Add(num.ToString());&#xA;        &#xA;        var grammarBuilder = new GrammarBuilder();&#xA;        grammarBuilder.Append(choices);&#xA;        var srgsDoc = new SrgsDocument(grammarBuilder);&#xA;        var xmlWriter = XmlWriter.Create(volumeFile);&#xA;        srgsDoc.WriteSrgs(xmlWriter);&#xA;        xmlWriter.Close();&#xA;        &#xA;        return volumeFile;&#xA;    }&#xA;}</pre><textarea id="code01a0b535f8b675318db885c4eb595966" name="code01a0b535f8b675318db885c4eb595966" 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=":)" />
</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=":)" /> 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;&#xA;using System.Drawing;&#xA;using System.Linq;&#xA;using S...]]></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="#code01a0b535f8f6774ab0c97ad8d40a5624" 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('code01a0b535f8f6774ab0c97ad8d40a5624Js'); 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="code01a0b535f8f6774ab0c97ad8d40a5624Js" name="code01a0b535f8f6774ab0c97ad8d40a5624Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">using System;&#xA;using System.Drawing;&#xA;using System.Linq;&#xA;using System.Speech.Recognition.SrgsGrammar;&#xA;using System.Speech.Recognition;&#xA;using System.Xml;&#xA;&#xA;// Add to references | System.Core.dll | C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Speech.dll&#xA;&#xA;public static class VoiceBotScript&#xA;{&#xA;    public static void Run(IntPtr windowHandle)&#xA;    {&#xA;        // Path to open\save Volume.xml&#xA;        var dirPath = @&quot;c:\Test\&quot;;&#xA;        &#xA;        // Open\save srgs file&#xA;        var srgsFile = SrgsCreator.GetFileWithVolume(dirPath);&#xA;        &#xA;        // Get recognition result&#xA;        SpeechRecognition.Recognition(srgsFile);&#xA;    }&#xA;}&#xA;&#xA;class SpeechRecognition&#xA;{&#xA;    public static void Recognition(string volumeList)&#xA;    {  &#xA;        var volumeRecogResult = &quot;&quot;;&#xA;        var sre = new SpeechRecognitionEngine();&#xA;        var grammar = new Grammar(volumeList);&#xA;        &#xA;        sre.LoadGrammar(grammar);&#xA;        var rr = sre.EmulateRecognize(&quot;78&quot;);&#xA;        if (rr != null &amp;&amp; rr.Text != null)&#xA;            BFS.Dialog.ShowMessageInfo(&quot;Recognized: &quot; &#x2B; rr.Text);&#xA;    }&#xA;}&#xA;&#xA;// Create basic srgs file without regard to pronunciation&#xA;class SrgsCreator&#xA;{&#xA;    public static string GetFileWithVolume(string dirPath)&#xA;    {&#xA;        var volumeFile = dirPath &#x2B; &quot;Volume.xml&quot;;&#xA;        &#xA;        if (System.IO.File.Exists(volumeFile))&#xA;            return volumeFile;&#xA;        &#xA;        var choices = new Choices();&#xA;        var volArr = Enumerable.Range(1, 100).ToArray();&#xA;        &#xA;        foreach (var num in volArr)&#xA;            choices.Add(num.ToString());&#xA;        &#xA;        var grammarBuilder = new GrammarBuilder();&#xA;        grammarBuilder.Append(choices);&#xA;        var srgsDoc = new SrgsDocument(grammarBuilder);&#xA;        var xmlWriter = XmlWriter.Create(volumeFile);&#xA;        srgsDoc.WriteSrgs(xmlWriter);&#xA;        xmlWriter.Close();&#xA;        &#xA;        return volumeFile;&#xA;    }&#xA;}</pre><textarea id="code01a0b535f8f6774ab0c97ad8d40a5624" name="code01a0b535f8f6774ab0c97ad8d40a5624" 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=":)" /><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 = @&quot;C:\Test\&quot;;
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="#code01a0b535f91973dfb48ce27e4a2c956a" 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('code01a0b535f91973dfb48ce27e4a2c956aJs'); 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="code01a0b535f91973dfb48ce27e4a2c956aJs" name="code01a0b535f91973dfb48ce27e4a2c956aJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">var dirPath = @&quot;C:\Test\&quot;;</pre><textarea id="code01a0b535f91973dfb48ce27e4a2c956a" name="code01a0b535f91973dfb48ce27e4a2c956a" 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;&#xA;using System.Drawing;&#xA;using SpotifyAPI.Local;&#xA;&#xA;public static class VoiceBotScript&#xA;{&#xA;    public static void Run(IntPtr windowHandle)&#xA;    {&#xA;        var spApi = new SpotifyLocalAPI();&#xA;        spApi.Se...]]></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="#code01a0b535f92a74ccb59dad958d4e17e2" 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('code01a0b535f92a74ccb59dad958d4e17e2Js'); 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="code01a0b535f92a74ccb59dad958d4e17e2Js" name="code01a0b535f92a74ccb59dad958d4e17e2Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">using System;&#xA;using System.Drawing;&#xA;using SpotifyAPI.Local;&#xA;&#xA;public static class VoiceBotScript&#xA;{&#xA;    public static void Run(IntPtr windowHandle)&#xA;    {&#xA;        var spApi = new SpotifyLocalAPI();&#xA;        spApi.SetSpotifyVolume(50);&#xA;    }&#xA;}</pre><textarea id="code01a0b535f92a74ccb59dad958d4e17e2" name="code01a0b535f92a74ccb59dad958d4e17e2" 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(&quot;Set volume to {0}&quot;, volumeRecogResult));
after Code
Copy
Select All
BFS.General.ThreadWait(1000);
or uncomment Code
Copy
Select All
//BFS.Dialog.ShowMessageInfo(volumeRecogResult.ToString());
to see ...]]></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="#code01a0b535f93a7054aeb63f379fa27314" 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('code01a0b535f93a7054aeb63f379fa27314Js'); 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="code01a0b535f93a7054aeb63f379fa27314Js" name="code01a0b535f93a7054aeb63f379fa27314Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">BFS.Speech.TextToSpeech(string.Format(&quot;Set volume to {0}&quot;, volumeRecogResult));</pre><textarea id="code01a0b535f93a7054aeb63f379fa27314" name="code01a0b535f93a7054aeb63f379fa27314" 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="#code01a0b535f93e76489f42cc1e643afb05" 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('code01a0b535f93e76489f42cc1e643afb05Js'); 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="code01a0b535f93e76489f42cc1e643afb05Js" name="code01a0b535f93e76489f42cc1e643afb05Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">BFS.General.ThreadWait(1000);</pre><textarea id="code01a0b535f93e76489f42cc1e643afb05" name="code01a0b535f93e76489f42cc1e643afb05" 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="#code01a0b535f94276d4b101b5a641cecbd8" 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('code01a0b535f94276d4b101b5a641cecbd8Js'); 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="code01a0b535f94276d4b101b5a641cecbd8Js" name="code01a0b535f94276d4b101b5a641cecbd8Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">//BFS.Dialog.ShowMessageInfo(volumeRecogResult.ToString());</pre><textarea id="code01a0b535f94276d4b101b5a641cecbd8" name="code01a0b535f94276d4b101b5a641cecbd8" 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="#code01a0b535f94673668d7a2e04aad60d44" 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('code01a0b535f94673668d7a2e04aad60d44Js'); 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="code01a0b535f94673668d7a2e04aad60d44Js" name="code01a0b535f94673668d7a2e04aad60d44Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">var volumeRecogResult = SpeechRecognition.Recognition(srgsFile);</pre><textarea id="code01a0b535f94673668d7a2e04aad60d44" name="code01a0b535f94673668d7a2e04aad60d44" 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="#code01a0b535f94c700fbcb689a6a80c9608" 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('code01a0b535f94c700fbcb689a6a80c9608Js'); 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="code01a0b535f94c700fbcb689a6a80c9608Js" name="code01a0b535f94c700fbcb689a6a80c9608Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">spLocalApi.SetSpotifyVolume(50);</pre><textarea id="code01a0b535f94c700fbcb689a6a80c9608" name="code01a0b535f94c700fbcb689a6a80c9608" 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>