Skip to content

Commit

Permalink
Merge branch 'feature/update_sr_to_v1.9.2' into 'master'
Browse files Browse the repository at this point in the history
esp-sr: Update esp-sr to v1.9.2

See merge request adf/esp-adf-internal!1331
  • Loading branch information
jason-mao committed Sep 5, 2024
2 parents c601c04 + 749db41 commit 0e1d257
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void app_main()

audio_board_handle_t board_handle = audio_board_init();
audio_hal_ctrl_codec(board_handle->audio_hal, AUDIO_HAL_CODEC_MODE_BOTH, AUDIO_HAL_CTRL_START);
audio_hal_set_volume(board_handle->audio_hal, 60);
audio_hal_set_volume(board_handle->audio_hal, 80);
#if CONFIG_ESP32_S3_KORVO2_V3_BOARD
es7210_adc_set_gain(ES7210_INPUT_MIC3, GAIN_0DB);
#endif /* CONFIG_ESP32_S3_KORVO2_V3_BOARD */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ CONFIG_ESPTOOLPY_MONITOR_BAUD=115200
CONFIG_MODEL_IN_FLASH=y
CONFIG_USE_AFE=y
CONFIG_AFE_INTERFACE_V1=y
CONFIG_USE_NSNET=y
CONFIG_SR_NSN_NSNET2=y
CONFIG_USE_WAKENET=y
CONFIG_SR_WN_WN9_HILEXIN=y
CONFIG_USE_MULTINET=y
Expand Down
4 changes: 4 additions & 0 deletions examples/cli/pytest_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
'''

import os
import time
import pytest
from pytest_embedded import Dut

@pytest.mark.esp32
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.ADF_EXAMPLE_GENERIC
@pytest.mark.flaky(reruns=1, reruns_delay=5)
def test_cli(dut: Dut)-> None:
dut.expect(r'ESP_AUDIO_CTRL', timeout=5)

Expand All @@ -41,8 +43,10 @@ def test_cli(dut: Dut)-> None:
dut.write('play https://audiofile.espressif.cn/103_44100_2_320138_188.mp3')
dut.expect(r'ESP_AUDIO status is AEL_STATUS_STATE_RUNNING, 0, src:0, is_stopping:0', timeout=100)

time.sleep(2)
dut.write('pause')
dut.expect(r'esp_auido status:2,err:0')

time.sleep(2)
dut.write('resume')
dut.expect(r'esp_auido status:1,err:0')

0 comments on commit 0e1d257

Please sign in to comment.