sumom****@users*****
sumom****@users*****
2009年 10月 22日 (木) 01:47:20 JST
Index: julius4/msvc/00README.txt diff -u /dev/null julius4/msvc/00README.txt:1.1 --- /dev/null Thu Oct 22 01:47:20 2009 +++ julius4/msvc/00README.txt Thu Oct 22 01:47:20 2009 @@ -0,0 +1,114 @@ +HOW TO COMPILE JULIUS ON MSVC / THE JULIUS CLASS +================================================= + +This file explains how to compile Julius on Microsoft Visual C++ 2008. +A sample application "SampleApp" and the Julius wrapper class is also +described here. See below to see how to compile Julius and test them. + +This package has been developed and tested on Visual C++ 2008 Express +Edition on Windows Vista 32bit/64bit. + + +1. Preparation +=============== + +"Microsoft DirectX SDK" is required to compile Julius. +You can get it from the Microsoft Web. + +Julius also uses these two open-source libraries: + + - zlib + - portaudio (V19) + +The pre-compiled win32 libraries and header files are already +included under the "zlib" and "portaudio" directory. + + +2. Compile +=========== + +Simply open the "JuliusLib.sln" file, and build it! +You will get "julius.exe" and "SampleApp.exe" under "Debug" or "Release" +directory. + +If you got an error when linking "zlib" or "portaudio", try compiling them +by your own. Get the sources, compile it, and then place all the .h and generated +.lib files under the corresponding directories, and rebuild Julius. If you have +re-compiled portaudio library, you may have to copy the generated portaudio DLL file +into the "Release" and "Debug" directories. + + +3. Test +======== + +"julius.exe" is a console application, which runs as the same as the +normally distributed version. + +The "SampleApp.exe" is a GUI application sample that uses JuliusLib. +When executed, Julius will be started and the engine events will be output +in the main window. You can test it as below: + + a) Prepare an acoustic model, language model and jconf file for them. + b) Place a Jconf file as "fast.jconf" at the same directory as the exe. + c) Modify the locale setting at line 98 of SampleApp.cpp to match the + character encoding of your language model. + d) Recompile and Run it. + +The Julius output log will be stored in a text file "juliuslog.txt". + + + +4. The Julius Class +==================== + +SampleApp uses a simple class definition "Julius.cpp" and "Julius.h". +They defines a wrapper class named "cJulius" that handles speech +recognition in a standard Windows messaging style. You can try to +use it like this: + +----------------------------------------------------------------- +#include "Julius.h" + +cJulius julius; + +.... + +// Windows Procedure callback +LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +{ + switch( message ) { + case WM_CREATE: + // start Julius when the main window is created + julius.initialize( "fast.jconf" ); + julius.startProcess( hWnd ); + break; + case WM_JULIUS: + // Julius events + switch( LOWORD( wParam ) ) { + case JEVENT_AUDIO_READY: ... + case JEVENT_RECOG_BEGIN: ... + case JEVENT_RESULT_FINAL:.... + } + ..... + } + ... +} +----------------------------------------------------------------- + +For more details, see SampleApp.cpp and Julius.cpp. + + + +5. About the character codes in the sources +============================================= + +The source code of Julius contains Japanese characters at EUC-JP encoding. +If you want to read them in MSVC++, convert them to UTF-8. + + +6. History +============== + +2009/11 (ver.4.1.3) + + INITIAL RELEASE. Index: julius4/msvc/JuliusLib.sln diff -u /dev/null julius4/msvc/JuliusLib.sln:1.1 --- /dev/null Thu Oct 22 01:47:20 2009 +++ julius4/msvc/JuliusLib.sln Thu Oct 22 01:47:20 2009 @@ -0,0 +1,49 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual C++ Express 2008 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libsent", "libsent\libsent.vcproj", "{0867DE93-30F0-4D6E-AB7D-7E4545E5F24F}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libjulius", "libjulius\libjulius.vcproj", "{4F9DC42E-E874-4885-819E-5C901F4E6079}" + ProjectSection(ProjectDependencies) = postProject + {0867DE93-30F0-4D6E-AB7D-7E4545E5F24F} = {0867DE93-30F0-4D6E-AB7D-7E4545E5F24F} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "julius", "julius\julius.vcproj", "{C8E5508A-BEF2-4010-B99F-09C14CF5B89D}" + ProjectSection(ProjectDependencies) = postProject + {4F9DC42E-E874-4885-819E-5C901F4E6079} = {4F9DC42E-E874-4885-819E-5C901F4E6079} + {0867DE93-30F0-4D6E-AB7D-7E4545E5F24F} = {0867DE93-30F0-4D6E-AB7D-7E4545E5F24F} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SampleApp", "SampleApp\SampleApp.vcproj", "{667FC1EB-6D97-4040-8ECE-A7B0E62B289B}" + ProjectSection(ProjectDependencies) = postProject + {4F9DC42E-E874-4885-819E-5C901F4E6079} = {4F9DC42E-E874-4885-819E-5C901F4E6079} + {0867DE93-30F0-4D6E-AB7D-7E4545E5F24F} = {0867DE93-30F0-4D6E-AB7D-7E4545E5F24F} + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0867DE93-30F0-4D6E-AB7D-7E4545E5F24F}.Debug|Win32.ActiveCfg = Debug|Win32 + {0867DE93-30F0-4D6E-AB7D-7E4545E5F24F}.Debug|Win32.Build.0 = Debug|Win32 + {0867DE93-30F0-4D6E-AB7D-7E4545E5F24F}.Release|Win32.ActiveCfg = Release|Win32 + {0867DE93-30F0-4D6E-AB7D-7E4545E5F24F}.Release|Win32.Build.0 = Release|Win32 + {4F9DC42E-E874-4885-819E-5C901F4E6079}.Debug|Win32.ActiveCfg = Debug|Win32 + {4F9DC42E-E874-4885-819E-5C901F4E6079}.Debug|Win32.Build.0 = Debug|Win32 + {4F9DC42E-E874-4885-819E-5C901F4E6079}.Release|Win32.ActiveCfg = Release|Win32 + {4F9DC42E-E874-4885-819E-5C901F4E6079}.Release|Win32.Build.0 = Release|Win32 + {C8E5508A-BEF2-4010-B99F-09C14CF5B89D}.Debug|Win32.ActiveCfg = Debug|Win32 + {C8E5508A-BEF2-4010-B99F-09C14CF5B89D}.Debug|Win32.Build.0 = Debug|Win32 + {C8E5508A-BEF2-4010-B99F-09C14CF5B89D}.Release|Win32.ActiveCfg = Release|Win32 + {C8E5508A-BEF2-4010-B99F-09C14CF5B89D}.Release|Win32.Build.0 = Release|Win32 + {667FC1EB-6D97-4040-8ECE-A7B0E62B289B}.Debug|Win32.ActiveCfg = Debug|Win32 + {667FC1EB-6D97-4040-8ECE-A7B0E62B289B}.Debug|Win32.Build.0 = Debug|Win32 + {667FC1EB-6D97-4040-8ECE-A7B0E62B289B}.Release|Win32.ActiveCfg = Release|Win32 + {667FC1EB-6D97-4040-8ECE-A7B0E62B289B}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal