You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
esp_err_tes8311_set_mic_gain(es8311_mic_gain_tgain_db)
{
esp_err_tres=ESP_OK;
res=es8311_write_reg(ES8311_ADC_REG16, gain_db); // MIC gain scalereturnres;
}
在我的应用中我需要更改麦克风的增益大小,默认的增益太大了用不了。
![image](https://private-user-images.githubusercontent.com/52393677/342072936-69ec11ee-ec91-43d9-be13-bf0727dd6cd8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3ODA2NzUsIm5iZiI6MTcyNTc4MDM3NSwicGF0aCI6Ii81MjM5MzY3Ny8zNDIwNzI5MzYtNjllYzExZWUtZWM5MS00M2Q5LWJlMTMtYmYwNzI3ZGQ2Y2Q4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA4VDA3MjYxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYzNjIxNDhlNmIwNjhjMmU1Yjc1OGI5Zjg3ODljZDk0Y2RkMzVjNzMyMGQwMTdmNzA4ODAyNjg4M2Y5NTc4MjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.yosGFEbTWO2b3Zrf7juit5gqgttBRKcog1_sKOtqHqk)
![image](https://private-user-images.githubusercontent.com/52393677/342072926-108599bd-159d-43e9-ae2a-ba073bb1cb5e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3ODA2NzUsIm5iZiI6MTcyNTc4MDM3NSwicGF0aCI6Ii81MjM5MzY3Ny8zNDIwNzI5MjYtMTA4NTk5YmQtMTU5ZC00M2U5LWFlMmEtYmEwNzNiYjFjYjVlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA4VDA3MjYxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRkNmRiNjc1MmI0YzFhZGFlZDJmMWM2ZGY3YmUzN2QwYTY1MGY2MGU0MGFjMWZjNDMzMWY1Mzg5NmQ2MzhjZjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HBO9iINcZ2WS7LRTFSmx5fWDKl7oifmMSaILbkDLl0I)
![image](https://private-user-images.githubusercontent.com/52393677/342072977-48128d6d-5573-415c-8fc7-afca0c1efdaf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3ODA2NzUsIm5iZiI6MTcyNTc4MDM3NSwicGF0aCI6Ii81MjM5MzY3Ny8zNDIwNzI5NzctNDgxMjhkNmQtNTU3My00MTVjLThmYzctYWZjYTBjMWVmZGFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA4VDA3MjYxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRlMWFlOTE2OTE2MDk5Mzc2YmY0NGI2NWExNWJiMWMyODQ3YzI5NzBmMTc1NjU5MTI4YWJmNjc5NGIzOGRmMWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ycGq2Tc8qgN2uJhumFBK3cjdByak2VNq8S5HzTd6kek)
我看到board_def.h,有一个增益大小定义。还有在es8311.c中有一个修改增益的函数。我修改成12DB,但是均不成功。
而且在使用es8311中的更改增益函数后,发现录音的文件更是直接没有声音,估计是增益过于的小。
我想要知道如何修改mic麦克风的增益大小。
我发现这个设定的增益的宏定义根本没有被调用。
The text was updated successfully, but these errors were encountered: