I'd like to see that feature too. Windows 10 contains a decent text to speech engine, it should be possible to use that, or use the same method as for the player names to use custom voice.
Unfortunately, I can't code, but I did find this info:
Microsoft speech engine
If you use Microsoft Windows 10, it has a speech engine included.
Install the module win32com, then you can use this code:
import win32com.client as wincl
speak = wincl.Dispatch("SAPI.SpVoice")
speak.Speak("Hello World")
Last edit: Sascha M. 2019-03-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I succefully have added this feature to my fork (lpfreak1283) of pydarts!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2020-02-03
Hi Cory, good job. I downloaded your Verison but I can't connect to a USB port for the Arduino. The Devicemanager doesent show up. I cannot calibrate. Do you have a solution? I remove the pydarts.cfg.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you're trying to calibrate your board again, use the --forcecalibration in the command line when starting pydarts (ex: py pydarts.py --forcecalibration)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2020-02-03
i got it to work. i had a few errors when i calibrate then pydarts closed with an error. Thats why in the pydarts.cfg 3 lines for the sound config wasnt commented out. sorry for my poor english. see the pictures below
yea i got the same errors. i pushed an updated code that corrected those problems i noticed it when i was running some tests after you downloaded! it will correct all the errors
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2020-02-04
i test it but when you first download it an theres no pydarts.cfg then the --forcecalibration command doesent work i cannot select an usb device it only starts with calibration but i cant calibrate because the usb device was not recognized. i must create a pydarts.cfg then the --forcecalibration works. When a game begins then pydarts crashed with the same error "config value displaymarkimages. No command line, no config found, no default. Abort". I put displaymarkimages:0 to the pydarts.cfg and then i can play.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
it should work on python 2 and python 3. I have it running on windows 10 and also a raspberry pi 3 and it works perfectly. Make sure all the dependencies are installed correctly. If you have any screenshots of command line errors, please show them!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Cory,
sorry for my delay. The board is installed at a friend....
I've tried out different versions, and all working great. But lpfreak1283-pydarts_120b5 does not. Starting is good, but when I'am start a Game like HoOne there is no sound when the dart hits. No beep and no speaking. I've started with --debuglevel=1
Any idea
Hello again,
if no one have an idea then let me know if it possible to debug a little bit more.
If it possible to play a sound like "trippel twenty" with the command like the program do?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What I could use is the debug screen picture when you are trying to play a game, so get into ho_one and throw a dart and send a picture of the resulting debug screen. It will tell me if it played the file or not!
You cannot play the sound from the comman line. You could open the files by themselves from the sounds folder in the pydarts directory though!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2020-03-13
If you have VLC instaled on you computer, you can test sound by playing an audiofile like this :
cd pydarts/sounds
cvlc bullseye.ogg
Note that since yesterday the source code include sounds for every hit.
Cheers !
Last edit: poilou 2020-03-13
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello all,
is it possible to speak out the hit field like "double eight" or "sixteen". Speaking playernames works fine.
Mike
I'd like to see that feature too. Windows 10 contains a decent text to speech engine, it should be possible to use that, or use the same method as for the player names to use custom voice.
Unfortunately, I can't code, but I did find this info:
Last edit: Sascha M. 2019-03-18
I succefully have added this feature to my fork (lpfreak1283) of pydarts!
Hi Cory, good job. I downloaded your Verison but I can't connect to a USB port for the Arduino. The Devicemanager doesent show up. I cannot calibrate. Do you have a solution? I remove the pydarts.cfg.
If you're trying to calibrate your board again, use the --forcecalibration in the command line when starting pydarts (ex: py pydarts.py --forcecalibration)
i got it to work. i had a few errors when i calibrate then pydarts closed with an error. Thats why in the pydarts.cfg 3 lines for the sound config wasnt commented out. sorry for my poor english. see the pictures below
see
see
Next error when i start the game it close with an error see the picture. displaymarkimages missed in the pydarts.cfg
yea i got the same errors. i pushed an updated code that corrected those problems i noticed it when i was running some tests after you downloaded! it will correct all the errors
i test it but when you first download it an theres no pydarts.cfg then the --forcecalibration command doesent work i cannot select an usb device it only starts with calibration but i cant calibrate because the usb device was not recognized. i must create a pydarts.cfg then the --forcecalibration works. When a game begins then pydarts crashed with the same error "config value displaymarkimages. No command line, no config found, no default. Abort". I put displaymarkimages:0 to the pydarts.cfg and then i can play.
Ok!! Let me know how you like the sounds! Its not using espeak or sapi voices. I created sound files, which anyone could alter to suit them!
i like the sounds. But when I throw the numbers from 1 to 20 I don't hear any sounds.
Which game are you playing?
Ho One and Kapital
Just updated and pushed new code for those two games! Try it out now!!
Thank you now it works :)
Hello Cory,
nice to hear!
I wanted to test, but it doesn't work on my raspberry. Is it depend on python 3?
it should work on python 2 and python 3. I have it running on windows 10 and also a raspberry pi 3 and it works perfectly. Make sure all the dependencies are installed correctly. If you have any screenshots of command line errors, please show them!
thank you, I will download once more and try today evening.
Hello Cory,
sorry for my delay. The board is installed at a friend....
I've tried out different versions, and all working great. But lpfreak1283-pydarts_120b5 does not. Starting is good, but when I'am start a Game like HoOne there is no sound when the dart hits. No beep and no speaking. I've started with --debuglevel=1
Any idea
Hello again,
if no one have an idea then let me know if it possible to debug a little bit more.
If it possible to play a sound like "trippel twenty" with the command like the program do?
What I could use is the debug screen picture when you are trying to play a game, so get into ho_one and throw a dart and send a picture of the resulting debug screen. It will tell me if it played the file or not!
You cannot play the sound from the comman line. You could open the files by themselves from the sounds folder in the pydarts directory though!
If you have VLC instaled on you computer, you can test sound by playing an audiofile like this :
cd pydarts/sounds
cvlc bullseye.ogg
Note that since yesterday the source code include sounds for every hit.
Cheers !
Last edit: poilou 2020-03-13
Is it possible to speek out one hundreeeeed and all above 100 ???
Hello! Id like to download complete pydarts with theese sounds! Please send me the link....
Keep the gooooood work! Thanks!
Iztok
Last edit: iztok slanič 2021-02-06