Hack Forums
[C#] Control Spotify with your Voice! - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] Control Spotify with your Voice! (/showthread.php?tid=5628305)

Pages: Pages 1 2


Control Spotify with your Voice! - BoliBerrys - May 21, 2017

Are you tired of playing a game, and manually have to change songs on Spotify?

Here's the solution.

With Spotify Voice Controller you will gain control of Spotify, with just your voice!

Commands:

Play

Will Play the current song.

Pause

Will Pause the current song.

Next

Will Skip the current song.

Previous

Will Return to the previous song.

Up

Will increase the Volume.

Down

Will decrease the Volume.

Enable

It will Disable/Enable the voice recognition.


Also added a feature that saves the current song that's being played, on a .txt file in the same directory, allowing Streamers to show the viewers their current song.


https://github.com/BoliBerrys/SpotifyVoiceController

Release: https://github.com/BoliBerrys/SpotifyVoiceController/releases

Virus Scan: https://virustotal.com/en/file/330c3000c6f2be7b3d8faca0112255f07362962ade9a89d3c9c1322af5c058a7/analysis/1495424726/


I'm not the best coder in the world, so if you have any suggestions on how I can improve some of the stuff, please tell me 👍


EDIT:

I just realized the user Drizzy released one. If you guys want me to remove the thread please tell me


* - Joy - May 21, 2017

Looks pretty good mate. This is pretty useful.


* - Zilog80 - May 21, 2017

WTF:

PHP Code

<?php 
if (rec.Text == "pause"
   
|| rec.Text == "pulse"
   
|| rec.Text == "balls"
   
|| rec.Text == "boasts")
   {
      
spotify.Pause();
   } 

balls? boasts?...Really? 🤣

Anyway nice idea. You give me a very nice idea to control 'by voice' Elite Dangerous when 'playing with Oculus Rift. Stay tuned 👍


* - BoliBerrys - May 21, 2017

(May 21, 2017 11:53 AM)Zilog80 Wrote:  WTF:

PHP Code

<?php 
if (rec.Text == "pause"
   
|| rec.Text == "pulse"
   
|| rec.Text == "balls"
   
|| rec.Text == "boasts")
   {
      
spotify.Pause();
   } 

balls? boasts?...Really? 🤣

Anyway nice idea. You give me a very nice idea to control 'by voice' Elite Dangerous when 'playing with Oculus Rift. Stay tuned 👍

My english is not the best. So whenever i said Pause, it detected "Boasts" and such.
So i said f#ck it, and i added it 😏


* - VmX5 - May 21, 2017

(May 21, 2017 11:54 AM)BoliBerrys Wrote:  My english is not the best. So whenever i said Pause, it detected "Boasts" and such.
So i said f#ck it, and i added it 😏

Omg I fucking laughed for like 2 minutes. Omg Lmfao.


* - BoliBerrys - May 21, 2017

(May 21, 2017 12:22 PM)VmX5 Wrote:  Omg I fucking laughed for like 2 minutes. Omg Lmfao.

Glad i made you laugh 🤗 lmao


* - Finn. - May 21, 2017

Finally i can boasts my spotify ingame, appreciate it a lot!

Edit: { "play", "way", "late", "date", "eight", "lay" }{ "previous", "previews", "preview" } be careful on those, don't want it to go back everytime i say preview/s same with eight late and way^^


* - Mαxim - May 21, 2017

(May 21, 2017 11:54 AM)BoliBerrys Wrote:  My english is not the best. So whenever i said Pause, it detected "Boasts" and such.
So i said f#ck it, and i added it 😏

Hahah this is gold.


* - BoliBerrys - May 21, 2017

(May 21, 2017 01:09 PM)Finn. Wrote:  Finally i can boasts my spotify ingame, appreciate it a lot!

Glad this help you :)

(May 21, 2017 01:12 PM)Mαxim Wrote:  Hahah this is gold.

🤗🤗


* - BoliBerrys - May 22, 2017

Fixed some coding conventions, since it had some weird on some parts


* - Random Arab Girl - May 23, 2017

Theres already a voice controller for Spotify but that didn't include source code thank you ill be able to get ideas from this!


* - BoliBerrys - May 23, 2017

Improved the code, using classes and more.

Hope you guys enjoy this new update to the code ;)


* - jawsh33 - May 24, 2017

Thanks for this will check out later.


* - ΟJJ⁣ - May 24, 2017

(May 21, 2017 11:54 AM)BoliBerrys Wrote:  My english is not the best. So whenever i said Pause, it detected "Boasts" and such.
So i said f#ck it, and i added it 😏

What a fucking genius ahahaha.
Nice Shake mate, keep it up.


* - BoliBerrys - May 25, 2017

(May 24, 2017 06:21 PM)jawsh33 Wrote:  Thanks for this will check out later.

Once you test tell me if you have any suggestions or so ;)

(May 24, 2017 07:00 PM)Cyberlin Wrote:  What a fucking genius ahahaha.
Nice Shake mate, keep it up.

Haha thanks men :D