RapidEars Return Segments

Home Forums OpenEars plugins RapidEars Return Segments

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

  • Author
    Posts
  • #1021753
    Matt
    Participant

    I cannot get RapidEars to return segments, or segment times. It seems that all four of the appropriate delegate methods in OpenEarsEventsObserver+RapidEars.h cause the app to crash. Tested this in the stock sample app with RapidEars added.

    I have [self.pocketsphinxController setReturnSegments:YES]; and implemented rapidEarsDidDetectLiveSpeechAsWordArray:andScoreArray:

    Without the method implementation, the app doesn’t crash, but obviously I cannot get the results. Anything I am doing wrong?

    Here is the relevant output for the case mentioned above:

    2014-06-24 07:54:50.804 OpenEarsSampleApp[22683:4607] Speech detected…
    INFO: file_omitted(0): arc_buffer_producer_start_utt
    time delta 1403610890.807214 start 0000000
    INFO: file_omitted(0): arc_buffer_consumer_start_utt
    time delta 1403610890.808295 start 0000000
    2014-06-24 07:54:50.806 OpenEarsSampleApp[22683:60b] Pocketsphinx has detected speech.
    2014-06-24 07:54:50.810 OpenEarsSampleApp[22683:60b] rapidEarsDidDetectBeginningOfSpeech
    time delta 1403610890.815831 partial result fwdtree
    partial: <s>:(0000000)
    time delta 1403610890.826939 partial result fwdtree
    partial: <s>:++UH++:(0000000)
    time delta 1403610891.198907 partial result fwdtree
    partial: <s>:LEFT:2014-06-24 07:54:51.199 OpenEarsSampleApp[22683:60b] -[__NSCFString getBytes:length:]: unrecognized selector sent to instance 0x9ba270
    2014-06-24 07:54:51.201 OpenEarsSampleApp[22683:60b] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[__NSCFString getBytes:length:]: unrecognized selector sent to instance 0x9ba270’
    *** First throw call stack:
    (0x2d5f8f03 0x37d89ce7 0x2d5fc837 0x2d5fb12f 0x2d54a0d8 0x40657 0x40bed 0x2dfe1c23 0x2d5c3fe7 0x2d5c34af 0x2d5c1c9f 0x2d52c7a9 0x2d52c58b 0x324896d3 0x2fe8b891 0xb789 0xb6d8)
    libc++abi.dylib: terminating with uncaught exception of type NSException
    (lldb) bt
    * thread #1: tid = 0x435643, 0x3833e1f0 libsystem_kernel.dylib`__pthread_kill + 8, queue = ‘com.apple.main-thread’, stop reason = signal SIGABRT
    frame #0: 0x3833e1f0 libsystem_kernel.dylib`__pthread_kill + 8
    frame #1: 0x383a67b6 libsystem_pthread.dylib`pthread_kill + 58
    frame #2: 0x382eeff8 libsystem_c.dylib`abort + 76
    frame #3: 0x3773d98e libc++abi.dylib`abort_message + 74
    frame #4: 0x377566e6 libc++abi.dylib`default_terminate_handler() + 254
    frame #5: 0x37d89f7c libobjc.A.dylib`_objc_terminate() + 192
    frame #6: 0x377541b2 libc++abi.dylib`std::__terminate(void (*)()) + 78
    frame #7: 0x37753d16 libc++abi.dylib`__cxa_rethrow + 102
    frame #8: 0x37d89e2e libobjc.A.dylib`objc_exception_rethrow + 42
    frame #9: 0x2d52c81e CoreFoundation`CFRunLoopRunSpecific + 642
    frame #10: 0x2d52c58a CoreFoundation`CFRunLoopRunInMode + 106
    frame #11: 0x324896d2 GraphicsServices`GSEventRunModal + 138
    frame #12: 0x2fe8b890 UIKit`UIApplicationMain + 1136
    * frame #13: 0x0000b788 OpenEarsSampleApp`main(argc=1, argv=0x00728ce4) + 172 at main.m:16
    (lldb)

    #1021764
    Halle Winkler
    Politepix

    OK, this appears to be fixed in the upcoming next version of RapidEars, thank you for the report.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.