WO2017202024A1 - 一种通话模式切换的方法及移动终端 - Google Patents

一种通话模式切换的方法及移动终端 Download PDF

Info

Publication number
WO2017202024A1
WO2017202024A1 PCT/CN2017/000053 CN2017000053W WO2017202024A1 WO 2017202024 A1 WO2017202024 A1 WO 2017202024A1 CN 2017000053 W CN2017000053 W CN 2017000053W WO 2017202024 A1 WO2017202024 A1 WO 2017202024A1
Authority
WO
WIPO (PCT)
Prior art keywords
call mode
mobile terminal
audio data
call
preset
Prior art date
Application number
PCT/CN2017/000053
Other languages
English (en)
French (fr)
Inventor
邓超
王琪琳
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017202024A1 publication Critical patent/WO2017202024A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events

Definitions

  • the present invention relates to the field of communications, and in particular, to a method for switching a call mode and a mobile terminal.
  • Bluetooth car device can not automatically switch to the phone to answer, call outside the car or Answer the call and there is no sound on the phone.
  • the first reaction was that the cell phone signal was not good. When it was discovered that the Bluetooth device was talking, it missed a lot of calls or was hung up. If you are still on the phone, how to automatically switch to the car Bluetooth device after you get on the phone, how to ensure the error rate of the call during the handover process, and ensure that the call content is not lost.
  • the existing in-vehicle device call mode switching scheme it is determined by the proximity sensor and the camera that the first driving position is a valid object and is a person, and the mobile phone is used for answering. In other cases, the Bluetooth answering is used, and the in-vehicle personnel are processed.
  • the method used to make the call does not handle the automatic switching between the Bluetooth device and the terminal.
  • the existing solution is a scheme when the mobile phone calls or calls, only considers the Bluetooth to terminal switching, does not consider the terminal to Bluetooth switching, and does not consider the automatic switching of Bluetooth and mobile phone during the call. At the same time, because the mobile phone is close to the human ear, it is a very fast process.
  • the approach of the proximity sensor and the image recognition of the camera to determine the effective object is very difficult and cannot be realized.
  • the embodiments of the present invention provide a method for switching a call mode and a mobile terminal, so as to overcome the problem that the free handover of the call mode is difficult in the prior art.
  • the embodiment of the present invention adopts the following technical solutions:
  • an embodiment of the present invention provides a method for switching a call mode, including:
  • the preset condition further includes:
  • the mobile terminal does not successfully collect valid audio data in the second preset time in the first call mode.
  • the method before the enabling the second call mode for playing and collecting the audio data, the method further includes:
  • the step of enabling the second call mode for playing and collecting audio data is performed.
  • the step of enabling the second call mode to play and collect audio data when detecting that the distance between the mobile terminal and the object in the first call mode is within a preset distance range includes:
  • the audio data to be played is sent to the first audio playback device corresponding to the first call mode and the second call mode corresponding to A second audio playback device.
  • the method further includes:
  • the first call mode is a Bluetooth call mode
  • the second call mode is a microphone-handset call mode
  • the second call mode is a Bluetooth call mode
  • the first call mode is a microphone-handset call mode.
  • an embodiment of the present invention further provides a mobile terminal, including:
  • a call mode enabling module configured to enable the second call mode to play and collect audio data when detecting that the distance between the mobile terminal in the first call mode and the object is within a preset distance range
  • the call mode closing module is configured to determine whether the audio collection state of the mobile terminal meets a preset condition, and when the preset condition is met, the first call mode is closed, where the preset condition includes at least: In the first preset time in the second call mode, the mobile terminal successfully collects valid audio data.
  • the preset condition further includes:
  • the mobile terminal does not successfully collect valid audio data in the second preset time in the first call mode.
  • the mobile terminal further includes:
  • the determining module is configured to perform the step of enabling the second call mode to play and collect the audio data when the object that is within the preset distance range from the mobile terminal is determined to be a valid object.
  • the call mode enabling module is further configured to:
  • the audio data to be played is sent to the first audio playback device corresponding to the first call mode and the second call mode corresponding to A second audio playback device.
  • the mobile terminal further includes:
  • a data buffering module configured to cache audio data to be played in the first call mode, to obtain cached data
  • the cache data processing module is configured to insert the cached data into a corresponding audio data buffer queue of the second call mode, and play by using the second call mode.
  • the first call mode is a Bluetooth call mode
  • the second call mode is a microphone-handset call mode
  • the second call mode is a Bluetooth call mode
  • the first call mode is a microphone-handset call mode.
  • a storage medium is also provided.
  • the storage medium is arranged to store program code for performing the following steps:
  • the second call mode When detecting that the distance between the mobile terminal and the object in the first call mode is within a preset distance range, enabling the second call mode to play and collect the audio data; determining whether the audio collection state of the mobile terminal meets the preset condition And the first call mode is closed when the preset condition is met, the preset condition at least: the mobile terminal successfully acquires the first preset time in the second call mode. Effective audio data.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the method further includes: when the object that is within a preset distance range from the mobile terminal is determined to be a valid object, performing the second call is enabled The mode performs the steps of playing and collecting audio data.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the audio data to be played is sent to the first audio playback device corresponding to the first call mode and the second call mode corresponding to A second audio playback device.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the audio data to be played in the first call mode is buffered to obtain cached data
  • the second call mode is enabled for audio data collection and Play, comprehensive judgment, play in two modes,
  • the collected audio data finally determines whether the first call mode is switched to the second call mode for the call service, and the silent problem that the call is still used outside the effective working range of the call mode is completed, and the mobile terminal is in different call modes.
  • FIG. 1 is a flow chart showing a method for switching a call mode in a first embodiment of the present invention
  • FIG. 2 is a schematic block diagram 1 of a mobile terminal in a second embodiment of the present invention.
  • FIG. 3 is a schematic block diagram 2 of a mobile terminal in a second embodiment of the present invention.
  • an embodiment of the present invention discloses a method for switching a call mode, including:
  • Step 101 When detecting that the distance between the mobile terminal in the first call mode and the object is within a preset distance range, enable the second call mode to play and collect the audio data.
  • the mobile terminal can be configured with multiple call modes, such as playing and collecting audio data that needs to be transmitted during the call directly through the handset and the microphone of the mobile phone, or using the external device connected to the mobile phone to perform audio data during the call. Play and collect.
  • the mobile terminal In this step, it is necessary to detect the change in the distance between the mobile terminal and the external object, and check When it is detected that the distance between the object and the mobile terminal is within the preset distance range, the mobile terminal simultaneously uses two call modes to play and collect the audio data, and generates two data streams for audio collection and playback on the mobile terminal.
  • the object In the range of the preset distance, the object may be close to the mobile terminal, and the two are in a relatively close distance range, or may be located away from the mobile terminal, and the two are in a far distance range. Specifically, it is judged whether the distance between the object and the mobile phone is close or far, and the judgment can be made by using the proximity sensor.
  • Step 102 Determine whether the audio collection state of the mobile terminal meets a preset condition, and when the preset condition is met, turn off the first call mode.
  • the preset condition at least includes: the mobile terminal successfully collecting valid audio data in a first preset time in the second call mode.
  • the final handover from the first call mode to the second call mode on the mobile terminal is implemented, and it is also required to determine whether the mobile terminal collects valid audio data through the new call mode.
  • the final call mode switching can be completed at this time, the newly opened call mode is retained, and the original call mode is turned off.
  • the second call mode is enabled for audio data collection and Play, comprehensively judge the audio data played and collected in the two modes, and finally decide whether to switch from the first call mode to the second call mode to perform the call service, and solve the problem that the call mode is still used outside the effective working range of the call mode. Silent problem, complete the reasonable free switching of the mobile terminal between different call modes.
  • the first call mode is a Bluetooth call mode
  • the second call mode is a microphone-handset call mode
  • the second call mode is a Bluetooth call mode
  • the first call mode is a microphone-handset call mode. That is, the mobile terminal specifically switches between the Bluetooth call mode and the microphone-handset call mode.
  • the mobile terminal takes the mobile phone as an example.
  • the application processor of the mobile phone can determine whether the mobile phone is in the Bluetooth call mode through the application interface.
  • the application processor can determine whether the mobile phone is close to an object through the proximity sensor of the mobile phone. If the mobile phone is close to an object, it indicates that the mobile phone user may need to make a call in the microphone-handset call mode of the mobile phone.
  • the application processor notifies the baseband processor to simultaneously enable the microphone and the handset of the mobile phone to play and collect the audio data, and the application processor simultaneously transmits the audio data transmitted by the base party from the baseband processor to the handset and the Bluetooth, and At the same time, the mobile audio data of the mobile phone user is obtained from the mobile phone microphone and the bluetooth, which is equivalent to a copy of the data, so that the two data streams work.
  • the application processor can determine whether the mobile phone is far away from an object through the proximity sensor of the mobile phone. If the mobile phone is far away from an object, it indicates that the mobile phone user may generate the Bluetooth call mode of the mobile phone. The need for the call, the subsequent processing and the principle are the same as the previous call mode switching, and will not be described again.
  • the microphone of the mobile phone receives and obtains the audio data, and obtains a valid audio data through the mobile phone microphone. Then we judge that the user wants the mobile phone to switch to the handset and the microphone of the mobile phone to work, then we switch to the mobile phone side.
  • the microphone-handset mode operates to notify the baseband processor to turn off the reception and transmission of Bluetooth, and the application processor completes the logical switching of the call mode on the application side.
  • the mobile phone is in the microphone-handset call mode, the corresponding switching process and principle are the same, and will not be described here.
  • the effective audio data may specifically refer to sampling and analyzing the obtained audio data obtained by the microphone of the mobile phone within a certain period of time, and obtaining the sound frequency and the error rate of the audio data, if the sound frequency and the error rate of the audio data satisfy the preset. If the condition is met, the audio data can be considered as valid audio data.
  • the Bluetooth call mode is enabled for playing and collecting audio data, specifically corresponding to opening the Bluetooth call mode.
  • the external playing device and the audio collecting device are implemented, and the application processor simultaneously judges the data received and received from the microphone-handset and the Bluetooth side of the mobile phone, and considers the mobile phone through the Bluetooth calling mode in the first preset time in the Bluetooth calling mode.
  • the corresponding external audio collection device successfully collects valid audio data, it also needs to meet the second preset time in the microphone-handset call mode, and the microphone of the mobile phone does not successfully collect valid audio data, and the user can be judged at this time.
  • the above solution makes a comprehensive decision to obtain an object closer to or away from the mobile terminal, and comprehensively compares the microphone-handset and Bluetooth playing and collecting data of the mobile phone.
  • After collecting valid audio data switch to the target call mode and close another call mode; complete the mobile phone's sensor, baseband processor, application processor, combined with the phone microphone and handset data, and the Bluetooth side data, complete
  • the reasonable free switching between the Bluetooth and the handset microphone itself solves the problem that the Bluetooth device can be in the call range, but the Bluetooth device can still use the Bluetooth device to cause the call to be silent, and the Bluetooth device can be in the call range.
  • the handset of the handset can be out of range, but still use the handset to answer the silent problem.
  • the step of determining whether the audio collection state of the mobile terminal meets a preset condition includes:
  • the audio data is collected, and when the detection result is YES, it is determined whether the audio data collected by the mobile terminal is valid audio data.
  • the determining manner of the valid audio data may be specifically determining whether the sound size, frequency, and the like of the obtained audio data reach a preset standard, or determining the integrity of the audio data after sampling and analyzing the obtained audio data. Whether the continuity reaches the preset standard.
  • the method further includes: when the object that is within a preset distance range from the mobile terminal is determined to be a valid object, performing the second activation The call mode performs the steps of playing and collecting audio data.
  • the object that determines that the distance from the mobile terminal is within a preset distance range is an effective object, for example, may be a mobile terminal equipped with a thermal sensor, and whether the object is a human face and an ear or other temperature-free by temperature collection of the thermal sensor The object can effectively distinguish the validity of the object whose distance from the mobile terminal is within a preset distance range, so that the process of the call mode switching is more accurate.
  • the step of enabling the second call mode to play and collect the audio data includes:
  • the audio data to be played is sent to the first audio playback device corresponding to the first call mode and the second call mode corresponding to A second audio playback device.
  • the audio sent by the mobile phone is played by an audio playing device that is connected to the mobile phone by Bluetooth.
  • the audio playing device is, for example, a Bluetooth earphone, a bluetooth speaker, a car Bluetooth calling device, etc.; when the distance between the mobile phone and an object is detected, When the range is set, the audio data transmitted by the call object is simultaneously transmitted to the handset of the mobile phone and the device connected to the Bluetooth of the mobile phone for playing; when it is detected that the mobile phone microphone obtains valid audio within a preset time period, the Bluetooth call mode is switched to In the microphone-handset call mode, the Bluetooth call mode is turned off; conversely, the process of switching from the microphone-handset call mode to the Bluetooth call mode is the same, and will not be described again.
  • the method further includes:
  • the embodiment of the present invention discloses a mobile terminal, and the mobile terminal corresponds to a method for switching a call mode in the first embodiment.
  • the mobile terminal includes a call mode enabling module 201 and a call mode closing module 202.
  • the call mode enabling module 201 is configured to enable the second call mode to play and collect audio data when the distance between the mobile terminal in the first call mode and the object is detected to be within a preset distance range.
  • the call mode closing module 202 is configured to determine whether the audio collection state of the mobile terminal meets a preset condition, and close the first call mode when the preset condition is met.
  • the preset condition at least includes: the mobile terminal successfully collecting valid audio data in a first preset time in the second call mode.
  • the preset condition further includes: the mobile terminal does not successfully collect valid audio data in the second preset time in the first call mode.
  • the mobile terminal further includes: a determining module 203.
  • the determining module 203 is configured to perform the step of enabling the second call mode to play and collect the audio data when the object that is within the preset distance range from the mobile terminal is determined to be a valid object.
  • the call mode enabling module 201 is further configured to: when detecting that the distance between the mobile terminal in the first call mode and the object is within a preset distance range, send the audio data to be played to the first call mode. Corresponding first audio playback device and second audio playback device corresponding to the second call mode.
  • the first call mode is a Bluetooth call mode
  • the second call mode is a microphone-handset call mode
  • the second call mode is a Bluetooth call mode
  • the first call mode is a microphone-handset Call mode
  • the mobile terminal further includes: a data cache module 204 and a cache data processing module 205.
  • the data cache module 204 is configured to buffer the audio data to be played in the first call mode to obtain cached data.
  • the cache data processing module 205 is configured to insert the cached data into a corresponding audio data buffer queue of the second call mode, and play by using the second call mode.
  • the mobile terminal provided in this embodiment enables the second call mode when the mobile terminal is in a first call mode, when answering a call, or during a call, determining that the mobile terminal is close to or away from an object.
  • Audio data collection and playback comprehensively judge the audio data played and collected in the two modes, and finally decide whether to switch from the first call mode to the second call mode for call service, and solve the problem that the call mode is outside the effective working range.
  • This mode performs the silent problem of the call, completes the reasonable free switching between the different call modes of the mobile terminal, and proposes a caching mechanism for the audio loss in the first call mode for the data loss problem that may exist during the call mode switching process.
  • the data is partially buffered. After switching to the target call mode, the cached data is inserted into the front end of the play queue of the audio data in the target call mode to better ensure the integrity of the call content.
  • the first The second call mode performs audio data collection and playback, comprehensively judges the audio data played and collected in the two modes, and finally determines whether to switch from the first call mode to the second call mode to perform the call service, and solve the problem that the call mode works effectively.
  • the silent problem of the call is still used outside the range, and the mobile terminal can perform reasonable free switching between different call modes.

Abstract

本发明提供了一种通话模式切换的方法及移动终端,该方法包括:检测到处于第一通话模式的移动终端与物体之间的距离处于预设距离范围时,启用第二通话模式进行音频数据的播放和采集;判断所述移动终端的音频采集状态是否满足预设条件,并在满足所述预设条件时,关闭所述第一通话模式,所述预设条件至少包括:在所述第二通话模式下的第一预设时间内,所述移动终端成功采集得到有效音频数据。该方案实现移动终端在不同通话模式之间的合理自由切换。

Description

一种通话模式切换的方法及移动终端 技术领域
本发明涉及通信领域,尤其涉及一种通话模式切换的方法及移动终端。
背景技术
在车上蓝牙车载设备通话中,临时停车下来,拿起手机放到耳边,然后下车,在车外主叫或者被叫,蓝牙车载设备不能自动切换到手机接听,在车外进行呼叫或者接听来电,手机没有声音。第一反应是手机信号不好,等发现是蓝牙设备通话的时候,错过了很多通话内容或者被挂断了。如果还在通话,上车之后放下手机如何自动切换到车载蓝牙设备接听,切换的过程中如何保证通话的误码率,保证通话内容不丢失的问题需要解决。
已有的车载设备通话模式切换方案中,采用的是通过接近传感器和摄像头判断检测第一驾驶位是有效物体且是人,就使用手机接听,其他情况使用蓝牙接听,处理的是是车内人员使用何种方式进行通话,并没有处理蓝牙设备和终端之间的自动切换。且现有方案是在手机来电或者主叫的时候的方案,只考虑了蓝牙到终端的切换,没有考虑终端到蓝牙的切换,也没有考虑在通话过程中蓝牙和手机的自动切换。同时由于手机靠近人耳是一个非常快速的过程,接近传感器配合摄像头的图像识别判断有效物体的方法存在非常高的难度,基本无法实现。
发明内容
为了克服上述问题,本发明实施例提供一种通话模式切换的方法及移动终端,以克服现有技术中实现通话模式的自由切换难度高的问题。
为了解决上述技术问题,本发明实施例采用如下技术方案:
一方面,本发明实施例提供一种通话模式切换的方法,包括:
检测到处于第一通话模式的移动终端与物体之间的距离处于预设距离范围时,启用第二通话模式进行音频数据的播放和采集;
判断所述移动终端的音频采集状态是否满足预设条件,并在满足所述预设条件时,关闭所述第一通话模式,所述预设条件至少包括:在所述第二通话模式下的第一预设时间内,所述移动终端成功采集得到有效音频数据。
可选地,所述预设条件还包括:
在所述第一通话模式下的第二预设时间内,所述移动终端没有成功采集到有效音频数据。
可选地,所述启用第二通话模式进行音频数据的播放和采集之前,所述方法还包括:
当判断与所述移动终端的距离处于预设距离范围的所述物体为有效物体时,执行启用第二通话模式进行音频数据的播放和采集的步骤。
可选地,所述检测到处于第一通话模式的移动终端与物体之间的距离处于预设距离范围时,启用第二通话模式进行音频数据的播放和采集的步骤,包括:
当检测到处于第一通话模式的移动终端与物体之间的距离处于预设距离范围时,将待播放的音频数据发送至第一通话模式对应的第一音频播放装置及第二通话模式对应的第二音频播放装置。
可选地,在所述判断所述移动终端的音频采集状态是否满足预设条件时,所述方法还包括:
对所述第一通话模式待播放的音频数据进行缓存,得到缓存数据;
将所述缓存数据插入至所述第二通话模式的对应音频数据缓存队列,通过所述第二通话模式进行播放。
可选地,所述第一通话模式为蓝牙通话模式,所述第二通话模式为麦克-听筒通话模式;或者
所述第二通话模式为蓝牙通话模式,所述第一通话模式为麦克-听筒通话模式。
另一方面,本发明实施例还提供一种移动终端,包括:
通话模式启用模块,设置为检测到处于第一通话模式的移动终端与物体之间的距离处于预设距离范围时,启用第二通话模式进行音频数据的播放和采集;
通话模式关闭模块,设置为判断所述移动终端的音频采集状态是否满足预设条件,并在满足所述预设条件时,关闭所述第一通话模式,所述预设条件至少包括:在所述第二通话模式下的第一预设时间内,所述移动终端成功采集得到有效音频数据。
可选地,所述预设条件还包括:
在所述第一通话模式下的第二预设时间内,所述移动终端没有成功采集到有效音频数据。
可选地,所述移动终端还包括:
判断模块,设置为当判断与所述移动终端的距离处于预设距离范围的所述物体为有效物体时,执行启用第二通话模式进行音频数据的播放和采集的步骤。
可选地,所述通话模式启用模块,还设置为:
当检测到处于第一通话模式的移动终端与物体之间的距离处于预设距离范围时,将待播放的音频数据发送至第一通话模式对应的第一音频播放装置及第二通话模式对应的第二音频播放装置。
可选地,所述移动终端还包括:
数据缓存模块,设置为对所述第一通话模式待播放的音频数据进行缓存,得到缓存数据;
缓存数据处理模块,设置为将所述缓存数据插入至所述第二通话模式的对应音频数据缓存队列,通过所述第二通话模式进行播放。
可选地,所述第一通话模式为蓝牙通话模式,所述第二通话模式为麦克-听筒通话模式;或者
所述第二通话模式为蓝牙通话模式,所述第一通话模式为麦克-听筒通话模式。
根据本发明的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:
检测到处于第一通话模式的移动终端与物体之间的距离处于预设距离范围时,启用第二通话模式进行音频数据的播放和采集;判断所述移动终端的音频采集状态是否满足预设条件,并在满足所述预设条件时,关闭所述第一通话模式,所述预设条件至少包括:在所述第二通话模式下的第一预设时间内,所述移动终端成功采集得到有效音频数据。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:
所述启用第二通话模式进行音频数据的播放和采集之前,所述方法还包括:当判断与所述移动终端的距离处于预设距离范围的所述物体为有效物体时,执行启用第二通话模式进行音频数据的播放和采集的步骤。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:
当检测到处于第一通话模式的移动终端与物体之间的距离处于预设距离范围时,将待播放的音频数据发送至第一通话模式对应的第一音频播放装置及第二通话模式对应的第二音频播放装置。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:
在所述判断所述移动终端的音频采集状态是否满足预设条件时,对所述第一通话模式待播放的音频数据进行缓存,得到缓存数据;
将所述缓存数据插入至所述第二通话模式的对应音频数据缓存队列,通过所述第二通话模式进行播放。
本发明的一个或多个实施例具有以下有益效果:
上述方案,在移动终端处于第一通话模式的情况下,在接听拨打一个电话时,或者在通话过程中,判断移动终端靠近或远离一个物体的时候,启用第二通话模式进行音频数据的采集及播放,综合判断两种模式下播放、 采集的音频数据,最终决定是否由第一通话模式切换至第二通话模式进行通话业务,解决处于一种通话模式有效工作范围外仍使用该模式进行通话的无声问题,完成移动终端在不同通话模式之间的合理自由切换。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1表示本发明第一实施例中通话模式切换的方法的流程示意图;
图2表示本发明第二实施例中移动终端的示意框图一;
图3表示本发明第二实施例中移动终端的示意框图二。
具体实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
第一实施例
结合图1所示,本发明实施例公开了一种通话模式切换的方法,包括:
步骤101:检测到处于第一通话模式的移动终端与物体之间的距离处于预设距离范围时,启用第二通话模式进行音频数据的播放和采集。
其中,移动终端上可以配置有多种通话模式,例如为直接通过手机的听筒和麦克来播放和采集通话过程中需要传递的音频数据,或者使用与手机连接的外部设备对通话过程中的音频数据进行播放及采集。
在该步骤中,需要对移动终端与外部物体的距离变化进行检测,当检 测到有物体与移动终端的距离处于预设距离范围内时,就使移动终端同时使用两种通话模式进行音频数据的播放和采集,在移动终端上产生两个音频采集和播放的数据流。该处于预设距离范围内,可以是指有物体靠近移动终端,两者处于一个较近的距离范围,也可以是指有物体远离移动终端,两者处于一个较远的距离范围。具体地,判断物体与手机的距离是靠近还是远离,可以通过使用接近传感器来进行判断。
步骤102:判断所述移动终端的音频采集状态是否满足预设条件,并在满足所述预设条件时,关闭所述第一通话模式。
其中,该预设条件至少包括:在所述第二通话模式下的第一预设时间内,所述移动终端成功采集得到有效音频数据。
该过程中,实现移动终端上从第一通话模式向第二通话模式的最终切换,还需要判断该移动终端是否通过新的通话模式采集得到有效的音频数据。在一预设有效时长内,采集得到有效音频数据时,则此时可以完成最终的通话模式切换,保留新开启的通话模式,关闭原来的通话模式。
上述方案,在移动终端处于第一通话模式的情况下,在接听拨打一个电话时,或者在通话过程中,判断移动终端靠近或远离一个物体的时候,启用第二通话模式进行音频数据的采集及播放,综合判断两种模式下播放、采集的音频数据,最终决定是否由第一通话模式切换至第二通话模式进行通话业务,解决处于一种通话模式有效工作范围外仍使用该模式进行通话的无声问题,完成移动终端在不同通话模式之间的合理自由切换。
具体地,该第一通话模式为蓝牙通话模式,该第二通话模式为麦克-听筒通话模式;或者该第二通话模式为蓝牙通话模式,该第一通话模式为麦克-听筒通话模式。即具体为移动终端在蓝牙通话模式和麦克-听筒通话模式之间进行互相切换。
接下来,将具体以蓝牙通话模式及麦克-听筒通话模式之间的互相切换为例,对本发明实施例中所提供的通话模式切换的方法的具体实现过程展开描述。
具体地,该移动终端以手机为例,当手机进行主叫或者被叫,处于业务通话的过程中,具体可以通过手机的应用处理器通过应用接口判断手机是否处于蓝牙通话模式。
如果手机处于蓝牙通话模式,应用处理器可以通过手机的接近传感器进行判断手机是否靠近一个物体,如果手机靠近一个物体,表明可能为手机使用者产生以手机的麦克-听筒通话模式进行通话的需要,应用处理器通知基带处理器同时启用手机的麦克和听筒进行音频数据的播放和采集,应用处理器将从基带处理器处得到的由通话对方传递过来的音频数据同时发送给手机听筒和蓝牙,以及同时从手机麦克和蓝牙获取接收手机使用者的通话音频数据,相当于一份数据的拷贝,让两个数据流工作。同样地,如果手机处于麦克-听筒通话模式,应用处理器可以通过手机的接近传感器进行判断手机是否远离一个物体,如果手机远离一个物体,则表明可能为手机使用者产生以手机的蓝牙通话模式进行通话的需要,接下来的处理过程及原理与前述的通话模式切换情况相同,不再赘述。
对应地,为防止误判断,避免只是使用者为了看一下手机界面的内容而产生不必要的重复切换,需要对应用处理器同时从手机听筒-麦克和蓝牙侧得到的收发数据进行判断,如果在一定的时间内手机的麦克有接收获取得到音频数据,且通过手机麦克得到一个有效的音频数据,那么我们判断用户是希望手机切换到手机的听筒和麦克进行工作的,那么我们切换到手机侧的麦克-听筒通话模式进行工作,通知基带处理器关闭蓝牙的接收和发射,同时应用处理器完成应用侧的通话模式的逻辑切换。同样地,如果手机处于麦克-听筒通话模式,对应的切换处理过程及原理相同,这里不再赘述。
该有效音频数据具体可指对在一定的时间内手机的麦克接收获取得到音频数据进行采样分析,得到这个音频数据的声音频率以及误码率,如果音频数据的声音频率以及误码率满足预设条件的话,可以认为该音频数据为有效音频数据。
进一步地,确定移动终端的音频采集状态是否满足一预设条件,并在满足所述预设条件时,关闭所述第一通话模式,该预设条件还包括:在所述第一通话模式下的第二预设时间内,所述移动终端没有成功采集到有效音频数据。
该过程中,如果手机处于麦克-听筒通话模式,在手机由听筒-麦克通话模式向蓝牙通话模式切换的过程中,启用蓝牙通话模式进行音频数据的播放和采集,具体为打开蓝牙通话模式下对应的外部播放设备及音频采集设备来实现,应用处理器同时从手机麦克-听筒和蓝牙侧得到的收发数据进行判断,在考虑蓝牙通话模式下的第一预设时间内,手机通过蓝牙通话模式下对应的外部音频采集设备成功采集得到有效音频数据的同时,还需满足在麦克-听筒通话模式下的第二预设时间内,手机的麦克没有成功采集到有效音频数据,此时可以判断用户是希望手机切换到蓝牙通话模式进行工作的,最终执行关闭麦克-听筒通话模式的操作,通知基带处理器关闭蓝牙模式下音频数据的播放和采集,同时应用处理器完成应用侧的通话模式的逻辑切换,实现通话模式最终的成功准确切换。
上述方案,根据接收到的麦克-听筒及蓝牙模式下的音频数据,进行综合决策,获取到有物体靠近或远离移动终端的时候,综合比对手机的麦克-听筒和蓝牙的播放和采集数据,在采集到有效的音频数据后,切换到目标通话模式,同时关闭另一个通话模式;通过综合手机的传感器、基带处理器、应用处理器,结合手机麦克和听筒数据,以及蓝牙侧的数据,完成手机在蓝牙和本身听筒麦克之间的合理自由切换,解决了处于蓝牙设备可通话范围外,手机听筒麦克可通话范围内,却仍然使用蓝牙设备导致通话无声,及处于蓝牙设备可通话范围内,手机听筒麦克可通话范围外,却仍然使用手机接听导致无声的问题。
具体地,上述的确定所述移动终端的音频采集状态是否满足一预设条件的步骤,具体包括:
检测在第一预设时间内,所述移动终端是否成功在所述第二通话模式 下采集得到音频数据;当检测结果为是时,判断所述移动终端采集得到的所述音频数据是否为有效音频数据。
该过程可以避免误判断,避免发生不需要的通话模式切换。其中,有效音频数据的判断方式可具体为判断获取到的音频数据的声音大小、频率等是否达到预设标准,或在对获取到的音频数据进行采样分析之后,判断该音频数据的完整性、连续性是否达到预设标准。
具体地,启用第二通话模式进行音频数据的播放和采集之前,所述方法还包括:当判断与所述移动终端的距离处于预设距离范围的所述物体为有效物体时,执行启用第二通话模式进行音频数据的播放和采集的步骤。
其中,判断与移动终端的距离处于预设距离范围的物体为有效物体,例如可以是配备有热传感器的移动终端,通过热传感器的温度采集,判断该物体是否为人面部及耳部还是其他无温度的物体,可以有效区分与移动终端的距离处于预设距离范围的物体的有效性,使得通话模式切换的过程更精确。
具体地,所述检测到处于第一通话模式的移动终端与物体之间的距离处于预设距离范围时,启用第二通话模式进行音频数据的播放和采集的步骤,包括:
当检测到处于第一通话模式的移动终端与物体之间的距离处于预设距离范围时,将待播放的音频数据发送至第一通话模式对应的第一音频播放装置及第二通话模式对应的第二音频播放装置。
蓝牙打开时,手机发出的音频由与手机进行蓝牙连接的音频播放装置进行播放,该音频播放装置例如为蓝牙耳机、蓝牙音箱、车载蓝牙通话设备等;当检测到手机与一物体的距离在预设范围时,将通话对象传递来的音频数据同时传输至手机听筒及与手机蓝牙连接的装置进行播放;当检测到在一预设时长内,手机麦克获取到有效音频时,切换蓝牙通话模式至麦克-听筒通话模式,关闭蓝牙通话模式;相反地,由麦克-听筒通话模式切换至蓝牙通话模式的过程原理相同,不再赘述。
更进一步地,在所述判断所述移动终端的音频采集状态是否满足预设条件时,该方法还包括:
对所述第一通话模式待播放的音频数据进行缓存,得到缓存数据;
将所述缓存数据插入至所述第二通话模式的对应音频数据缓存队列,通过所述第二通话模式进行播放。
对于从单数据流切换到双数据流的切换过程中,这段时隙中,可能存在内容丢失的问题,这里使用一种冗余纠错的方式进行补偿。对在第一通话模式下的这段时间内的数据进行缓存,将缓存的内容插入到目标切换的第二通话模式下的音频数据队列中,具体可以对该段时间内的音频数据进行压缩,增加帧的播放速度,以保证音频数据在相同的时间内完成播放。该过程针对通话模式切换过程中可能存在的数据丢失问题,提出一种缓存机制,将第一通话模式下的音频数据进行部分缓存,切换到目标通话模式后,将缓存数据插入到目标通话模式下音频数据的播放队列前端,来保证通话内容的完整性。
第二实施例
结合图2、图3所示,本发明实施例公开了一种移动终端,该移动终端与第一实施例中通话模式切换的方法相对应。该移动终端包括:通话模式启用模块201及通话模式关闭模块202。
其中,通话模式启用模块201,设置为检测到处于第一通话模式的移动终端与物体之间的距离处于预设距离范围时,启用第二通话模式进行音频数据的播放和采集。
通话模式关闭模块202,设置为判断所述移动终端的音频采集状态是否满足预设条件,并在满足所述预设条件时,关闭所述第一通话模式。该预设条件至少包括:在所述第二通话模式下的第一预设时间内,所述移动终端成功采集得到有效音频数据。
进一步地,该预设条件还包括:在所述第一通话模式下的第二预设时间内,所述移动终端没有成功采集到有效音频数据。
可选地,该移动终端还包括:判断模块203。
判断模块203,设置为当判断与所述移动终端的距离处于预设距离范围的所述物体为有效物体时,执行启用第二通话模式进行音频数据的播放和采集的步骤。
具体地,该通话模式启用模块201,还设置为:当检测到处于第一通话模式的移动终端与物体之间的距离处于预设距离范围时,将待播放的音频数据发送至第一通话模式对应的第一音频播放装置及第二通话模式对应的第二音频播放装置。
可选地,所述第一通话模式为蓝牙通话模式,所述第二通话模式为麦克-听筒通话模式;或者所述第二通话模式为蓝牙通话模式,所述第一通话模式为麦克-听筒通话模式。
进一步地,该移动终端还包括:数据缓存模块204及缓存数据处理模块205。
其中,数据缓存模块204,设置为对所述第一通话模式待播放的音频数据进行缓存,得到缓存数据。
缓存数据处理模块205,设置为将所述缓存数据插入至所述第二通话模式的对应音频数据缓存队列,通过所述第二通话模式进行播放。
本实施例中所提供的移动终端,在处于第一通话模式的情况下,在接听拨打一个电话时,或者在通话过程中,判断移动终端靠近或远离一个物体的时候,启用第二通话模式进行音频数据的采集及播放,综合判断两种模式下播放、采集的音频数据,最终决定是否由第一通话模式切换至第二通话模式进行通话业务,解决处于一种通话模式有效工作范围外仍使用该模式进行通话的无声问题,完成移动终端在不同通话模式之间的合理自由切换,且针对通话模式切换过程中可能存在的数据丢失问题,提出一种缓存机制,将第一通话模式下的音频数据进行部分缓存,切换到目标通话模式后,将缓存数据插入到目标通话模式下音频数据的播放队列前端,更好地保证通话内容的完整性。
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。
尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。
以上所述的是本发明的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本发明所述的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本发明的保护范围内。
工业实用性
在本实施例的通话模式切换的过程中,在移动终端处于第一通话模式的情况下,在接听拨打一个电话时,或者在通话过程中,判断移动终端靠近或远离一个物体的时候,启用第二通话模式进行音频数据的采集及播放,综合判断两种模式下播放、采集的音频数据,最终决定是否由第一通话模式切换至第二通话模式进行通话业务,解决处于一种通话模式有效工作范围外仍使用该模式进行通话的无声问题,完成移动终端在不同通话模式之间的合理自由切换。

Claims (12)

  1. 一种通话模式切换的方法,包括:
    检测到处于第一通话模式的移动终端与物体之间的距离处于预设距离范围时,启用第二通话模式进行音频数据的播放和采集;
    判断所述移动终端的音频采集状态是否满足预设条件,并在满足所述预设条件时,关闭所述第一通话模式,所述预设条件至少包括:在所述第二通话模式下的第一预设时间内,所述移动终端成功采集得到有效音频数据。
  2. 根据权利要求1所述的方法,其中,所述预设条件还包括:
    在所述第一通话模式下的第二预设时间内,所述移动终端没有成功采集到有效音频数据。
  3. 根据权利要求1所述的方法,其中,所述启用第二通话模式进行音频数据的播放和采集之前,所述方法还包括:
    当判断与所述移动终端的距离处于预设距离范围的所述物体为有效物体时,执行启用第二通话模式进行音频数据的播放和采集的步骤。
  4. 根据权利要求1所述的方法,其中,所述检测到处于第一通话模式的移动终端与物体之间的距离处于预设距离范围时,启用第二通话模式进行音频数据的播放和采集的步骤,包括:
    当检测到处于第一通话模式的移动终端与物体之间的距离处于预设距离范围时,将待播放的音频数据发送至第一通话模式对应的第一音频播放装置及第二通话模式对应的第二音频播放装置。
  5. 根据权利要求1所述的方法,其中,在所述判断所述移动终端的音频采集状态是否满足预设条件时,所述方法还包括:
    对所述第一通话模式待播放的音频数据进行缓存,得到缓存数据;
    将所述缓存数据插入至所述第二通话模式的对应音频数据缓存队列,通过所述第二通话模式进行播放。
  6. 根据权利要求1-5任一项所述的方法,其中,
    所述第一通话模式为蓝牙通话模式,所述第二通话模式为麦克-听筒通话模式;或者
    所述第二通话模式为蓝牙通话模式,所述第一通话模式为麦克-听筒通话模式。
  7. 一种移动终端,包括:
    通话模式启用模块,设置为检测到处于第一通话模式的移动终端与物体之间的距离处于预设距离范围时,启用第二通话模式进行音频数据的播放和采集;
    通话模式关闭模块,设置为判断所述移动终端的音频采集状态是否满足预设条件,并在满足所述预设条件时,关闭所述第一通话模式,所述预设条件至少包括:在所述第二通话模式下的第一预设时间内,所述移动终端成功采集得到有效音频数据。
  8. 根据权利要求7所述的移动终端,其中,所述预设条件还包括:
    在所述第一通话模式下的第二预设时间内,所述移动终端没有成功采集到有效音频数据。
  9. 根据权利要求7所述的移动终端,其中,所述移动终端还包括:
    判断模块,设置为当判断与所述移动终端的距离处于预设距离范围的所述物体为有效物体时,执行启用第二通话模式进行音频数据的 播放和采集的步骤。
  10. 根据权利要求7所述的移动终端,其中,所述通话模式启用模块,还设置为:
    当检测到处于第一通话模式的移动终端与物体之间的距离处于预设距离范围时,将待播放的音频数据发送至第一通话模式对应的第一音频播放装置及第二通话模式对应的第二音频播放装置。
  11. 根据权利要求7所述的移动终端,其中,所述移动终端还包括:
    数据缓存模块,设置为对所述第一通话模式待播放的音频数据进行缓存,得到缓存数据;
    缓存数据处理模块,设置为将所述缓存数据插入至所述第二通话模式的对应音频数据缓存队列,通过所述第二通话模式进行播放。
  12. 根据权利要求7-11任一项所述的移动终端,其中,
    所述第一通话模式为蓝牙通话模式,所述第二通话模式为麦克-听筒通话模式;或者
    所述第二通话模式为蓝牙通话模式,所述第一通话模式为麦克-听筒通话模式。
PCT/CN2017/000053 2016-05-25 2017-01-03 一种通话模式切换的方法及移动终端 WO2017202024A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610352723.7 2016-05-25
CN201610352723.7A CN107438131A (zh) 2016-05-25 2016-05-25 一种通话模式切换的方法及移动终端

Publications (1)

Publication Number Publication Date
WO2017202024A1 true WO2017202024A1 (zh) 2017-11-30

Family

ID=60412035

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/000053 WO2017202024A1 (zh) 2016-05-25 2017-01-03 一种通话模式切换的方法及移动终端

Country Status (2)

Country Link
CN (1) CN107438131A (zh)
WO (1) WO2017202024A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018035868A1 (zh) 2016-08-26 2018-03-01 华为技术有限公司 输出音频的方法、电子设备以及存储介质
CN115086475B (zh) * 2021-03-12 2023-12-12 海能达通信股份有限公司 一种语音通话模式的控制方法、装置及设备
CN113489843A (zh) * 2021-07-15 2021-10-08 中国第一汽车股份有限公司 一种音频通路切换方法、装置、车辆及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067607A (zh) * 2013-01-22 2013-04-24 东莞宇龙通信科技有限公司 通话模式切换方法和装置
CN103945048A (zh) * 2013-01-23 2014-07-23 中兴通讯股份有限公司 一种通话调整方法及装置
WO2014183529A1 (zh) * 2013-12-02 2014-11-20 中兴通讯股份有限公司 切换移动终端通话模式的方法、装置及存储介质
CN104717363A (zh) * 2015-03-23 2015-06-17 努比亚技术有限公司 一种移动终端及其快速进行音频通道切换的方法和装置
CN105245732A (zh) * 2015-11-12 2016-01-13 浪潮(北京)电子信息产业有限公司 一种用于终端设备上的切换方法、装置及终端设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067607A (zh) * 2013-01-22 2013-04-24 东莞宇龙通信科技有限公司 通话模式切换方法和装置
CN103945048A (zh) * 2013-01-23 2014-07-23 中兴通讯股份有限公司 一种通话调整方法及装置
WO2014183529A1 (zh) * 2013-12-02 2014-11-20 中兴通讯股份有限公司 切换移动终端通话模式的方法、装置及存储介质
CN104717363A (zh) * 2015-03-23 2015-06-17 努比亚技术有限公司 一种移动终端及其快速进行音频通道切换的方法和装置
CN105245732A (zh) * 2015-11-12 2016-01-13 浪潮(北京)电子信息产业有限公司 一种用于终端设备上的切换方法、装置及终端设备

Also Published As

Publication number Publication date
CN107438131A (zh) 2017-12-05

Similar Documents

Publication Publication Date Title
WO2020168873A1 (zh) 语音处理方法、装置、电子设备及存储介质
US10349176B1 (en) Method for processing signals, terminal device, and non-transitory computer-readable storage medium
WO2020019848A1 (zh) 主耳机切换方法、移动终端以及计算机可读存储介质
CN110493678B (zh) 耳机的控制方法、装置、耳机和存储介质
KR101571993B1 (ko) 음성 통화 방법, 음성 재생 방법, 장치, 프로그램 및 기록매체
WO2018201944A1 (zh) 一种设备控制方法及装置
CN105794186A (zh) 控制应用程序的方法、装置和电子设备
WO2017202024A1 (zh) 一种通话模式切换的方法及移动终端
CN105376144B (zh) 信息处理方法及装置
WO2014183529A1 (zh) 切换移动终端通话模式的方法、装置及存储介质
CN104636110A (zh) 控制音量的方法及装置
CN109618052A (zh) 一种通话音频切换方法及装置、移动终端及可读存储介质
CN105472676A (zh) 网络连接方法及装置
WO2014154077A1 (zh) 一种结束通话的方法、装置及移动终端
CN103369094A (zh) 在通话被打断时不影响通讯过程连续性的移动终端和方法
CN105530381A (zh) 通话挂断方法及装置
CN104333641B (zh) 通话方法及装置
CN105827793A (zh) 一种语音定向输出方法及移动终端
TWI630543B (zh) 電子設備及用所述電子設備即時聲音重播的方法
CN105227891A (zh) 一种视频通话方法及装置
CN104519188A (zh) 一种移动终端在通话中的自动录音系统及方法
CN105516493B (zh) 一种移动终端及其闹钟控制方法
WO2018058875A1 (zh) 一种终端的通话切换方法、系统及终端、计算机存储介质
CN109862171A (zh) 终端设备控制方法及装置
CN110708417B (zh) 一种语音切换方法、装置、终端及计算机可读存储介质

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17801882

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17801882

Country of ref document: EP

Kind code of ref document: A1