ESP-GMF Best Practices

[中文]

This chapter combines the example projects in gmf_examples to introduce the development workflow, typical usage, and advanced techniques for ESP-GMF in real projects, helping developers become familiar with GMF and integrate its functionality into product solutions.

gmf_examples is the officially maintained collection of GMF examples. The current basic examples are located in gmf_examples/basic_examples, demonstrating fundamental usage such as pipeline construction, playback, recording, muxer container recording, audio effects, looping, multi-source switching, and HTTP download. All examples can be created directly via the ESP-IDF Component Manager:

idf.py create-project-from-example "espressif/gmf_examples=<version>:<example_name>"

For example, to create a project based on pipeline_play_embed_music:

idf.py create-project-from-example "espressif/gmf_examples=0.8.0:pipeline_play_embed_music"

Basic feature examples include:

For component examples, see the test_apps/ or examples/ folder in each component directory, for example packages/esp_capture/examples.

For more complete application examples, see ESP-ADF examples. The ESP-ADF examples cover a broader range of audio application scenarios and can serve as a reference for ESP-GMF component composition and productization workflows.


Was this page helpful?