G711 Cli

[中文]

1、Function overview

In order to facilitate the verification of G711 codec-related functions, a series of cli CMDs are designed, which are also G711 codec function scene demos for customers’ reference.

2、Code path

path: components\demos\media\audio\g711\g711_demo.c

3、Cli command introduction

The supported CMDs are as follows:

1.g711_encoder_test
  • Function Description

    Used to test encoding functionality.

  • CMD Format

    g711_encoder_test param1 param2

    Param

    value

    param1

    file to be encoded

    format: xxx.pcm

    param2

    dest file

    format: xxx.pcm

  • Test Case

    Encode src.pcm audio using G711 and output to dest.pcm: g711_encoder_test src.pcm dest.pcm

2.g711_decoder_test
  • Function Description

    Used to test the decoding function.

  • CMD Format

    g711_decoder_test param1 param2

    Param

    value

    param1

    file to be decoded

    format: xxx.pcm

    param2

    dest file

    format: xxx.pcm

  • Test Case

    Use G711 to decode src.pcm audio and output it to dest.pcm: g711_decoder_test src.pcm dest.pcm