1, first download Portaudio installation package and documentation from the official website http://www.portaudio.com/download.html
Portaudio installation package:pa_stable_v19_20140130.tgz
Document: Pa_stable_doxydocs_20140130.tgz
Remember that the installation package should not be placed in the Chinese path.
2. Open the compile_mac_coreaudio.html in the document to view the document
3, open the command line terminal, enter the installation package Portaudio path, enter the following several commands respectively
a)./configure && Make
b) Lipo Lib/.libs/libportaudio.a-extract I386-output LIBPORTAUDIO.A
c" open lib/.libs
< Span style= "font-family:monospace,fixed; line-height:13px; text-indent:-53px; White-space:pre-wrap; Background-color:rgb (251,252,253) "> 4, enter the Lib folder in the Portaudio installation package in the terminal, and then enter the. Libs, you can enter the open The path to the/users/hsqmlz/downloads/portaudio/lib/.libs,portaudio installation package is replaced with the path you have stored, and the Lib folder opens. Then enter Open/usr/local/lib in the terminal, and then open the Lib folder to copy the Libportaudio.2.dylib in the Libs folder into the Lib file.
after entering these 3 commands, a Lib folder will be generated with the files we need to add.
5, open Xcode New project, add 8 files in link Binary with libraries.
a) directly drag Portaudio in the Include folder Portaudio.h to link Binary with libraries.
b) Drag the libportaudio.a in the. libs file entered in step 4th.
c" will drag the Libportaudio.2.dylib into the 4th step.
d" Enter open/system/library/frameworks on the command line,
- Coreaudio.framework
- Audiotoolbox.framework
- Audiounit.framework
- Coreservices.framework
- Carbon.framework
Dragged in.
Note to drag into the 4th step involved in the file, can not be reported link error, has been stuck here, reference to this blog to give inspiration, here also share to everyone http://blog.sina.com.cn/s/blog_470740c80100y45c.html
Compile the project, you can start programming speech recognition.
Speech recognition system First lesson-xcode configuration Portaudio Based on Mac X10.10