LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

voice recognition

Ok i wanted to learn how to use voice recogition with Labwindow CVI. I have never use it before. Can someone tell me where to start. I want to try to try it from

 

with a simple hello world program. Where the voice quoting back Hello world. 

 

So where do i start  to use voice recognition in CVI labwindows

0 Kudos
Message 1 of 20
(5,511 Views)

Microsoft has made available on MSDN some instruments for TTS (Text-to-speech) recognition: unfortunately those currently downloadable are intended for .NET applications and are way too far from my personal abilities. Nor I have had necessity to use them for actual applications so I took a look at them but considered the effort to understand and use them not compatible with my duties.

 

Nevertheless, you may serach MSDN for such resources at least to try understanding some principles of this interesting subject and calculate if your application is worth the effort to learn how to use them.

Message Edited by Roberto Bozzolo on 09-21-2009 12:38 PM


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 20
(5,500 Views)

roberto i got the voice recognition to work, im going to try it with CVI now and see if it works, I doubt it, i just got to play with it lil, I try it later on tonite when i get off of work.

 

 

but yea it works. do you know i can use these headers in CVI, that i use in c++? im just asking a stupid question, I probably got to include the dll, and lib files to get it to work.

 

but it works find in c++, I got it read back what i type.

 

 

these are the headers i use. 

 

**********************************

 

 


#include <stdafx.h>
#include <sapi.h>

 

#include "targetver.h"

#include <stdio.h>

#define _ATL_APARTMENT_THREADED

#include <atlbase.h>

#include <atlcom.h>


#include <tchar.h>

 

 

 

0 Kudos
Message 3 of 20
(5,474 Views)

Darnell:

 

Just from looking at the .h files you want to use, it looks like your speech recognition app is using ATL (Active Template Library), which is a set of C++ classes.  You won't be able to use them directly in CVI.

 

As you suspected, one way to use that code is to create a DLL and .LIB in your C++ environment and call functions in the DLL from your CVI project.  You'll need C wrapper functions on anything from your ATL app that you want to call from CVI.  The DLL can still use classes internally, but CVI can't instantiate them and use them.  Your wrapper functions need a C interface that CVI can call, but they can use the ATL classes.

Message Edited by Al S on 09-22-2009 08:56 AM
0 Kudos
Message 4 of 20
(5,454 Views)

cool, i just got to find out to change the voices. what im trying to do is create math tutorials elementary kids in a form of fun. but also the option for text to speech have text to speech. right now the voice is a lil pitchy  at the moment .

 

any more ideals to point me in a good direction. im open for ideals

0 Kudos
Message 5 of 20
(5,446 Views)

Darnell:

 

Are you doing voice recognition or speech synthesis?

 

Your statements "it read back what I type" and that you "got to find out to change the voices" and "option for text to speech" sound like speech synthesis, not voice recognition.

 

Are you trying to use speech input or speech output?

0 Kudos
Message 6 of 20
(5,441 Views)

http://msdn.microsoft.com/en-us/library/ms720163%28VS.85%29.aspx#SettingUpTheProject

 

 

this the website , im new to all of this , i dont know if its speech synthesis, speech out or speech input, i havent studied the code yet.

 

 

i just know it talks back to me , or the strings that input

0 Kudos
Message 7 of 20
(5,424 Views)

I wanted m i on the right track .is this all i need right , im doing this in c++,i havent transfer anything yet to cvi. this method i dont usually do, so this is something im going to start attcking.but i need some assistance, also is a sample program wherein some one is call c++ functions into labwindow C

 

#ifndef _DLL_VOICE_H_
#define _DLL_VOICE_H_
#include <iostream>

#define DLL_EXPORT

#define DECLDIR __declspec(dllexport)
//#else
//#define DECLDIR __declspec(dllimport)
//#endif

extern "C"
{
   //DECLDIR int Add( int a, int b );
   //DECLDIR void Function( void );
#include <stdafx.h>
#include <sapi.h>
#include "stdafx.h"

    #pragma once

#include "targetver.h"

#include <stdio.h>

#define _ATL_APARTMENT_THREADED

#include <atlbase.h>
//You may derive a class from CComModule and use it if you want to override something,
//but do not change the name of _Module
extern CComModule _Module;
#include <atlcom.h>


#include <tchar.h>
}

#endif

0 Kudos
Message 8 of 20
(5,382 Views)

Darnell:

 

Since you have C++ code already working to do the text to speech function, I think you best approach is to use that C++ code to create a DLL with your C++ compiler which will export functions that your CVI program can call.  Create C wrapper functions to your C++ code.  A wrapper function is just a function that uses only C standard data types and structures for parameters and return values.  No objects can be directly manipulated by your C code.  The wrapper functions in your C++ DLL can use objects, but that will be "under the hood" in the C++ DLL, and your C code won't even know they exist.

 

Looking at the code you posted: Declaring something extern "C" does not translate C++ code for use in a C program.  It tells the C++ compiler that a function will be called by a C compiler so the C++ compiler won't do the normal C++ name mangling when creating the DLL and LIB files.  The function I/O needs to compatible with a C compiler.

 

You don't need to extern "C" the .h files you posted because your C program is not going to use those .h files directly.  You need to extern "C" the C++ DLL functions that your C program will be calling.

 

Here are a few posts on using DLLs.

http://forums.ni.com/ni/board/message?board.id=180&message.id=6362&query.id=1360814#M6362

http://forums.ni.com/ni/board/message?board.id=180&message.id=8405&query.id=1355932#M8405

 

This link has multiple references included in it.

http://forums.ni.com/ni/board/message?board.id=180&message.id=30600&query.id=1359458#M30600

0 Kudos
Message 9 of 20
(5,370 Views)
so did i do it right? check out these files  c and the header file. I confuse with the header files, do i suppose to place the header files outside of the #ifdef __cplusplus
Download All
0 Kudos
Message 10 of 20
(5,363 Views)