美文网首页
Silk_SDK_API

Silk_SDK_API

作者: THB_5bed | 来源:发表于2019-06-27 15:15 被阅读0次

SILK_SDK_API


Skype Silk SDK API使用说明

The Application Programming Interface (API) is defined in four header files located in the interface/ folder:

  • SKP_Silk_SDK_API.h - function declarations for the SILK encoder and decoder.
  • SKP_Silk_control.h - declarations of structures for controlling the encoder and for controlling and getting status information from the decoder
  • SKP_API_typedef.h - type definitions
  • SKP_Silk_errors.h - error code descriptions for the SILK SDK

Advanced settings, that generally should only be changed to fit a special need, can be made in a header file located in the src/ folder:

  • SKP_Silk_define.h - various defines for controlling the SILK SDK

Encoder Control Struct Description(SKP_Silk_control.h)

The encoder structure(skp_silk_sdk_enccontrolstruct)has the following members:

SKP_int32  API_sampleRate
    API sampling frequency in Hertz of the encoder. Valid values are:8000、12000、16000、24000、32000、44100 and 48000。This sampling frequency represents the sampling frequency of the input signal to the encoder.

SKP_int32 maxInternalSampleRate
     Maximum internal sampling frequency in Hertz of the encoder. Valid values are: 8000, 12000, 16000, and 24000. This sampling frequency represents the sampling frequency of the encoded signal. Note, that the encoder may automatically adapt the sampling frequency to a lower value  MaxInternalSamplerate  must never exceed the RTP time stamp clock rate negotiated during call setup

SKP_int packetSize
     Number of samples per packet. A number of samples corresponding to 20, 40, 60, 80 or 100 ms are supported at any of the above listed API sampling frequencies, e.g., 480 samples for a 20 ms packet at 24000 Hz API sampling frequency

SKP_int32 bitRate
    Target bitrate for active speech in the range 5000 – 100000 bits per second (bps). The value is limited internally if the input value is not within the supported range

SKP_int packetLossPercentage
    Estimated packet loss percentage in the uplink direction (0 – 100). This controls the error propagation in case of a packet loss. If in-band forward error correction is used, this information also determines how much protection the encoder will add

SKP_int complexity
    Complexity setting. Supported values are 0, 1 and 2, where 0 is the lowest and 2 is the highest complexity

SKP_int useInBandFEC
    Enables / disables use of in-band forward error correction (0 disables and 1 enables)

SKP_int useDTX
    Enables / disables use of discontinuous transmission (0 disables and 1 enables)

相关文章

  • Silk_SDK_API

    SILK_SDK_API Skype Silk SDK API使用说明 The Application Progr...

网友评论

      本文标题:Silk_SDK_API

      本文链接:https://www.haomeiwen.com/subject/hkxrcctx.html