dannychen

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)

  • Author
    Posts
  • in reply to: OE and Bluetooth HFP 8kHz Audio signal #1031305
    dannychen
    Participant

    It works for me with 8k sample rate bluetooth headset.
    Thanks!

    in reply to: Building Source Code #1031304
    dannychen
    Participant

    Hi,

    It works fine.
    Thanks for your great help!

    in reply to: Building Source Code #1031278
    dannychen
    Participant

    Sorry, update the last part of previous post.

    ===
    But I got a new error during run framework_script.py:

    Traceback (most recent call last):
      File "framework_script.py", line 874, in <module>
        run_build
      File "framework_script.py", line 818, in run_build
        run_slave_build
      File "framework_script.py", line 753, in run_slave_build
        print_and_call_slave_build
      File "framework_script.py", line 550, in print_and_call_slave_build
        raise subprocess.CalledProcessError
    
    Command '['xcodebuild', '-project', ..., 'UFW_MASTER_PLATFORM=iphoneos', 'OTHER_CFLAGS="-fembed-bitcode"', 'install']' returned non-zero exit status 65
    Command /bin/sh failed with exit code 1
    in reply to: Building Source Code #1031276
    dannychen
    Participant

    I’ve traced this issue and got some updates.

    In framework_prep_scipt.py:
    1. Add args ‘-I’, ‘/usr/include’, after clang: {subprocess.check_call([‘clang’, ‘-I’, ‘/usr/include’, …}.
    /usr/include is where the system placed stdio.h.

    2. change args from “OS X SDKs:” to “macOS SDKs:” in
    subprocess.Popen([‘xcodebuild -showsdks | awk \’/^$/{p=0};p; /macOS SDKs:/{p=1}\’ | tail -1 | cut -f3′], stdout=subprocess.PIPE, shell=True)
    I think it’s related to the new OS name…

    After the changes, XCode run framework_prep_scipt.py and compile the source code without error.

    But I got a new error:
    Command ‘[‘xcodebuild’, ‘-project’, …, ‘UFW_MASTER_PLATFORM=iphoneos’, ‘OTHER_CFLAGS=”-fembed-bitcode”‘, ‘install’]’ returned non-zero exit status 65
    Command /bin/sh failed with exit code 1`

    in reply to: Building Source Code #1031273
    dannychen
    Participant

    Thanks for reply.

    Yes I built via Archive.

    OS: 10.11.5 El Capitan.

    in reply to: OE and Bluetooth HFP 8kHz Audio signal #1031272
    dannychen
    Participant

    Hi, I got a same issue.
    Everything works fine on builtInMic, but the accuracy get highly decreased when I connected with bluetooth headset.
    After read the source code of pocketsphinx and OpenEars and did some test.
    I’m figuring, if we connected with 8k sample rate bluetooth device. Should we add “-samprate 8000” when we init the decoder?

    Here is the result of my test:
    Input: 63 wav files with 9 grammar (8k sample rate).

    case 1: without “-samprate 8000”
    TOTAL Words: 63 Correct: 9 Errors: 54
    TOTAL Percent correct = 14.29% Error = 85.71% Accuracy = 14.29%

    case 2: with “-samprate 8000”
    TOTAL Words: 63 Correct: 58 Errors: 5
    TOTAL Percent correct = 92.06% Error = 7.94% Accuracy = 92.06%

    Thank you.

    in reply to: Building Source Code #1031269
    dannychen
    Participant

    Hi,
    I just met another issue when I tried to build OpenEars.framework.

    When I try to build OpenEarsDistribution/OpenEars (2.503) in XCode Version 8.1 (8B62). There was an error: ‘stdio.h’ file not found makeheader.c

    And I also try to run
    $python framework_prep_script.py
    Got error:
    Traceback (most recent call last):
    File “framework_prep_script.py”, line 10, in <module>
    if “OpenEarsDistribution/OpenEars” in os.environ[‘PROJECT_DIR’]:
    File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py”, line 23, in __getitem__
    raise KeyError(key)
    KeyError: ‘PROJECT_DIR’

    $python framework_prep_script.py
    Got error:
    Traceback (most recent call last):
    File “framework_script.py”, line 859, in <module>
    log_handler.setFormatter(logging.Formatter(“%(name)s (” + os.environ[‘PLATFORM_NAME’] + “): %(levelname)s: %(message)s”))
    File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py”, line 23, in __getitem__
    raise KeyError(key)
    KeyError: ‘PLATFORM_NAME’

    Is it possible to build OpenEars.framework (2.503)?
    If so, is there any document? I’ve searched on both website and documents on DownloadOpenEarsDocs.webloc.

    Thank you.

Viewing 7 posts - 1 through 7 (of 7 total)