## Overview
With the high-level API encapsulation of QuecPython modules, developers can quickly implement voice call functionality without delving into underlying protocols. In the REPL interactive environment, only one line of code is required to control the device to dial a specified mobile phone number, which significantly lowers the development threshold for IoT voice capabilities!
## Core Advantages
Ultra-simple invocation: voiceCall.callStart("xxxxxxxxxxx") triggers a call directly with no complex configuration needed
Instant verification: Real-time debugging in the REPL environment for quick validation of call functions
Full-feature support: Comprehensive coverage of communication processes including dialing, answering, and hanging up calls
Multi-network compatibility: Supports cellular networks such as 4G/CAT1 to ensure call quality
## Feature Introduction
### Making a Call
This method is used to actively initiate a phone call.
voiceCall.callStart(phonenum)
Get the complete project code with one click
API reference
voiceCall.callStart(phonenum)
For detailed API information, please refer to voiceCall.callStart.
## Answering a Call
This method is used to answer an incoming phone call.
voiceCall.callAnswer()
Get the complete project code with one click
API reference
voiceCall.callAnswer()
For detailed API information, please refer to voiceCall.callAnswer.
## Hanging Up a Call
This method is used to end an ongoing phone call.
voiceCall.callEnd()
Get the complete project code with one click.
API reference
voiceCall.callEnd()
For detailed API information, please refer to voiceCall.callEnd.
## Volume Configuration
Getting Volume
This method is used to retrieve the current call volume level.
voiceCall.getVolume()
Get the complete project code with one click.
API reference
voiceCall.getVolume()
For detailed API information, please refer to voiceCall.getVolume.
### Setting Volume
This method is used to set the call volume level.
voiceCall.setVolume(volume)
Get the complete project code with one click.
API reference
voiceCall.setVolume(volume)
For detailed API information, please refer to voiceCall.setVolume.
## Application Example
Implement making and answering calls between QuecPython series development boards and mobile phones using the voiceCall feature.
import voiceCall
Make a call
voiceCall.callStart("xxxxxxxxxxx")
Hang up the call:
voiceCall.callEnd()
Answer a call
voiceCall.callAnswer()
Key Notes on Translation
- Maintained technical accuracy (e.g., "REPL" retained as the standard technical term, "CAT1" unchanged as a cellular network specification)
- Ensured natural expression of technical documentation (e.g., "一键获取完整项目代码" translated to "Get the complete project code with one click" for readability)
- Kept code block formatting consistent with the original
- Standardized terminology (e.g., "拨打电话 / 接听电话 / 挂断电话" translated to "Making a Call/Answering a Call/Hanging Up a Call" for consistency)
- Adjusted minor formatting (e.g., added code block markers for Python snippets) to conform to English technical documentation conventions while preserving the original content structure.
Top comments (0)