Speech recognition system First lesson-xcode configuration Portaudio Based on Mac X10.10

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.