Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wake-up problem (AIS-1627) #102

Closed
Sail-211010 opened this issue Jul 16, 2024 · 27 comments
Closed

Wake-up problem (AIS-1627) #102

Sail-211010 opened this issue Jul 16, 2024 · 27 comments

Comments

@Sail-211010
Copy link

image
Every time I wake up,If it is the first time to awaken, he must be in channel 2, and subsequent awakenings will be in channel 1,When in channel 2, the command word cannot be recognized, I want to know what to do, either do not enter channel 2 or make it recognize the command word in channel 2

@github-actions github-actions bot changed the title Wake-up problem Wake-up problem (AIS-1627) Jul 16, 2024
@sun-xiangyu
Copy link
Contributor

@Sail-211010 , Thank you for your feedback, I will test it.

@Sail-211010
Copy link
Author

Hi. I wonder if you've already tested it. I'm sorry, every time I try to reply to you, I get interrupted by other things, and then I forget to reply

@Sail-211010
Copy link
Author

@sun-xiangyu Hello, Did you get the results?

@feizi
Copy link
Collaborator

feizi commented Jul 24, 2024

Hi @Sail-211010 , I wander if your wakenet_mode is DET_MODE_2CH_90 or DET_MODE_2CH_95?
When you select DET_MODE_2CH_90 or DET_MODE_2CH_95, the channel of first time is random(this is a bug). Please set the wakenet_mode to DET_MODE_3CH_90 or DET_MODE_3CH_95 and try again.

@Sail-211010
Copy link
Author

hello @feizi What do I need to do in ArduinoIDE environment? I can't find the definition in the library file

@feizi
Copy link
Collaborator

feizi commented Jul 24, 2024

It is a config item in afe_config. You can find afe_config in your code and change it.

afe_config_t afe_config = AFE_CONFIG_DEFAULT();
afe_config.wakenet_mode = DET_MODE_3CH_90;

@Sail-211010
Copy link
Author

Sail-211010 commented Jul 31, 2024

@feizi
image
I have modified it, but it doesn't solve my problem
I have tried DET_MODE_3CH_90 and DET_MODE_3CH_95 and they are also consistent with this parameter not configured

@Sail-211010
Copy link
Author

@feizi
And it does not appear randomly, the first wake up after each power-on is channel 2, and the subsequent channel 2 will not appear

@feizi
Copy link
Collaborator

feizi commented Aug 2, 2024

@Sail-211010 , Yes, by default, the first wake-up uses channel 2, which is the raw data from the microphone. Channels 0 and 1 are the data enhanced by BSS (Blind Source Separation). The reason for this choice is to consider that BSS may not have converged during the first wake-up, which could lead to the selection of the wrong channel, so the default is to choose the original data channel.

@Sail-211010
Copy link
Author

Hi @feizi
How do I turn this off? I don't want channel 2 to happen, at least I need to turn it off first and test the actual effect

@feizi
Copy link
Collaborator

feizi commented Aug 2, 2024

There is currently no option to turn off this setting; I need to regenerate a new version.

@Sail-211010
Copy link
Author

Sail-211010 commented Aug 2, 2024

@feizi
If possible, modify whether the function model and wakeword model of the English and Chinese models can be placed in a location that can be called
image

@Sail-211010
Copy link
Author

Of course this is a different operation,This is a recommendation if you have a version update in this area in the future
My English is not very good. Please don't mind if my presentation is not very good

In the current version, I need to enter the library file to modify these contents, whether there is a chance to solve this operation by calling some functions in the main program in the subsequent version

There is currently no option to turn off this setting; I need to regenerate a new version.

@Sail-211010
Copy link
Author

Above I am referring to the recommended update for the new firmware version (if you will be making this change).
Thank you very much for your reply
@feizi

@feizi
Copy link
Collaborator

feizi commented Aug 6, 2024

Please try new master branch.
You can set afe_config.fixed_first_channel=false to disable fixed channel number for first wake-up.

@Sail-211010
Copy link
Author

Okay, I'll try. Thanks

@Sail-211010
Copy link
Author

afe_config.fixed_first_channel=false t
@feizi
hi In which version is fixed_first_channel started? I can't configure this parameter in the current file, it shows no member

@sun-xiangyu
Copy link
Contributor

The latest version is v1.9.0

@Sail-211010
Copy link
Author

image
I don't know which firmware version you mean, is it convenient to correspond to the ESP32 Arduino version

@sun-xiangyu
Copy link
Contributor

I think you need to update esp-sr manually by github or Esp Components Registry.

@Sail-211010
Copy link
Author

Sail-211010 commented Aug 8, 2024

I understand. Thank you very much for your help. I'll test the feasibility later

@Sail-211010
Copy link
Author

@feizi

Hello, I looked at this library I want to use on Arduino. How do I operate it? Sensory manipulation can be complicated, okay?

@feizi
Copy link
Collaborator

feizi commented Aug 12, 2024

Hi @Sail-211010 ,
This is an example in arduino-esp32 about how to use esp-sr on Arduino.

@Sail-211010
Copy link
Author

@feizi
image
Yes, I know this example, but I need to use the version of v1.9.0. Do you mean that this version is already used on 3.0.4

@feizi
Copy link
Collaborator

feizi commented Aug 12, 2024

Here is the version of esp-sr in arduino-esp32.
Arduino-esp32 has their own release plan and priority. If you want to use the latest esp-sr, I suggest you modify it manually.

@Sail-211010
Copy link
Author

@feizi
image

Is there a tutorial for this modification,I'm not sure what needs to be changed or do I just need to change this version?

@feizi
Copy link
Collaborator

feizi commented Aug 12, 2024

I think you can refer to idf-component-manager .
In my experience, you just need to change the name of the version number and recompile. It will usually be downloaded to managed_components/espressif_esp-sr. If you find this folder, open the idf_component.yml file in this folder and make sure the version is v1.9.0. If not, you can clone esp-sr and copy it into this folder by manually.

@feizi feizi closed this as completed Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants