Error 1 Interop type 'SpSharedRecoContextClass' cannot be embedded. Use the applicable interface instead. C:\Users\Rad-x\documents\visual studio 2010\Projects\VoiceRec\VoiceRec\SpeechLibrary.vb 54 27 VoiceRec
@ambcoder I am making a program that uses this feature and I may potentially make money off of it when it is finished, I have given copyright credit to you in the about box and code, do i need to do anything else?
@ThePowerGeek No you dont! You have fun :D If your using it commercially, I would recomend you note down the incompatabilities (which you can view on my website). :)
@Kijiriko I suppose it could. The speech recognition library can't handle Bluetooth Connections but you could embed BlueTooth capabilities whithin your program and activate them through a function using speech recongition. I'm currently using Speech Recognition to make a Home Automation library.
I have discovered what the problem with embedding is for all you guys on VB 2010!! When you create your project or form, you must make sure that you select .NET Framework 3.5 NOT 4.0!!!
@7lucklucky Unfortanately that "what was that" message is nothing to do with the code. Its saying that because Windows doesn't understand what your saying. Try the Microsoft Training Wizard for speech recognition :) Have fun. When you become "computer voice friendly" the software will react to the quoates you put in.
@7lucklucky How strange. So you added the library. Ok. Thats a good start.
In this project I also add the Microsoft Speech Library as a reference to the project. Without that reference the line of code in error 2 doesn't work. Did you add the reference to your project?
@7lucklucky Thats good :) Im confused into why your declaration doesn't work. When I try to sort out errors that I don't recognise I put the error into Google and see what I get... What is the exact error message?
I got an error
Error 1 Interop type 'SpSharedRecoContextClass' cannot be embedded. Use the applicable interface instead. C:\Users\Rad-x\documents\visual studio 2010\Projects\VoiceRec\VoiceRec\SpeechLibrary.vb 54 27 VoiceRec
HelpMyFellowPeople 3 weeks ago
@HelpMyFellowPeople I got the same error, someone please help
ThatProgrammerDude 3 weeks ago
libraries are all well and good, but I this is not what I was looking for when I searched for a tutorial for the Microsoft speech library.
sprogsy10 2 months ago
thanks i searched a lot of Hours for this and now i have a good Application.
Sorry for my english because i'm german
HabbonanoLive 4 months ago
@ambcoder I am making a program that uses this feature and I may potentially make money off of it when it is finished, I have given copyright credit to you in the about box and code, do i need to do anything else?
ThePowerGeek 7 months ago
@ThePowerGeek No you dont! You have fun :D If your using it commercially, I would recomend you note down the incompatabilities (which you can view on my website). :)
ambcoder 6 months ago
Hello.
What I wanted to do with this was control an external machine (a BS2) using a bluetooth connection from it to my PC.
Can this be done with your code?
Kijiriko 8 months ago
@Kijiriko I suppose it could. The speech recognition library can't handle Bluetooth Connections but you could embed BlueTooth capabilities whithin your program and activate them through a function using speech recongition. I'm currently using Speech Recognition to make a Home Automation library.
ambcoder 6 months ago
Comment removed
ThePowerGeek 10 months ago
I have discovered what the problem with embedding is for all you guys on VB 2010!! When you create your project or form, you must make sure that you select .NET Framework 3.5 NOT 4.0!!!
DuckHouseProductions 10 months ago 2
@DuckHouseProductions Thank you for your incompatability suggestion. I have listed this on my website.
ambcoder 6 months ago
Please upload the complete project files for VB cos I have loads of errors about embedding (and yes I have done the refrences and library)
DuckHouseProductions 10 months ago
dude i was trying to run the program same as yours but there was an error occured. SAPI.Speak(TextToSpeak)
the error is that this is not registered
tangina1234 1 year ago
@tangina1234 Have you included all the relavent References which I said?
ambcoder 1 year ago
@tangina1234 Please make sure your system meets the minimum requirements as stated on my website.
ambcoder 6 months ago
I have a problem with the code,
"Error 3 Interop type 'SpSharedRecoContextClass' cannot be embedded. Use the applicable interface instead."
Can you help? I don't know why it's doing this
Uploadthedownload 1 year ago
@Uploadthedownload i get same error :(
v1Broadcaster 1 year ago
@Uploadthedownload it might be something to do with the framework. make sure you are using .Net 3.5 not .net 4 ? it's just a guess
DuckHouseProductions 10 months ago
uuhm, ive got the speech recognition in windows working now. but when i start the program it say "what was that"
could you maybe just send me the complete project (in vb) so a can see what I did wrong?
thanks
7lucklucky 1 year ago
@7lucklucky Unfortanately that "what was that" message is nothing to do with the code. Its saying that because Windows doesn't understand what your saying. Try the Microsoft Training Wizard for speech recognition :) Have fun. When you become "computer voice friendly" the software will react to the quoates you put in.
ambcoder 1 year ago
I get 2 errors:
1. SpeechLibrary_TextToSpeech_("hello there, my name is HelpMe") It says its not declared.
2. RecoContext = New SpSharedRecoContextClass 'Create a new RecoContextClass
can you help me with that?
thanks!!
7lucklucky 1 year ago
@7lucklucky Hi there :) Thanks for watching the video :)
Did you download the library? Did you include it into the project?
ambcoder 1 year ago
@ambcoder Yea i did.
I handeled the first failure, but htere is still the 2nd problem.
I've got no idea what it is.
I have the german VB2010 so its kind a hard to explain what the problem is.
heres a translation from google:
Error 1 The Interoptyp "SpSharedRecoContextClass" can not be embedded. Instead, use the appropriate interface.(Patch C:\ ......)
7lucklucky 1 year ago
@7lucklucky How strange. So you added the library. Ok. Thats a good start.
In this project I also add the Microsoft Speech Library as a reference to the project. Without that reference the line of code in error 2 doesn't work. Did you add the reference to your project?
ambcoder 1 year ago
@ambcoder
yes, i added it.
The text to speech does work by the way.
7lucklucky 1 year ago
@7lucklucky Thats good :) Im confused into why your declaration doesn't work. When I try to sort out errors that I don't recognise I put the error into Google and see what I get... What is the exact error message?
ambcoder 1 year ago
@ambcoder
you are a genius!
i found a post and the answer was:
leave the "class" at the end. guess what, it worked.
now the only thing I need is a mic :)
thanks, Great Tut.
7lucklucky 1 year ago
@7lucklucky Im glad you've now got speech recognition in your software! I spent a lot of time trying to make that function as simple as possible :)
ambcoder 1 year ago
@7lucklucky Please make sure your system meets the minimum requirements as stated on my website.
ambcoder 6 months ago