Method and device for realizing audio communication of dual-mode telephone through Bluetooth voice equipment

By redefining the call mode of dual-mode phones and configuring audio channels, the problem of dual-mode phones being unable to communicate with Bluetooth voice devices in PSTN mode is solved, the compatibility of Bluetooth voice devices in PSTN mode is realized, and the applicable scenarios are expanded and Improved user experience.

CN119342135AInactive Publication Date: 2025-01-21BEIJING PINGZHI ORIENTAL TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411864428.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-01-21
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The dual-mode phone cannot communicate with the Bluetooth voice device in PSTN mode, causing the Bluetooth voice device to fail to work in PSTN mode.

Method used

By redefining the call mode of the dual -mode phone, and configure the new audio channel in the audio route module, realize the audio communication of the Bluetooth voice device in the PSTN mode. Specific steps include the connection of the sound card and the simulation phone chip, define the new call mode, such as the PSTN Bluetooth mode, and configure the corresponding audio channel for each mode.

Benefits of technology

This enables Bluetooth voice devices connected to dual-mode phones to be compatible with audio processing from both analog and digital signal sources, expanding the applicable scenarios of traditional dual-mode phones, improving user experience, and saving equipment replacement costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119342135A_ABST
    Figure CN119342135A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for realizing audio communication of a dual-mode telephone through Bluetooth voice equipment. The method comprises the following steps of: connecting a sound card of the dual-mode telephone with an analog telephone chip; defining a new call mode according to the original call mode IP mode and PSTN mode of the framework layer and the condition that the Bluetooth module of the dual-mode telephone accesses the Bluetooth voice device; configuring an audio channel in each new call mode for the audio routing module; and the audio routing module searches the configured audio channel according to the new call mode selected by the application layer and sent by the framework layer, carries out audio channel switching according to the configured audio channel, and carries out audio communication through the switched audio channel. According to the invention, the audio path switching is carried out through the audio routing module according to the new call mode, the problem that the Bluetooth voice equipment accessed by the dual-mode telephone cannot work in the PSTN mode is solved, the application scene of the traditional dual-mode telephone is expanded, and the equipment replacement cost is saved for a user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of dual-mode telephone communication, and in particular to a method and device for realizing audio communication of a dual-mode telephone in PSTN mode and IP mode through a Bluetooth voice device. Background Art

[0002] Dual-mode phones support calls in PSTN mode and IP mode, and need to process two different audio sources: PSTN analog audio stream and VoIP digital audio stream. Therefore, the PSTN mode and IP mode calls of traditional dual-mode phones are realized through their own audio channels. Among them, PSTN mode calls are realized by connecting the analog phone chip directly to the telephone line, and there is only analog audio stream in this audio channel; IP mode calls are realized by connecting the sound card to the digital audio object (audio track AudioTrack and recording tool AudioRecorder) of the framework layer. There is only digital audio stream in this audio channel, and the two audio channels are independent of each other. The Bluetooth module only supports digital voice. When a Bluetooth voice device (such as a Bluetooth headset) is connected and IP mode calls are made, the Bluetooth voice device is connected to the Bluetooth module of the dual-mode phone, and the digital audio object of the framework layer is connected to the Bluetooth module to realize voice calls through the Bluetooth voice device. When calling in PSTN mode, the output of the analog phone chip is an analog audio stream, which cannot interact with the audio stream of the Bluetooth module, so it is impossible to make voice calls through the Bluetooth voice device. Summary of the invention

[0003] The embodiment of the present invention provides a method and device for a dual-mode phone to realize audio communication through a Bluetooth voice device in PSTN mode and IP mode, which solves the problem that the Bluetooth voice device accessed by the dual-mode phone cannot work in PSTN mode, and enables the Bluetooth voice device accessed by the dual-mode phone to be compatible with processing audio of both analog and digital signal sources.

[0004] The specific technical solutions are as follows: In a first aspect, an embodiment of the present invention provides a method for a dual-mode phone to implement audio communication through a Bluetooth voice device, comprising the following steps: Connect the sound card of the dual-mode phone to the analog phone chip, and define a new call mode according to the original call modes IP mode and PSTN mode of the framework layer and the connection of the Bluetooth module of the dual-mode phone to the Bluetooth voice device; wherein the new call mode includes the IP Bluetooth mode for realizing audio communication through the Bluetooth voice device in the IP mode and the PSTN Bluetooth mode for realizing audio communication through the Bluetooth voice device in the PSTN mode; Configuring an audio path for each new call mode for the audio routing module; wherein configuring an audio path for each new call mode for the audio routing module includes: An audio path is configured for the IP Bluetooth mode, and a framework layer audio object is configured to establish a connection with the Bluetooth module, the interface connecting the sound card with the analog phone chip is unavailable, and the interface connecting the sound card with the speaker and microphone of the host of the dual-mode phone is unavailable; and, An audio path is configured for the PSTN Bluetooth mode, and the connection between the sound card and the Bluetooth module is established. The interface connecting the sound card and the analog phone chip is available, and the interface connecting the sound card and the speaker and microphone of the host of the dual-mode phone is unavailable; The framework layer of the dual-mode phone sends the new call mode selected by the application layer to the audio routing module. The audio routing module searches for the audio path configured for the received new call mode, switches the audio path according to the configured audio path, and performs audio communication through the switched audio path.

[0005] Optionally, the new call mode also includes an IP mode for realizing audio communication through the voice device of a dual-mode phone in IP mode and a PSTN mode for realizing audio communication through the voice device of a dual-mode phone in PSTN mode; wherein the IP mode includes a first hands-free mode and a first handle mode; and the PSTN mode includes a second hands-free mode and a second handle mode.

[0006] Optionally, configuring the audio path for each new call mode for the audio routing module also includes: An audio path is configured for the first hands-free mode, a video object of the framework layer is connected to the sound card, an interface connecting the sound card to the speaker and microphone of the host of the dual-mode phone is available, and an interface connecting the sound card to the analog phone chip is unavailable; An audio path is configured for the first handle mode, configured as a framework layer audio object to establish a connection with the sound card, and the speaker and microphone corresponding to the dual-mode phone handle are switched to the sound card. The interface connecting the sound card to the analog phone chip is unavailable; the interface connecting the sound card to the speaker and microphone of the host of the dual-mode phone is unavailable; An audio path is configured for the second hands-free mode, and an interface connecting the sound card to the analog phone chip is available; an interface connecting the sound card to the speaker and microphone of the host of the dual-mode phone is available; Configure the audio path for the second handle mode, and switch the speaker and microphone corresponding to the dual-mode phone handle to the analog phone chip. The interface connecting the sound card to the analog phone chip is unavailable; the interface connecting the sound card to the speaker and microphone of the dual-mode phone host is unavailable.

[0007] Optionally, performing audio communication through the switched audio path includes: When the switched audio path is the audio path configured for the IP Bluetooth mode, the audio object of the framework layer outputs a digital audio stream to the Bluetooth module, and the Bluetooth module forwards the digital audio stream to the speaker of the Bluetooth voice device; the microphone corresponding to the Bluetooth voice device sends the acquired audio stream to the Bluetooth module, and the Bluetooth module sends the digital audio stream to the audio object of the framework layer.

[0008] When the switched audio path is the audio path configured for the PSTN Bluetooth mode, the analog telephone chip sends the analog audio stream to the sound card, the sound card converts the analog audio stream into digital form and sends it to the Bluetooth module, which is forwarded by the Bluetooth module to the speaker of the Bluetooth voice device; the audio acquired by the microphone of the Bluetooth voice device is forwarded by the Bluetooth module to the sound card, the sound card converts the digital audio stream into digital form and sends it to the analog telephone chip for processing.

[0009] Optionally, performing audio communication through the switched audio path includes: When the switched audio path is the audio path configured for the first hands-free mode, the framework layer audio object outputs a digital audio stream to the sound card, and the sound card forwards the digital audio stream to the host speaker connected to the sound card; the host's microphone sends the acquired audio stream to the sound card, and the sound card sends the digital audio stream to the audio object of the framework layer; When the switched audio path is the audio path configured for the first handle mode, the framework layer audio object outputs a digital audio stream to the sound card, and the sound card forwards the digital audio stream to the speaker corresponding to the dual-mode phone handle; the microphone corresponding to the dual-mode phone handle sends the acquired audio stream to the sound card, and the sound card sends the digital audio stream to the audio object of the framework layer; When the switched audio path is the audio path configured for the second hands-free mode, the analog phone chip outputs the analog audio stream to the sound card, and the sound card forwards the analog audio stream to the host speaker connected to the sound card; the host microphone sends the acquired audio stream to the sound card, and the sound card sends the audio stream to the analog phone chip; When the switched audio path is the audio path configured for the second handle mode, the analog phone chip sends an analog audio stream to the speaker corresponding to the dual-mode phone handle; the microphone corresponding to the dual-mode phone handle sends the acquired audio stream to the analog phone chip.

[0010] In a second aspect, an embodiment of the present invention further provides a device for a dual-mode phone to realize audio communication through a Bluetooth voice device, the device comprising an audio routing module, a sound card and a Bluetooth module; The audio routing module is configured with an audio path in each new call mode; the corresponding audio path is searched for according to the new call mode selected by the application layer sent by the framework layer of the dual-mode phone, and the audio path is switched according to the configuration; wherein the new call modes include an IP Bluetooth mode in which audio communication is realized through a Bluetooth voice device in IP mode, a PSTN Bluetooth mode in which audio communication is realized through a Bluetooth voice device in PSTN mode, an IP mode in which audio communication is realized through a voice device of a dual-mode phone in IP mode, and a PSTN mode in which audio communication is realized through a voice device of a dual-mode phone in PSTN mode; the IP mode includes a first hands-free mode and a first handle mode; the PSTN mode includes a second hands-free mode and a second handle mode; the audio path configured for each new call mode is: The audio path configured for the IP Bluetooth mode is to establish a connection between the framework layer audio object and the Bluetooth module, the interface connecting the sound card to the analog phone chip is unavailable, and the interface connecting the sound card to the speaker and microphone of the host of the dual-mode phone is unavailable; and, The audio path configured for the PSTN Bluetooth mode is to establish a connection between the sound card and the Bluetooth module, the interface connecting the sound card and the analog phone chip is available, and the interface connecting the sound card and the speaker and microphone of the host of the dual-mode phone is unavailable; The sound card processes the received digital audio stream or analog audio stream accordingly according to the audio path switched to by the audio routing module; wherein: When the switched audio path is the audio path configured for the PSTN Bluetooth mode, the analog audio stream from the analog phone chip of the dual-mode phone is converted into digital form and sent to the Bluetooth module; and the digital audio stream from the Bluetooth module BT is converted into digital form and sent to the analog phone chip for processing; The Bluetooth module forwards the digital audio stream from the sound card to the speaker of the Bluetooth voice device and forwards the audio acquired by the microphone of the Bluetooth voice device to the sound card; or, The digital audio stream from the framework layer audio object is forwarded to the speaker of the Bluetooth audio device; and the audio stream obtained by the microphone corresponding to the Bluetooth audio device is sent to the audio object of the framework layer.

[0011] The embodiment of the present invention provides a method and device for realizing audio communication by a dual-mode telephone through a Bluetooth voice device. The method redefines the call mode of the dual-mode telephone based on the access status of the Bluetooth voice device and configures a corresponding audio path for each new call mode in the audio routing module. The audio routing module switches the audio path according to the new call mode, thereby controlling whether the audio object connected to the Bluetooth module is an audio object of the default framework layer of the dual-mode telephone system or an analog telephone chip. The problem that the Bluetooth voice device connected to the dual-mode telephone cannot work in the PSTN mode is solved, and the Bluetooth voice device connected to the dual-mode telephone is compatible with processing audio of both analog and digital signal sources, thereby expanding the applicable scenarios of traditional dual-mode telephones, which not only improves the user experience, but more importantly, saves the user the cost of equipment replacement.

[0012] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.

[0013] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings: Figure 1 A flow chart of a method for realizing audio communication through a Bluetooth voice device by a dual-mode phone provided in an embodiment of the present invention; Figure 2 The present invention is a schematic structural diagram of a device for realizing audio communication through a Bluetooth voice device using a dual-mode telephone provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0015] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0016] like Figure 1 As shown, the embodiment of the present application provides a method for a dual-mode phone to realize audio communication through a Bluetooth voice device, the method comprising the following steps: Step S100, connect the sound card codec of the dual-mode phone to the analog phone chip, and define a new call mode according to the original call mode (IP mode and PSTN mode) of the framework layer and the Bluetooth module of the dual-mode phone connected to the Bluetooth voice device; since the analog phone chip of the traditional dual-mode phone is an analog signal and cannot perform wireless transmission of analog signals, the analog phone chip and the sound card codec are connected by a physical data line. In the embodiment of the present application, the new call mode at least includes audio communication in IP mode, audio communication in IP Bluetooth mode that realizes audio communication through Bluetooth voice equipment in IP mode, audio communication in PSTN mode, and audio communication in PSTN Bluetooth mode that realizes audio communication through Bluetooth voice equipment in PSTN mode; in some embodiments, audio communication in IP mode in the call mode includes a first hands-free mode and a first handle mode; audio communication in PSTN mode includes a second hands-free mode and a second handle mode.

[0017] Step S200: configuring an audio path in each new call mode for the audio routing module in the hardware abstraction layer HAL; wherein configuring an audio path in each new call mode for the audio routing module in the hardware abstraction layer HAL includes: The audio path is configured for the first hands-free mode. Specifically, the configuration is as follows: the default voice mode of the dual-mode telephone system is switched, that is, the framework layer video object establishes a connection with the sound card codec, the interface connecting the sound card codec with the speaker and microphone of the host of the dual-mode telephone (the connection is a physical line connection) is available, and the interface connecting the sound card codec with the analog telephone chip is unavailable; Configure the audio path for the first handle mode. Specifically, the framework layer audio object establishes a connection with the sound card codec, and switches the speaker and microphone corresponding to the dual-mode phone handle to the sound card codec. The interface connecting the sound card codec with the analog phone chip is unavailable; the interface connecting the sound card codec with the speaker and microphone of the host of the dual-mode phone is unavailable. Configure the audio path for the IP Bluetooth mode. Specifically, the configuration is to establish a connection between the framework layer audio object and the Bluetooth module BT. The interface connecting the sound card codec and the analog phone chip is unavailable; the interface connecting the sound card codec and the speaker and microphone of the host of the dual-mode phone is unavailable; The audio path is configured for the second hands-free mode, specifically, the interface connecting the sound card codec and the analog phone chip is available; the interface connecting the sound card codec and the speaker and microphone of the host of the dual-mode phone is available; Configure the audio path for the second handle mode. Specifically, the speaker and microphone corresponding to the dual-mode phone handle are switched to the analog phone chip. The interface connecting the sound card codec and the analog phone chip is unavailable. The interface connecting the sound card codec and the speaker and microphone of the dual-mode phone host is unavailable. Configure the audio path for the PSTN Bluetooth mode. Specifically, the sound card codec establishes a connection with the Bluetooth module BT. The interface connecting the sound card codec to the analog phone chip is available, and the interface connecting the sound card codec to the speaker and microphone of the host of the dual-mode phone is unavailable.

[0018] Step S300, the framework layer of the dual-mode phone sends the new call mode selected by the application layer to the hardware abstraction layer HAL, and the audio routing module in the hardware abstraction layer HAL finds the configured audio path according to the received new call mode, switches the audio path according to the configured audio path, and performs audio communication through the switched audio path.

[0019] In step S300 of the embodiment of the present application, the steps of performing audio communication through the switched audio path are specifically as follows: When the switched audio path is the audio path configured for the first hands-free mode, the framework layer audio object outputs a digital audio stream (VoIP digital audio stream) to the sound card, and the sound card forwards the digital audio stream to the host speaker connected to the sound card; correspondingly, the host's microphone sends the acquired audio stream to the sound card, and the sound card sends the digital audio stream to the audio object of the framework layer.

[0020] When the switched audio path is the audio path configured for the first handle mode, the framework layer audio object outputs the digital audio stream to the sound card, and the sound card forwards the digital audio stream to the speaker corresponding to the dual-mode phone handle; correspondingly, the microphone corresponding to the dual-mode phone handle sends the acquired audio stream to the sound card, and the sound card sends the digital audio stream to the audio object of the framework layer.

[0021] When the switched audio path is configured for the IP Bluetooth mode, the framework layer audio object outputs a digital audio stream to the Bluetooth module BT, and the Bluetooth module forwards the digital audio stream to the speaker of the Bluetooth voice device; correspondingly, the microphone corresponding to the Bluetooth voice device sends the acquired audio stream to the Bluetooth module BT, and the Bluetooth module BT sends the digital audio stream to the audio object of the framework layer.

[0022] When the switched audio path is the audio path configured for the second hands-free mode, the analog phone chip outputs an analog audio stream to the sound card, and the sound card forwards the analog audio stream to the host speaker connected to the sound card; correspondingly, the host's microphone sends the acquired audio stream to the sound card, and the sound card sends the audio stream to the analog phone chip.

[0023] When the switched audio path is the audio path configured for the second handle mode, the analog phone chip sends the analog audio stream to the speaker corresponding to the dual-mode phone handle; correspondingly, the microphone corresponding to the dual-mode phone handle sends the acquired audio stream to the analog phone chip.

[0024] When the switched audio path is configured for the PSTN Bluetooth mode, the analog phone chip sends the analog audio stream to the sound card codec, the sound card codec performs analog-to-digital conversion on the analog audio stream and sends it to the Bluetooth module BT, which is forwarded by the Bluetooth module BT to the speaker of the Bluetooth voice device; correspondingly, the audio obtained by the microphone of the Bluetooth voice device is forwarded by the Bluetooth module BT to the sound card codec, the sound card codec performs digital-to-analog conversion on the digital audio stream and sends it to the analog phone chip for processing.

[0025] The embodiment of the present application redefines the call mode of the dual-mode phone based on the access status of the Bluetooth voice device and configures the corresponding audio path for each new call mode in the audio routing module. The audio routing module switches the audio path according to the new call mode, thereby controlling whether the audio object connected to the Bluetooth module is the audio object of the default framework layer of the dual-mode phone system or the analog phone chip, thereby realizing free switching of the Bluetooth voice stream between two channel audio streams (digital audio stream and analog audio stream), solving the problem that the Bluetooth voice device connected to the dual-mode phone cannot work in the PSTN mode, and making the Bluetooth voice device connected to the dual-mode phone compatible with processing audio of both analog and digital signal sources, expanding the applicable scenarios of traditional dual-mode phones, not only improving the user experience, but more importantly saving the cost of equipment replacement for users.

[0026] Bluetooth voice devices have delays, and the IP phone itself may also introduce delays due to network conditions, especially in PSTN Bluetooth mode, which requires conversion between analog and digital. When the delay accumulates too much, it will not only lead to a decline in call experience, but more importantly, for call applications with high requirements for real-time interaction, in some embodiments of the present application, in order to solve the delay problem, a low-latency Bluetooth protocol (Bluetooth Low Energy Audio) is applied. Except for the second hands-free mode and the second handle mode, IP calls in other modes use a high compression ratio codec algorithm (SBC) to reduce the delay of audio transmission; at the hardware level, a Bluetooth module that supports faster processing capabilities is used to reduce delays, and communication between PSTN voice and Bluetooth voice devices is achieved with a smaller delay (20ms), so that there is no obvious delay in audio communication in IP Bluetooth mode and PSTN Bluetooth mode.

[0027] and Figure 1 Corresponding to the embodiment, the embodiment of the present application also provides a device for a dual-mode phone to realize audio communication through a Bluetooth voice device, such as Figure 2 As shown in the figure, the solid lines represent the physical connection between modules, and the dotted lines represent the wireless network connection between modules, including the audio routing module (on HAL), the sound card codec and the Bluetooth module BT; The audio routing module is configured with an audio path in each new call mode; the audio path configured for the received new call mode is searched according to the new call mode selected by the application layer sent by the framework layer of the dual-mode phone, and the audio path is switched according to the configuration; wherein the new call modes include an IP Bluetooth mode in which audio communication is realized through a Bluetooth voice device in IP mode, a PSTN Bluetooth mode in which audio communication is realized through a Bluetooth voice device in PSTN mode, an IP mode in which audio communication is realized through a voice device of a dual-mode phone in IP mode, and a PSTN mode in which audio communication is realized through a voice device of a dual-mode phone in PSTN mode; the IP mode includes a first hands-free mode and a first handle mode; the PSTN mode includes a second hands-free mode and a second handle mode; the audio path configured for each new call mode is: The audio path configured for the first hands-free mode is switched to the default voice mode of the dual-mode telephone system, that is, the framework layer frequency object establishes a connection with the sound card codec, the interface connecting the sound card codec with the speaker and microphone of the host of the dual-mode telephone (the connection is a physical line connection) is available, and the interface connecting the sound card codec with the analog telephone chip is unavailable; the original interface connecting the analog telephone chip to the speaker and microphone corresponding to the dual-mode telephone handle is unavailable; The audio path configured for the first handle mode establishes a connection between the framework layer audio object and the sound card codec, and switches the speaker and microphone corresponding to the dual-mode phone handle to the sound card codec. The interface connecting the sound card codec to the analog phone chip is unavailable; the interface connecting the sound card codec to the speaker and microphone of the dual-mode phone host is unavailable; the interface connecting the original analog phone chip to the speaker and microphone corresponding to the dual-mode phone handle is unavailable; The audio path configured for IP Bluetooth mode is to establish a connection between the framework layer audio object and the PCM interface of the Bluetooth module BT. The interface connecting the sound card codec and the analog phone chip is unavailable; the interface connecting the sound card codec and the speaker and microphone of the host of the dual-mode phone is unavailable; the interface connecting the original analog phone chip to the speaker and microphone corresponding to the dual-mode phone handle is unavailable; The audio path configured for the second hands-free mode is that the interface connecting the sound card codec and the analog phone chip is available; the interface connecting the sound card codec and the speaker and microphone of the host of the dual-mode phone is available; the interface connecting the original analog phone chip to the speaker and microphone corresponding to the dual-mode phone handle is unavailable; The audio path configured for the second handle mode is to switch the speaker and microphone corresponding to the dual-mode phone handle to the analog phone chip, and the interface connecting the sound card codec with the analog phone chip is unavailable; the interface connecting the sound card codec with the speaker and microphone of the dual-mode phone host is unavailable; The audio path configured for the PSTN Bluetooth mode is to establish a connection between the sound card codec and the Bluetooth module BT. The interface connecting the sound card codec and the analog phone chip is available, but the interface connecting the sound card codec and the speaker and microphone of the dual-mode phone host is unavailable; the speaker and microphone interfaces corresponding to the dual-mode phone handle originally connected to the analog phone chip are unavailable; The sound card codec is connected to the host speaker and microphone of the dual-mode phone and the analog phone chip through a physical solid line; according to the audio path switched to by the audio routing module, the received digital audio stream or analog audio stream is processed accordingly; wherein: When the switched audio path is the audio path configured for the first hands-free mode, the digital audio stream from the audio object of the dual-mode phone framework layer is forwarded to the host speaker connected thereto; and the digital audio stream from the host microphone is sent to the audio object of the framework layer; When the audio path switched to is the audio path configured for the first handle mode, the digital audio stream from the audio object of the framework layer is forwarded to the speaker corresponding to the dual-mode phone handle; and the digital audio stream from the microphone corresponding to the dual-mode phone handle is sent to the audio object of the framework layer; When the audio channel switched to is the audio channel configured for IP Bluetooth mode, the interfaces of the sound card are unavailable, and this audio channel does not include the sound card; When the audio path switched to is the audio path configured for the second hands-free mode, the analog audio stream from the analog phone chip is forwarded to the host speaker connected thereto; and the audio stream from the host's microphone is sent to the analog phone chip for processing.

[0028] When the audio path switched to is the audio path configured for the second handle mode, the analog audio stream from the analog phone chip is forwarded to the speaker corresponding to the dual-mode phone handle; and the microphone audio stream from the dual-mode phone handle is sent to the analog phone chip.

[0029] When the switched audio channel is the audio channel configured for the PSTN Bluetooth mode, the analog audio stream from the analog phone chip of the dual-mode phone is converted into digital form and sent to the Bluetooth module BT; and the digital audio stream from the Bluetooth module BT is converted into digital form and sent to the analog phone chip for processing; The Bluetooth module BT forwards the digital audio stream from the sound card codec to the speaker of the Bluetooth voice device and forwards the audio obtained by the microphone of the Bluetooth voice device to the sound card codec; or, The digital audio stream from the framework layer audio object is forwarded to the speaker of the Bluetooth audio device; and the audio stream obtained by the microphone corresponding to the Bluetooth audio device is sent to the audio object of the framework layer.

[0030] The device provided in the embodiment of the present application redefines the call mode of the dual-mode phone based on the access status of the Bluetooth voice device and configures the corresponding audio path for each new call mode in the audio routing module. The audio routing module switches the audio path according to the new call mode, thereby controlling whether the audio object connected to the Bluetooth module is the audio object of the default framework layer of the dual-mode phone system or the analog phone chip, thereby realizing free switching of the Bluetooth voice stream between two channel audio streams (digital audio stream and analog audio stream), solving the problem that the Bluetooth voice device connected to the dual-mode phone cannot work in the PSTN mode, and making the Bluetooth voice device connected to the dual-mode phone compatible with processing audio of both analog and digital signal sources, expanding the applicable scenarios of traditional dual-mode phones, not only improving the user experience, but more importantly saving the user the cost of equipment replacement.

[0031] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for realizing audio communication by a dual-mode telephone through a Bluetooth voice device, characterized in that: The following steps are involved: Connect the sound card of the dual-mode phone to the analog phone chip, and define a new call mode according to the original call modes IP mode and PSTN mode of the framework layer and the connection of the Bluetooth module of the dual-mode phone to the Bluetooth voice device; wherein the new call mode includes the IP Bluetooth mode for realizing audio communication through the Bluetooth voice device in the IP mode and the PSTN Bluetooth mode for realizing audio communication through the Bluetooth voice device in the PSTN mode; Configuring an audio path for each new call mode for the audio routing module; wherein configuring an audio path for each new call mode for the audio routing module includes: An audio path is configured for the IP Bluetooth mode, and a framework layer audio object is configured to establish a connection with the Bluetooth module, the interface connecting the sound card with the analog phone chip is unavailable, and the interface connecting the sound card with the speaker and microphone of the host of the dual-mode phone is unavailable; and, An audio path is configured for the PSTN Bluetooth mode, and the connection between the sound card and the Bluetooth module is established. The interface connecting the sound card and the analog phone chip is available, and the interface connecting the sound card and the speaker and microphone of the host of the dual-mode phone is unavailable; The framework layer of the dual-mode phone sends the new call mode selected by the application layer to the audio routing module. The audio routing module searches for the audio path configured for the received new call mode, switches the audio path according to the configured audio path, and performs audio communication through the switched audio path.

2. The method according to claim 1, characterized in that The new call mode also includes an IP mode for realizing audio communication through the voice device of a dual-mode phone in IP mode and a PSTN mode for realizing audio communication through the voice device of a dual-mode phone in PSTN mode; wherein the IP mode includes a first hands-free mode and a first handle mode; and the PSTN mode includes a second hands-free mode and a second handle mode.

3. The method according to claim 2, characterized in that Configuring the audio path for each new call mode for the audio routing module also includes: An audio path is configured for the first hands-free mode, a video object of the framework layer is connected to the sound card, an interface connecting the sound card to the speaker and microphone of the host of the dual-mode phone is available, and an interface connecting the sound card to the analog phone chip is unavailable; An audio path is configured for the first handle mode, configured as a framework layer audio object to establish a connection with the sound card, and the speaker and microphone corresponding to the dual-mode phone handle are switched to the sound card. The interface connecting the sound card to the analog phone chip is unavailable; the interface connecting the sound card to the speaker and microphone of the host of the dual-mode phone is unavailable; An audio path is configured for the second hands-free mode, and an interface connecting the sound card to the analog phone chip is available; an interface connecting the sound card to the speaker and microphone of the host of the dual-mode phone is available; Configure the audio path for the second handle mode, and switch the speaker and microphone corresponding to the dual-mode phone handle to the analog phone chip. The interface connecting the sound card to the analog phone chip is unavailable; the interface connecting the sound card to the speaker and microphone of the dual-mode phone host is unavailable.

4. The method according to claim 1, characterized in that: The audio communication is performed through the switched audio path, including: When the switched audio path is an audio path configured for the IP Bluetooth mode, the audio object of the framework layer outputs a digital audio stream to the Bluetooth module, and the Bluetooth module forwards the digital audio stream to the speaker of the Bluetooth voice device; the microphone corresponding to the Bluetooth voice device sends the acquired audio stream to the Bluetooth module, and the Bluetooth module sends the digital audio stream to the audio object of the framework layer; When the switched audio path is the audio path configured for the PSTN Bluetooth mode, the analog telephone chip sends the analog audio stream to the sound card, the sound card converts the analog audio stream into digital form and sends it to the Bluetooth module, which is forwarded by the Bluetooth module to the speaker of the Bluetooth voice device; the audio acquired by the microphone of the Bluetooth voice device is forwarded by the Bluetooth module to the sound card, the sound card converts the digital audio stream into digital form and sends it to the analog telephone chip for processing.

5. The method according to claim 3, characterized in that: The audio communication is performed through the switched audio path, including: When the switched audio path is the audio path configured for the first hands-free mode, the framework layer audio object outputs a digital audio stream to the sound card, and the sound card forwards the digital audio stream to the host speaker connected to the sound card; the host's microphone sends the acquired audio stream to the sound card, and the sound card sends the digital audio stream to the audio object of the framework layer; When the switched audio path is the audio path configured for the first handle mode, the framework layer audio object outputs a digital audio stream to the sound card, and the sound card forwards the digital audio stream to the speaker corresponding to the dual-mode phone handle; the microphone corresponding to the dual-mode phone handle sends the acquired audio stream to the sound card, and the sound card sends the digital audio stream to the audio object of the framework layer; When the switched audio path is the audio path configured for the second hands-free mode, the analog phone chip outputs the analog audio stream to the sound card, and the sound card forwards the analog audio stream to the host speaker connected to the sound card; the host microphone sends the acquired audio stream to the sound card, and the sound card sends the audio stream to the analog phone chip; When the switched audio path is the audio path configured for the second handle mode, the analog phone chip sends an analog audio stream to the speaker corresponding to the dual-mode phone handle; the microphone corresponding to the dual-mode phone handle sends the acquired audio stream to the analog phone chip.

6. A device for realizing audio communication of a dual-mode telephone through a Bluetooth voice device, characterized in that: Including audio routing module, sound card and Bluetooth module; The audio routing module is configured with an audio path in each new call mode; the corresponding audio path is searched for according to the new call mode selected by the application layer sent by the framework layer of the dual-mode phone, and the audio path is switched according to the configuration; wherein the new call modes include an IP Bluetooth mode in which audio communication is realized through a Bluetooth voice device in IP mode, a PSTN Bluetooth mode in which audio communication is realized through a Bluetooth voice device in PSTN mode, an IP mode in which audio communication is realized through a voice device of a dual-mode phone in IP mode, and a PSTN mode in which audio communication is realized through a voice device of a dual-mode phone in PSTN mode; the IP mode includes a first hands-free mode and a first handle mode; the PSTN mode includes a second hands-free mode and a second handle mode; the audio path configured for each new call mode is: The audio path configured for the IP Bluetooth mode is to establish a connection between the framework layer audio object and the Bluetooth module, the interface connecting the sound card to the analog phone chip is unavailable, and the interface connecting the sound card to the speaker and microphone of the host of the dual-mode phone is unavailable; and, The audio path configured for the PSTN Bluetooth mode is to establish a connection between the sound card and the Bluetooth module, the interface connecting the sound card and the analog phone chip is available, and the interface connecting the sound card and the speaker and microphone of the host of the dual-mode phone is unavailable; The sound card processes the received digital audio stream or analog audio stream accordingly according to the audio path switched to by the audio routing module; wherein: When the switched audio path is the audio path configured for the PSTN Bluetooth mode, the analog audio stream from the analog phone chip of the dual-mode phone is converted into digital form and sent to the Bluetooth module; and the digital audio stream from the Bluetooth module BT is converted into digital form and sent to the analog phone chip for processing; The Bluetooth module forwards the digital audio stream from the sound card to the speaker of the Bluetooth voice device and forwards the audio acquired by the microphone of the Bluetooth voice device to the sound card; or, The digital audio stream from the framework layer audio object is forwarded to the speaker of the Bluetooth audio device; and the audio stream obtained by the microphone corresponding to the Bluetooth audio device is sent to the audio object of the framework layer.

Citation Information

Patent Citations

  • Bluetooth phone gateway device and communication method

    CN101106614A

  • Dual-mode mobile phone for three-network fusion system based on internet and telephone network

    CN102006679A

  • Comprehensive accessing device for isomerized network environment and method for realizing same

    CN1744551A

  • Integrated communication device

    JP3134043U

  • Wireless communication method based on bluetooth andsystem therefor

    KR1020010099205A