 |
|
 |
Hai Pratheesh,
Really great program.My quiery is that I downloaded your program and got it compiled in XP/OS.I'm using MS VC++ 6.0.But my problem is that it doesnot speek the text I entered while running in XP.Please tell me where I went wrong and how to resolve.
Any how adipoli workanuketto.Cgrts.
Robs here
Robs here
|
|
|
|
 |
|
|
 |
|
 |
I could not run the exe on Windows XP (it runs on my notebook which has Windows2000). Nothing happens when I click on exe on Win XP. I dont have C compiler. Can someone compile the code and post it. Thanks.
|
|
|
|
 |
|
|
 |
|
 |
I would like to know how to run the MFC wizard (if there is one) in Borland 6.
I´m a (human language) translator addicted to C++ and although I´m still learning how to produce code, I asume I´ve had few improvements already and want to go on.
Would you introduce real beginners in working with this application, Word Automation, COM, etc?????
I desperately need to build my own application for translating (no matter how many years it takes, C++ programming is a hobby I will never quit)
Thank you very much
CKeeto
C++ beginner
|
|
|
|
 |
|
 |
Hi All,
Is it possible to write the same application in c#.
I need to implement the same feature in c#. so did any body attempt to do this feature in c#. If so can you provide any sample code. Please help me.
thanks in advance for your kind response and help.
Regards,
Vijay
|
|
|
|
 |
|
 |
Hi there, how do I get each meaning or the "text" for each meaning (similar to word, how you click on the meaning to get the synonym list)?
Cheers
|
|
|
|
 |
|
 |
Got it sorted... GetMeaningList()
Great little app!!!
|
|
|
|
 |
|
 |
hi:
Sir,I am using the Speech recognition engine of the Microsoft Speech SDK5.1,and I want the computer can recognize my voice and display the words onto a richEdit box,but I don't know how to realize that ,could you help me?I'm in hurry!
Thank you very much.My email:sus396@sohu.com
Best wishes to you!
|
|
|
|
 |
|
 |
Hi,
Initially thanks a lot for the code.
How to Set a Different language say French instead of using the default Enlish language.
I tried with the function SetLanguageID(1036) with the Selection as shown below,
////////////////////////////////////////////////
Word::Selection oSel;
// get Selection
oSel = oWordApp.GetSelection();
// set text to the word-unknown...
oSel.SetText(m_Word);
/////////////////////////////////////////////
//set the French language for the selection
oSel.SetLanguageID(1036);
//checkspelling & spellsuggestions code..
////////////////////////////////////////////////
I even tried with the Range Object also but the language is Default language English only.
But could not get the result as the application object is using the Default language English.
Deliberately in need of Help to solve this.
(Note:Please send a mail about the solution to the senasrini@yahoo.com)
Thanks In Advance.
Chary.
|
|
|
|
 |
|
 |
Hi,
Initially thanks a lot for the code.
How to Set a Different language say French instead of using the default Enlish language.
I tried with the function SetLanguageID(1036) with the Selection as shown below,
////////////////////////////////////////////////
Word::Selection oSel;
// get Selection
oSel = oWordApp.GetSelection();
// set text to the word-unknown...
oSel.SetText(m_Word);
/////////////////////////////////////////////
//set the French language for the selection
oSel.SetLanguageID(1036);
//checkspelling & spellsuggestions code..
////////////////////////////////////////////////
I even tried with the Range Object also but the language is Default language English only.
But could not get the result as the application object is using the Default language English.
Deliberately in need of Help to solve this.
(Note:Please send a mail about the solution to the senasrini@yahoo.com)
Thanks In Advance.
Chary.
|
|
|
|
 |
|
 |
Hi there!
I am writing an automating program in VC++
How do I Get all text and their correct own font.
How to get textbox or other shape in Word, excel.
Please write to me
Thanks
Jason Chang
tmsnhien@yahoo.com
|
|
|
|
 |
|
 |
I like this program very much. How can the voice be changed to be
female. Thanks
|
|
|
|
 |
|
 |
Hi.
I think most of the properties are READ ONLY.
It doesn't allow changing prperties like mode, that determine the voice type.
Try pulling a TTS control out to a VB form and setting the properties.
It would say 'Invalid Property Value'!!!!
Maybe we can try some other Engine...
This is the default value that they've set...
"Adult Male #1, US English, L&H TruVoice {CA141FD0-AC7F-11D1-97A3-006008273000} "
But for female voice use...
Adult Female #1, US English, L&H TruVoice {CA141FD0-AC7F-11D1-97A3-006008273008}
Adult Female #2, US English, L&H TruVoice {CA141FD0-AC7F-11D1-97A3-006008273009}
Bi
Have a great time...
pratheesh
|
|
|
|
 |
|
 |
Are you a guy who love nature or a guy who was born of a lover?
|
|
|
|
 |
|
 |
whatever way yu like it!!!
i am a natural lover and a lover by nature!!!
|
|
|
|
 |
|
 |
Hi Pratheesh,
It's me again. I am not good with figuring out these wrapper classes but
oWordApp.CreateDispatch("Word.Application", NULL)
opens WINWORD.EXE
but what closes it?
I have tried oWordApp.DetachDispatch() etc.
but WINWORD.EXE doesn't get killed.
any suggestions,
Thanks
Later, JoeSox www.joeswammi.com
"Wars may be fought with weapons, but they are won by men."
General George S. Patton, Jr
|
|
|
|
 |
|
 |
try oWordApp.ReleaseDispatch();
Spiros Prantalos
Miami the place to be!!
|
|
|
|
 |
|
 |
I am guessing you need to invoke more than just the Speak() function for us to actually hear the word??
my function:
void CTxtTOspchDlg::OnPronounce()
{
UpdateData(TRUE);
CTextToSpeech getfunct;
getfunct.Speak(m_Word);
}
Does not work. What am I missing?
PS. I would peek at the project code but for some reason when I try to download them , they are corrupted.
Thanks
JoeSox
"You can't throw yourself a parade every time you win, and you can't bury yourselves when you lose."-Levon Kirkland Philadelphia Eagles
|
|
|
|
 |
|
 |
Hi Joe.
The control won't trouble you much if you drag-drop it from the controls tool bar and add a CTextToSpeech variable using classwizard. I have done the same.
You would probably want to create it at runtime...
The same question has been asked before!
Try this...
{
CTextToSpeech sp;
sp.Create(NULL,NULL,WS_CHILD | WS_VISIBLE, CRect(0, 0, 2, 2),this,1234);
sp.Speak("Hi");
sp.Detach();
}
It worx on my machine atleast
Enjoy Your Life!
Pratheesh
|
|
|
|
 |
|
 |
I think your article is really cool. I just want to learn how to implement it in my programs
Before I received your email, I figured out I needed to add
"#define IDC_VTEXT1 1003" to my .rc
(which I don't have a clue on what control this is maybe you could fill me in)
then I added
" CONTROL "",IDC_VTEXT1,"{2398E32F-5C6E-11D1-8C65-0060081841DE}",
WS_TABSTOP,213,18,6,6"
and
"// Dialog Info
//
IDD_WORDTEST_DIALOG DLGINIT
BEGIN
IDC_VTEXT1, 0x376, 16, 0
0x0000, 0x0000, 0x0202, 0x0000, 0x00ee, 0x0000, 0x0109, 0x0000,
0
END"
and lastly manually added "DDX_Control(pDX, IDC_VTEXT1, m_Speaker);" to the MyDlg::DoDataExchange(CDataExchange* pDX) function.
Then I was able to hear the speech
Now this was creating your Dialog based app by scratch.
I am having problems figuring out how to include it in my SDI and MDI applications since there are no DoDataExchange functions.
I tried using your code above but in my app, it wouldn't compile because global functions do not have 'this' pointers.
Any ideas? Do you know of any links that explain the CTextToSpeech class in more detail? I tried searching around but found 0 Thanks for your help, awesome article.
P.S. Have you downloaded TextAloud MP3? this is a cool TextToSpeech application!! www.nextup.com
|
|
|
|
 |
|
 |
Hi joe.
I think it still worx for SDI!
Ofcourse, you needn't use Detach().. that was a mistake
this is attached on to the view...
void CDeletenowView::OnFileNew()
{
// TODO: Add your command handler code here
CTextToSpeech sp;
sp.Create(NULL,NULL,WS_CHILD|WS_VISIBLE,CRect(0,0,2,2),this,1212);
sp.Speak("Hello");
}
You might probably want to create an application that speaks out large documents... Use Microsoft speech sdk.
If you have MSDN July 2001, serach for "Text To Speech Tutorial" or on the net where you can get examples on the usage of ISpVoice interface.
Bye for now
Have a great day!
pratheesh
|
|
|
|
 |
|
 |
Thanks! In my environment(MSVC++6.0 win98se,SDI), I was getting the error "cannot convert parameter 5 from 'class" on the Create Line. So I decided to substitute "this"
revised code:
CTextToSpeech sp;
CWnd *pMainWnd = AfxGetMainWnd();
sp.Create(NULL,NULL,WS_CHILD | WS_VISIBLE, CRect(0, 0, 2, 2),pMainWnd,1234);
sp.Speak("Hello");
Thanks again!!
Joe
www.joeswammi.com
|
|
|
|
 |
|
 |
How can we get synonym list of all meanings?
|
|
|
|
 |
|
 |
Hi anonymous,
Use GetMeaningCount() of SynonymInfo object to get the number of meanings available. Then iterate through each meaning for synonyms, passing the number of meaning to the GetSynonymList(). Eg: to get the 2nd meaning's (if any)synonym list pass '2' to the above method.
Have a great day.
Pratheesh
|
|
|
|
 |