Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I control a communication method to control the voice volume? What will happen to the switch and communication function operated in the COMBO example?

0
Posted

How do I control a communication method to control the voice volume? What will happen to the switch and communication function operated in the COMBO example?

0

Answer To control the voice volume using a communication method, you can use the communication data and the API function known as VoicePlay. In the COMBO example, using switches to connect PA0~PA7 to ground allows the voice generation using switch control. The communication port is PB and data will be retained in the RAM19. Using VoicePlay and the received data, the played voice can be controlled. The switches can be triggered repeatedly. During the course of voice generation, the device will always response to the latest commands. This means that a switch may interrupt a voice being played from the communication command, and vice-versa a communication command can interrupt a voice being played from a switch.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.