| View previous topic :: View next topic |
| Author |
Message |
Pron Grandmaster Cheater
Reputation: 0
Joined: 31 May 2008 Posts: 711
|
Posted: Mon Sep 22, 2008 1:38 pm Post subject: Adding voices when opening applications? |
|
|
I was wondering if you could make it so when you open something (MSN for example) you could have a text to voice thing say something (You clicked on MSN for example). Would you be able to start both in a .bat? And then how would you make it write what you want in the text to speech thing?
(I'm not good with this whole computer thing :3)
|
|
| Back to top |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Mon Sep 22, 2008 1:44 pm Post subject: |
|
|
Go to start>Settings>Control Panel>Sound and Audio Devices>Sounds and click open program and choose any .wav file.
I know you want it to be different for every program but that's the best I know of.
|
|
| Back to top |
|
 |
kls85 I post too much
Reputation: 22
Joined: 18 Jul 2008 Posts: 2757 Location: Under ur bed
|
Posted: Mon Sep 22, 2008 2:53 pm Post subject: |
|
|
Do you have Vista, If yes then you can use the its built voice recognition.
Just enable it, read their practice paragraph and then start talking away.
_________________
Last edited by kls85 on Mon Sep 22, 2008 2:56 pm; edited 1 time in total |
|
| Back to top |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Mon Sep 22, 2008 2:55 pm Post subject: |
|
|
| kls85 wrote: | Do you have Vista, If yes then you can use the its built voice recognition.
Just enable it, read their paragraph and then start talking away. |
He's talking about something completely different.
|
|
| Back to top |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Mon Sep 22, 2008 4:45 pm Post subject: |
|
|
It would probably be pretty easy to make a program that would take in a path to a wav file and process and just play the wav and CreateProcess the process. Then all you would have to od is get a recording for each thing and change all the shortcuts to go to your program instead of directly to the real program.
_________________
|
|
| Back to top |
|
 |
Pron Grandmaster Cheater
Reputation: 0
Joined: 31 May 2008 Posts: 711
|
Posted: Mon Sep 22, 2008 6:06 pm Post subject: |
|
|
| HalfPrime wrote: | | It would probably be pretty easy to make a program that would take in a path to a wav file and process and just play the wav and CreateProcess the process. Then all you would have to od is get a recording for each thing and change all the shortcuts to go to your program instead of directly to the real program. |
Yes! That's what I was thinking of, so it would work?
|
|
| Back to top |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Mon Sep 22, 2008 10:16 pm Post subject: |
|
|
It would work if you went through the hassle of programming all the directories for each shortcut and the program it runs and the wav etc.
I mean you're probably talking like 50 programs or something, that's 150 directories to list in 3 places, roughly 500 lines of code not including the UI, and I'm guessing it would take a total of 28 hours spread over 2 and a half weeks with personal interference and birthday parties and probably school etc.
So basically it's a bad idea.
etc.
|
|
| Back to top |
|
 |
Pron Grandmaster Cheater
Reputation: 0
Joined: 31 May 2008 Posts: 711
|
Posted: Mon Sep 22, 2008 10:32 pm Post subject: |
|
|
| Cryoma wrote: | It would work if you went through the hassle of programming all the directories for each shortcut and the program it runs and the wav etc.
I mean you're probably talking like 50 programs or something, that's 150 directories to list in 3 places, roughly 500 lines of code not including the UI, and I'm guessing it would take a total of 28 hours spread over 2 and a half weeks with personal interference and birthday parties and probably school etc.
So basically it's a bad idea.
etc. |
I was thinking more along the lines of just a few key apps.
|
|
| Back to top |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Mon Sep 22, 2008 11:39 pm Post subject: |
|
|
Well then spend an hour and go for it.
Heck, most people install programs to C:\Program Files\ so you could release is as public for those that use the same programs.
|
|
| Back to top |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Tue Sep 23, 2008 9:43 am Post subject: |
|
|
I'm talking about something like this:
Untested:
| Code: | #include <windows.h>
#include <tchar.h>
#pragma comment(lib, "Kernel32.lib")
#pragma comment(lib, "Winmm.lib")
int _tmain(int argc, _TCHAR* argv[])
{
PlaySound(argv[1], NULL, SND_FILENAME|SND_ASYNC);
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );
CreateProcess(argv[0], NULL, NULL, NULL, false, 0, NULL, NULL, &si, &pi);
return 0;
} |
And you'd just replace the shortcut to the real pogram with a shortcut to this program with the path to the real exe and the wav.
"c:\theprogram.exe c:\program files\blah\blah.exe c:\wavs\blah.wav"
_________________
|
|
| Back to top |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Tue Sep 23, 2008 9:49 am Post subject: |
|
|
I see london, I see france, I see errors in your code's green pants.
| Code: | #include <windows.h>
#include <tchar.h>
#pragma comment(lib, "Kernel32.lib")
#pragma comment(lib, "Winmm.lib")
#pragma comment(lib, "lang_en.lib")
int _tmain(int argc, _TCHAR* argv[])
{
PlaySound(argv[1], NULL, SND_FILENAME|SND_ASYNC);
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si(-6)) );
si.cb = sizeof(si(-6));
ZeroMemory( &pi, sizeof(pi(6)) );
CreateProcess(argv[0], NULL, NULL, NULL, false, 0, NULL, NULL, &si, &pi(0(0)));
return -0;
} |
|
|
| Back to top |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Tue Sep 23, 2008 10:19 am Post subject: |
|
|
God, I really hope you're joking.
Like I said, it's untested and may not even compile...but you don't seem to know how to program. ie why are you multiplying si by -6?
_________________
|
|
| Back to top |
|
 |
Cryoma Member of the Year
Reputation: 198
Joined: 14 Jan 2009 Posts: 1819
|
Posted: Tue Sep 23, 2008 12:36 pm Post subject: |
|
|
| It will reload your weapons faster.
|
|
| Back to top |
|
 |
|