Menu

bigEndianData set to false doesn't work

Help
gustavobap
2007-06-26
2012-09-22
  • gustavobap

    gustavobap - 2007-06-26

    Hi, I have a problem with my microphone, I've set the properties this way:

    <component name="microphone" type="edu.cmu.sphinx.frontend.util.Microphone">
    <property name="closeBetweenUtterances" value="false"/>
    <property name="sampleRate" value="16000"/>
    <property name="bitsPerSample" value="16"/>
    <property name="bigEndianData" value="false"/>
    <property name="signedData" value="true"/>
    </component>
    ====================================================================================

    like it should be, to be used whit a database where files are:

    WAVE (.wav) file, byte length: 32048, data format: PCM_SIGNED 16000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian, frame length: 16002

    the problem is, even with this property set
    <property name="bigEndianData" value="false"/>
    the microphone is initialized like this:
    ================================================================
    PCM_SIGNED 16000.0 Hz, 16 bit, mono, 2 bytes/frame, big-endian
    ================================================================
    it is BIG-ENDIAN, and my trained files are LITTLE-ENDIAN.

    Do you know how to solve this?

     
    • gustavobap

      gustavobap - 2007-06-26

      Just discovered the propery should be set like this

      <property name="bigEndian" value="false"/>

      Problem solved.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.