WO2020063069A1 - Procédé et appareil de lecture audio, dispositif électronique et support lisible par ordinateur - Google Patents
Procédé et appareil de lecture audio, dispositif électronique et support lisible par ordinateur Download PDFInfo
- Publication number
- WO2020063069A1 WO2020063069A1 PCT/CN2019/097146 CN2019097146W WO2020063069A1 WO 2020063069 A1 WO2020063069 A1 WO 2020063069A1 CN 2019097146 W CN2019097146 W CN 2019097146W WO 2020063069 A1 WO2020063069 A1 WO 2020063069A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- audio playback
- wireless audio
- playback device
- wireless
- audio data
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72442—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Definitions
- the present application relates to the field of communication technologies, and more particularly, to an audio playback method, device, electronic device, and computer-readable medium.
- wireless audio playback devices to play audio data in electronic devices can reduce the inconvenience caused by wired headphones.
- electronic devices can connect two wireless audio playback devices at the same time, and two wireless audio playback devices can achieve audio mixing. Play effect.
- the user abandons using one of the wireless audio playback devices to listen to the audio, the user will not be able to hear the mixed playback effect of the audio, resulting in a poor user experience.
- the present application proposes an audio playback method, device, electronic device, and computer-readable medium to improve the above defects.
- an embodiment of the present application provides an audio playback method, which is applied to an electronic device that can connect two wireless audio playback devices at the same time.
- the method includes: determining whether each of the wireless audio playback devices is in a preset state when two of the wireless audio playback devices are playing different audio data to achieve mixed audio playback; Device as the first wireless audio playback device, the audio data played by the first wireless audio playback device during the mixing playback process is the first audio data; the wireless audio playback device that is not in the preset state is used as the second wireless audio A playback device, the audio data played by the second wireless audio playback device during mixing playback is second audio data; and controlling the second wireless audio playback device to play the first audio data and the second audio data at the same time, so that Realize mixed playback.
- an embodiment of the present application further provides an audio playback device, which is applied to an electronic device, and the electronic device can be connected to two wireless audio playback devices at the same time.
- the audio playback device includes a detection unit, a first determination unit, a second determination unit, and a playback unit.
- a detection unit is configured to determine whether each of the wireless audio playback devices is in a preset state when two of the wireless audio playback devices are playing different audio data to implement mixed audio playback.
- the first determining unit is configured to use the wireless audio playback device in a preset state as the first wireless audio playback device, and then the audio data played by the first wireless audio playback device during the mixing playback process is the first audio data.
- a second determining unit configured to use a wireless audio playback device that is not in a preset state as the second wireless audio playback device, and then the audio data played by the second wireless audio playback device during the mixing playback process is the second audio data .
- the playback unit is configured to control the second wireless audio playback device to play the first audio data and the second audio data at the same time, so as to implement the mixed audio playback.
- an embodiment of the present application further provides an electronic device, including: one or more processors capable of simultaneously connecting two wireless audio playback devices; a memory; and one or more applications A program, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform the above method.
- an embodiment of the present application further provides a computer-readable medium having a processor-executable program code, where the program code causes the processor to perform the foregoing method.
- FIG. 1 shows a module block diagram of a voice system provided by an embodiment of the present application
- FIG. 2 shows a block diagram of a voice system according to another embodiment of the present application
- FIG. 3 shows a method flowchart of an audio playback method according to an embodiment of the present application
- FIG. 4 is a schematic diagram of a device management interface according to an embodiment of the present application.
- FIG. 5 shows a method flowchart of an audio playback method according to another embodiment of the present application.
- FIG. 6 shows a method flowchart of an audio playback method according to another embodiment of the present application
- FIG. 7 is a schematic diagram of an answering interface provided by an embodiment of the present application.
- FIG. 8 is a schematic diagram of an answering interface provided by another embodiment of the present application.
- FIG. 9 shows a module block diagram of an audio playback device according to an embodiment of the present application.
- FIG. 10 shows a module block diagram of an electronic device according to an embodiment of the present application.
- FIG. 11 illustrates a storage unit for storing or carrying a program code for implementing an audio playing method according to an embodiment of the present application.
- audio playback devices With the increase in the types of audio playback devices and the improvement of playback sound effects, more users will choose to output audio to be played by electronic devices such as mobile phones and tablets to the audio playback device for playback.
- electronic devices such as mobile phones and tablets
- audio playback devices include car music players, speakers, and headphones.
- audio playback devices can be divided into wired audio playback devices and wireless audio playback devices.
- the electronic device can interact with the wireless audio playback device through a wireless network to transmit signals.
- the wireless network may be Bluetooth. , Wifi, LTE network or NFC, etc.
- the voice system includes an electronic device 100, a first wireless audio playback device 210, and a second wireless audio playback device 220.
- the electronic device 100 can be connected to the first wireless audio playback device 210 and the second wireless audio playback device 220 at the same time.
- an application capable of playing audio is installed in the electronic device 100.
- the application may be audio playing software, video playing software, or calling software.
- the electronic device 100 sends the audio to be played to the first wireless audio playback device 210 or the second wireless audio playback device 220, and the first wireless audio playback device 210 or the second wireless audio playback device 220 plays the voice.
- the first wireless audio playback device 210 and the second wireless audio playback device 220 may both be Bluetooth speakers or Bluetooth headsets.
- the first wireless audio playback device 210 and the second wireless audio playback device 220 may be enabled with the Bluetooth function.
- a connection with the electronic device 100 is achieved, and after the connection is established, the electronic device 100 sends the voice that it needs to play to the Bluetooth audio, and the Bluetooth audio implements voice playback.
- the electronic device 100 can be connected to the first wireless audio playback device 210 and the second wireless audio playback device 220 through the Bluetooth module at the same time.
- the Bluetooth module in the electronic device may support multipoint connection, so that the electronic device shown in FIG. 1 can be connected to the first wireless audio playback device 210 and the second wireless audio playback device 220, respectively.
- the electronic device 100 can obtain the identities of the first wireless audio playback device 210 and the second wireless audio playback device 220, and the identifications may be MAC addresses.
- the Bluetooth function of the electronic device is turned on, the electronic device scans the Bluetooth devices within a certain distance from the surrounding area.
- the preset Scan in the order of channel scanning. For example, scan the common channels 1, 7, and 13 first, and then scan the other unused channels, so as to obtain the identification of all Bluetooth devices in the current range and display them in the Bluetooth list interface of the electronic device. .
- the electronic device will automatically connect with the Bluetooth device, and the user can also select a Bluetooth device in the Bluetooth list interface to connect.
- the system of the electronic device obtains a status value, which indicates that the electronic device is currently connected to the Bluetooth device. Therefore, the electronic device can detect that the Bluetooth device is already present, and thereby obtain the device identification of the Bluetooth device.
- the electronic device 100 is connected to the first wireless audio playback device 210 through Bluetooth, and then the first wireless audio playback device 210 is connected to the second wireless audio playback device 220 through Bluetooth. Therefore, the electronic device 100, the first wireless audio playback device 210, and the second wireless audio playback device 220 are simultaneously connected through networking, that is, the first wireless audio playback device 210 serves as the electronic device 100 and the second wireless audio playback device 220. Repeater.
- different audio playback devices can play different audio data. Of course, it can also be played by different audio playback devices. Same audio data to achieve effects like stereo. It is also possible to use one of the wireless audio playback devices to play audio data while the other wireless audio playback device is on standby without playing audio.
- the inventor found in the research that when the user abandons using one of the wireless audio playback devices to listen to the audio data, because the audio data played by the two wireless audio playback devices cannot be heard at the same time, the effect of mixing playback cannot be obtained , Resulting in poor user experience.
- an embodiment of the present application provides an audio playback method, which is applied to the above electronic device. Specifically, the method includes: S301 to S304.
- the two wireless audio playback devices play different audio data, and the user can obtain the visual effect of mixing playback by listening to the audio data played by the two wireless audio playback devices at the same time.
- the audio data played by the two wireless audio playback devices can be made the same, for example, the two audio data are the same song, and the two audio data are The sampling frequency, the number of sampling bits, the bit rate, and the corresponding content are all the same.
- the same song is played on two wireless audio playback devices at different frequencies, and the frequency represents the tone of the sound, for example, one imitates the tone of a male voice and the other imitates the tone of a female voice, thereby Realize the effect of male and female duet.
- the audio data played by two wireless audio playback devices can achieve the effect of stereo playback.
- one wireless audio playback device is playing the left channel data of the audio data.
- a wireless audio playback device is playing the right channel data of the audio data to achieve stereo playback of the audio data.
- the audio data played by the two wireless audio playback devices are the same song and recorded as the target song.
- the target song can be divided into left and right channel data, that is, left channel data and right channel data.
- Both the channel data and the right channel data correspond to the target song, then one of the wireless audio playback devices plays the left channel data of the target song, and the other wireless audio playback device plays the right channel data of the target song, and the user listens to the target at the same time Audio data of the left and right channels of the song to achieve a stereo effect.
- the wireless audio playback device may be a wireless headset, specifically, a Bluetooth headset.
- the wireless audio playback device may also be a wireless speaker, for example, a Bluetooth speaker.
- the effect of simultaneous translation can be achieved through the wireless speaker.
- the electronic device After acquiring the first audio data, the electronic device generates second audio data according to the first audio data, wherein a language corresponding to the first audio data is different from a language corresponding to the second audio data.
- the first audio data and the second audio data may correspond to different languages, or may correspond to the same language and different languages. For example, if the language corresponding to the first audio data is Chinese and the language corresponding to the second audio data is English, the first audio data and the second audio data correspond to different languages. For another example, the language corresponding to the first audio data is Cantonese , And the language corresponding to the second audio data is Mandarin, the first audio data and the second audio data correspond to the same language, but the corresponding languages are different
- translation software is installed in the electronic device, and after acquiring the first audio data, the translation software is called to generate the first audio data into the second audio data. Then, the first audio data and the second audio data may be obtained in advance, for example, downloading the first audio data and the second audio data on a website. For example, if the content of the first audio data is "I am Chinese and I love my motherland", then the content of the second audio data is "I am Chinese, I love my country.” When “I am Chinese”, the second audio data starts playing, and when "I love my motherland" is played by the first audio data, the second audio data is also playing.
- the first audio data is acquired in real time and continuously, and the second audio data is also acquired continuously in real time.
- the time difference between the starting point of the second playback time can be set according to experience.
- the time for a user to speak a sentence or a paragraph is a preset time.
- the preset time can be statistically obtained according to the habits of the user, and the time difference N times the preset time, where N is a value greater than 0 and less than 1.
- An implementation manner of determining that the two wireless audio playback devices are playing different audio data to implement mixed audio playback may be that the electronic device is connected to the first wireless audio playback device and the second wireless audio playback device at the same time, and the user is playing the When audio data is selected, the music to be played can be selected on the audio playback interface of the electronic device, as shown in the display interface of the electronic device shown in FIG. 1 and FIG. 2. Select one or more of the audio data and click the play button to play it. The selected audio data. In addition, the user can also select a wireless audio playback device for playing audio data through the electronic device.
- a device management interface of an electronic device is shown.
- an operation interface of two wireless audio playback devices connected to the electronic device is displayed, and specifically includes two wireless audio playback devices.
- a device selection button which is a selection button corresponding to each device in FIG. 4, for example, when the round button is on the left, the electronic device selects a wireless audio playback device to play audio data. After the connection is established, the audio data played by the electronic device can play the audio data through the connected wireless audio playback device.
- each wireless audio playback device also corresponds to a drop-down menu.
- the user can configure the user's audio playback application for the wireless audio playback device through the drop-down menu. For example, configure the first audio data for device 1 as The device 2 is configured with the second audio data. If the electronic device can control the playback of the first audio data and control the playback of the second audio data, the device 1 can play the first audio data and the device 2 can play the second audio data. To achieve the effect of mixed playback.
- the electronic device is connected to the first wireless audio playback device can be determined through the button status in the interface.
- whether the device connected by the electronic device through Bluetooth is an audio playback device can be detected.
- the type of the device currently connected via Bluetooth can be determined based on the return value obtained by instantiating the BluetoothClass.Device class.
- the returned value is AUDIO_VIDEO_CAMCORDER, it is characterized as an image capture device; if the returned value is AUDIO_VIDEO_CAR_AUDIO, it is characterized as a car device; if the returned value is AUDIO_VIDEO_HIFI_AUDIO, it is characterized as an audio playback device or a video playback device, such as a Bluetooth headset; If the returned value is AUDIO_VIDEO_MICROPHONE, it indicates that it is a microphone.
- the electronic device When it is determined that the electronic device is connected to the wireless audio playback device, that is, after the electronic device is connected to the wireless audio playback device, it is detected whether the electronic device has received a playback request, and the playback request is a request for playing audio data.
- the electronic device is connected to the first wireless audio playback device and the first wireless audio playback device is selected as a device for playing audio data of the electronic device, it is determined whether a playback request for audio data of the data is obtained when the user operates the electronic device, and if Upon the playback request, it is determined that the electronic device is playing audio data through the first wireless audio playback device.
- the playback request may be reminder information or a voice playback request.
- the reminder information includes call reminder information, short message reminder information, and alarm reminder information to remind the user that certain events have been triggered.
- the call reminder information is used to remind the user of an incoming call.
- the playback request may be a request to play a voice each time during the sounding process of the electronic device.
- the playback request may be an audio sound request, or a video sound request or a call sound request.
- the software may be a music playback APP, a video playback APP, a recording APP, or the like.
- the video playback interface is provided with a video playback button. By detecting the touch of the video playback button, it can be determined whether the electronic device currently receives a playback request for audio data. For example, the user selects a video, enters the video playback interface, and clicks.
- the playback button of the playback interface allows the application to detect what type of video the user is currently clicking by monitoring the user ’s touch operation.
- the playback button is set with preset attributes to detect the acquired touch
- the user can determine the video to be played selected by the user, and then obtain a playback request and the audio corresponding to the playback request.
- the electronic device By using the electronic device to configure the audio data to be played when the two wireless audio devices are played and the acquired playback request for the audio data, it can be determined whether the two wireless audio playback devices are currently playing different audio data to To achieve the effect of mixing playback. If yes, determine whether each of the wireless audio playback devices is in a preset state.
- the preset state indicates a use state of the wireless audio playback device.
- the preset state may be a wearing state, a working state, a connection state, or a usage.
- the usage indicates a type of audio to be played by the wireless audio playback device, for example, for playback. Audio-only, call voice, or audio in video. Then, if the wireless audio playback device is in a preset state, it means that the user abandons using the wireless audio playback device to listen to the audio data being played, thereby abandoning the auditory effect of the mixed playback.
- the working status of each of the wireless audio playback devices may be obtained. If the working status of the wireless audio playback device is offline, it is determined that the wireless audio playback device is in a preset state, otherwise, It is determined that the wireless audio playback device is not in a preset state.
- the wireless audio playback device may be turned off, and the connection between the electronic device and the wireless audio playback device may be disconnected.
- the failure of the communication link between the wireless audio playback device and the electronic device results in the connection between the electronic device and the wireless audio playback device being broken.
- the electronic device sends a beacon to each wireless audio playback device, and determines whether a return result returned by the wireless audio playback device based on the received beacon is received within a preset time.
- the return result sent by the wireless audio playback device is obtained, it is determined that the connection between the electronic device and the wireless audio playback device is not disconnected, that is, the working state of the wireless audio playback device is connected, otherwise, the work of the wireless audio playback device is determined
- the status is offline. If the working state of the wireless audio playback device is offline, it is determined that the wireless audio playback device is in a preset state, and if the working state of the wireless audio playback device is connected, it is determined that the wireless audio playback device is not in a preset state .
- whether the wireless audio playback device is in a preset state can also be determined according to the wearing state and the call status of the wireless audio playback device. For details, refer to the subsequent embodiments.
- S302 Use the wireless audio playback device in a preset state as the first wireless audio playback device, and then the audio data played by the first wireless audio playback device during the mixing playback process is the first audio data.
- S303 Use the wireless audio playback device that is not in the preset state as the second wireless audio playback device, and then the audio data played by the second wireless audio playback device during the mixing playback process is the second audio data.
- each wireless audio playback device determine whether it is in a preset state, use the wireless audio playback device in the preset state as the first wireless audio playback device, and use the wireless audio playback device that is not in the preset state as the second wireless audio.
- a playback device wherein the audio data played by the first wireless audio playback device during the mixing playback is used as the first audio data, and the audio data played by the second wireless audio playback device during the mixing playback is used as the second audio data That is, the first audio data is used as a reference for the audio data played by the first wireless audio playback device during the mixing playback, and the second audio data is used as the second wireless audio playback device played during the mixing playback.
- the reference of audio data is not a limitation on the audio data played by the first wireless audio playback device and the second wireless audio playback device.
- the two wireless audio playback devices are not in a preset state, it means that the user is still using the two wireless audio playback devices to listen to the audio played by the mixed audio, and then the method ends or returns to execute S301.
- both wireless audio playback devices are in a preset state, it means that the user has given up using the two wireless audio playback devices to listen to the audio, then the method is ended or the process returns to S301.
- S304 Control the second wireless audio playback device to play the first audio data and the second audio data at the same time, so as to implement mixing playback.
- the second wireless audio playback device is controlled to continue to play the second audio data, and at the same time, the first audio data played by the first wireless audio playback device is also handed over to the second wireless audio playback device to play, so that the user can continue to pass
- the second wireless audio playback device plays different audio data to achieve a mixing playback effect.
- the first playback progress of the first audio data played by the first wireless audio playback device is recorded.
- the first wireless audio playback device it is determined that the two wireless audio playback devices are in a preset state.
- the wireless audio playback device is recorded, the time point at this time is recorded as the first time point, the playback progress of the first audio data corresponding to the first time point is determined as the first playback progress, and the second wireless audio playback device is controlled at the same time
- a specific implementation manner of playing the first audio data and the second audio data is to control the second wireless audio playback device to continue playing the second audio data, and continue to play the first audio data at a first playback progress.
- the first audio data and the second audio data are played, there is a corresponding relationship in time, for example, the two are played at the same time or the two are delayed for a certain time.
- the first playback progress lag is acquired, it is determined that during the mixing playback, the second playback progress of the second audio data corresponding to the first playback progress of the second audio data is controlled, and the second wireless audio playback device is controlled to play simultaneously
- a specific implementation manner of the first audio data and the second audio data is to control the second wireless audio playback device to play the second audio data at a second playback progress while continuing to play the first audio data at a first playback progress.
- the wireless audio playback device is a wireless headset
- the user wears a first wireless headset and a second wireless headset
- the first wireless headset plays the left channel data of the target audio
- the second wireless headset plays the target audio.
- the right channel data, and the first wireless headset and the second wireless headset simultaneously play the target audio, then the user can listen to the stereo effect of the target audio through the first wireless headset and the second wireless headset.
- the user can control the second wireless headset through the electronic device to continue playing the left channel data and the right channel data of the target audio to achieve the Two wireless headphones listen to stereo effects.
- the Android recording generates a pcm file by default, that is, the Android stereo pcm data structure.
- the recording type is AudioFormat.CHANNEL_IN_STEREO (stereo recording)
- the data type is AudioFormat.ENCODING_PCM_16BIT
- the data structure of the pcm file is roughly 2byte left channel, 2byte right channel, 2byte left channel, 2byte right channel .... Therefore, the Android stereo pcm data structure can be split into a left channel audio signal and a right channel.
- Audio signal and transmit the left channel audio signal obtained after processing the split signal to the first wireless earphone input user's left ear, and transmit the right channel audio signal obtained after processing the split signal to the second wireless Headphone input into the user's right ear, which can improve the audio playback effect and user experience
- the wireless audio playback device is a wireless headset.
- the user wears two wireless headsets to play audio data. If one of the wireless headsets is taken off, the other wireless headset is controlled to play different audio data at the same time to achieve the effect of mixing playback.
- FIG. 5 shows an audio playback method provided by another embodiment of the present application, which is applied to the above electronic device. Specifically, the method includes S501 to S505.
- the wireless audio playback device is a Bluetooth headset
- the Bluetooth headset includes a casing, a Bluetooth module, and a playback module.
- the Bluetooth module and the playback module are both located in the casing, and the Bluetooth module is used to establish a connection with the electronic device. Connect the relationship and transfer data, etc., and the playback module is used to play the acquired audio data.
- the case is provided with a contact sensor, which can detect the contact parameters entered by the user when contacting the case of the Bluetooth headset.
- the contact sensor may be Pressure sensor, proximity light sensor, etc., the contact parameter may be a pressure value or an optical signal intensity value.
- the contact parameters of the two Bluetooth headsets are obtained, and based on the contact parameters, the first Bluetooth headset and the second Bluetooth headset are determined. Wearing status of Bluetooth headset.
- the first Bluetooth headset in contact with the user's left ear and the second Bluetooth in contact with the user's right ear can be determined from the two Bluetooth headsets. headset.
- a Bluetooth headset is taken as an example for description.
- the contact sensor of the Bluetooth headset is fixedly set at the target position of the headset body. When the Bluetooth headset is placed in the left ear of the user, the contact sensor can detect Contact area and contact point of the Bluetooth headset when the Bluetooth headset is placed in the user's right ear, the contact sensor can detect the contact point area and contact point between the user's right ear.
- the contact parameters and the pre-stored Bluetooth headset can be placed.
- the contact parameters of the user's left ear and the contact parameters of the Bluetooth headset placed in the user's right ear are compared to determine the placement position of the Bluetooth headset, that is, the Bluetooth headset is determined to be the first Bluetooth headset or the second Bluetooth headset.
- another Bluetooth headset can also be determined as the first Bluetooth headset or the second Bluetooth headset in the above manner, so that it can be determined whether the two Bluetooth headsets are worn on the user's ear based on the contact parameters.
- the ear it is determined that the wearing state of the Bluetooth headset is a worn state, and if it is not worn on the user's ear, it is determined that the wearing state of the Bluetooth headset is an unworn state.
- first Bluetooth headset and the second Bluetooth headset are worn on the user's ear by the motion trajectory, and specifically detect the motion trajectory of the first Bluetooth headset and the motion trajectory of the second Bluetooth headset, respectively.
- the Bluetooth headset further includes an acceleration sensor and / or a gyroscope, and the acceleration sensor and / or the gyroscope is disposed in the headset body, and is configured to detect the motion trajectory of the Bluetooth headset and send the detected motion trajectory.
- the power supply device to detect the movement track of the Bluetooth headset.
- the movement track of the first Bluetooth headset can be detected by a first acceleration sensor provided in the first Bluetooth headset and sent to the electronic device
- the second Bluetooth headset can be detected by a second acceleration sensor provided in the second Bluetooth headset.
- the motion trajectory of the first Bluetooth headset and the second trajectory of the second Bluetooth headset are monitored separately.
- the gyroscope As an example, according to the gyroscope's axiality and the known preset attitude of the Bluetooth headset with respect to the rotation axis direction of the gyroscope, when a difference occurs between the attitude of the Bluetooth headset and the preset attitude, pitching occurs. , Yaw or roll movement in a certain direction, because the rotation axis of the gyroscope remains the same direction, it is possible to detect the change in the angle relationship between the Bluetooth headset lever with respect to the rotation axis and the angle relationship between the preset attitude and the rotation axis. Determine the attitude change of the Bluetooth headset, and determine the movement track of the Bluetooth headset.
- the wearing state of the two Bluetooth headsets is determined based on the motion trajectories of the two Bluetooth headsets.
- the first Bluetooth headset after detecting the motion trajectory of the first Bluetooth headset through an acceleration sensor and / or a gyroscope provided in the headset body of the first Bluetooth headset, it is determined whether the first Bluetooth headset is detached from the user based on the motion trajectory.
- the motion trajectory of the first Bluetooth headset has a significant radian change, it can be considered that the first Bluetooth headset is detached from the user's left ear.
- the motion trajectory of the first Bluetooth headset has no obvious radian change It can be considered that the first Bluetooth headset is not separated from the left ear of the user.
- the second Bluetooth headset after detecting a motion trajectory of the second Bluetooth headset through an acceleration sensor and / or a gyroscope provided in the headset body of the second Bluetooth headset, it is determined whether the second Bluetooth headset is detached from the user based on the motion trajectory.
- the motion trajectory of the second Bluetooth headset has a significant radian change, it can be considered that the second Bluetooth headset is detached from the user's right ear.
- the motion trajectory of the second Bluetooth headset has no obvious radian change It can be considered that the second Bluetooth headset is not separated from the user's right ear.
- S503 Use the wireless audio playback device in a preset state as the first wireless audio playback device, and then the audio data played by the first wireless audio playback device during the mixing playback process is the first audio data.
- S505 Control the second wireless audio playback device to play the first audio data and the second audio data at the same time, so as to implement mixing playback.
- the wireless audio playback device is a Bluetooth headset
- the user wears a first Bluetooth headset and a second Bluetooth headset
- the first Bluetooth headset plays the left channel data of the target audio
- the second Bluetooth headset plays the target
- the right channel data of the audio and the first Bluetooth headset and the second Bluetooth headset play the target audio at the same time
- the user can listen to the stereo effect of the target audio through the first Bluetooth headset and the second Bluetooth headset.
- the user can control the second Bluetooth headset through the electronic device to continue playing the left channel data and the right channel data of the target audio, so as to achieve a stereo effect through the second Bluetooth headset.
- the user has a habit of answering calls using a Bluetooth headset.
- the Bluetooth headset is in the wearing state at this time, the user may still give up using one of the Bluetooth headsets to listen to audio data and use it to answer the call.
- FIG. 6, shows an audio playing method provided by another embodiment of the present application, which is applied to the above electronic device. Specifically, the method includes S601 to S606.
- the audio playback request is used to play a preset type of audio.
- the preset type of audio may be voice or audio in a video.
- the preset type of audio is a voice call type. Audio.
- the audio playback request input based on the application operated by the user can determine the type of audio corresponding to the audio playback request, for example, the audio playback input by the user clicking a certain audio or video playback button of the music playback software Request, the audio type corresponding to the audio playback request is pure audio or video.
- the electronic device when the electronic device receives an incoming call, that is, when a telephone ringtone or a vibration reminder sounds, the electronic device can detect and display an incoming call interface on the screen. The user clicks the answer key in the incoming call interface to establish a call connection between the current number of the electronic device and the incoming call number.
- the phone status of the electronic device can be monitored through the phone manager in the system of the electronic device, so that it can be monitored whether the electronic device is in a call mode.
- the phone manager is an application module in the system of the electronic device, and the user obtains the call status of the electronic device. For example, when the system of the electronic device is an Android system, the phone manager is a TelephonyManager.
- the answering interface is displayed, and the answering button is displayed on the answering interface.
- the user can click the answering button to connect the call.
- the ON button is clicked, an audio playback request input by the user is obtained, and the audio playback requests the user to play the voice of a call during the call of the electronic device, that is, a voice call type audio.
- S602 If acquired, determine a wireless audio playback device corresponding to the audio playback request.
- the user can play the audio data during the call through the default wireless headset.
- the user sets the wireless headset for receiving the call through the electronic device, which can be two wireless headsets or one of them.
- Wireless headset when the user clicks the answer button shown in Figure 7, an audio playback request will be input, and the call will be answered through the wireless headset set by default, that is, the wireless audio playback device corresponding to the audio playback request is a preset
- the wireless audio playback device can determine the wireless audio playback device corresponding to the audio playback request.
- the user when answering a call, the user can choose which wireless audio playback device to use to answer the call.
- two answer buttons are provided on the interface, namely a first answer button and a second answer button, wherein the first answer button and the second answer button correspond to different wireless headsets, specifically
- the first answer button corresponds to the wireless earphone worn on the left ear
- the second answer button corresponds to the wireless earphone worn on the right ear.
- the user can input an audio playback request by clicking one of the answer buttons, and the electronic device can determine the wireless headset corresponding to the audio playback request by detecting the first answer button and the second answer button.
- S603 Determine the use state of the wireless audio playback device corresponding to the audio playback request as being in a preset state.
- a user wants to use a certain wireless headset to play audio data during a call, it means that the wireless headset can no longer be used to listen to the mix playback, but needs to play the audio data during the call, then it is determined that the wireless playback corresponding to the audio playback request
- the use state of the audio playback device is determined to be in a preset state, and the other wireless headset is deemed not to be in a predetermined state.
- the wireless audio playback device when it is determined that the wearing state of the wireless audio playback device is an unworn state, it is determined that the wireless audio playback device is in a preset state, and if the wearing state of the wireless audio playback device is a worn state, the wireless audio device is determined again. Whether the playback device wants to play a preset type of audio.
- the first Bluetooth headset and the second Bluetooth headset as an example, if the first Bluetooth headset is taken off, that is, it is in an unworn state, it is determined whether the second Bluetooth headset wants to play a preset type of audio, and if so, then The subsequent steps S604 to S606 are not performed because the playback priority of the preset type of audio is higher, for example, the audio call type audio has the highest playback level, and other types of audio data can be prioritized and played first.
- the wearing status of each of the wireless audio playback devices is acquired. If the wearing state is the non-wearing state, it is determined that the wireless audio playback device is in a preset state; otherwise, it is detected whether an audio playback request is obtained, and the audio playback request is used to play a preset type of audio.
- the wireless audio playback device corresponding to the audio playback request if the use status of the wireless audio playback device corresponding to the audio playback request is a worn state, the method is ended, otherwise, the process continues to S604.
- the two wireless headsets before detecting whether an audio playback request is obtained, it may be determined whether the two wireless headsets are in a wearing state. Specifically, when two wireless audio playback devices are playing different audio data, In order to achieve mixing playback, the wearing status of each of the wireless audio playback devices is acquired. If the wearing status of each of the wireless audio playback devices is a worn status, it is detected whether an audio playback request is obtained, and the audio The playback request is used to play a preset type of audio; if it is obtained, a wireless audio playback device corresponding to the audio playback request is determined; a use state of the wireless audio playback device corresponding to the audio playback request is determined to be in a preset state.
- S604 Use the wireless audio playback device in a preset state as the first wireless audio playback device, and then the audio data played by the first wireless audio playback device during the mixing playback process is the first audio data.
- S606 Control the second wireless audio playback device to play the first audio data and the second audio data at the same time, so as to implement mixing playback.
- the wireless audio playback device is a Bluetooth headset
- the user wears a first Bluetooth headset and a second Bluetooth headset
- the first Bluetooth headset plays the left channel data of the target audio
- the second Bluetooth headset plays the target
- the right channel data of the audio and the first Bluetooth headset and the second Bluetooth headset play the target audio at the same time, the user can listen to the stereo effect of the target audio through the first Bluetooth headset and the second Bluetooth headset.
- the user can control the second Bluetooth headset through the electronic device to continue playing the left channel data and the right channel data of the target audio to achieve the
- the second Bluetooth headset listens to the stereo effect, and the first Bluetooth headset can play audio during a call, so that the user can play stereo audio while receiving a call.
- the playback volume of the second wireless audio playback device needs to be adjusted. Specifically, controlling the second wireless audio device The audio playback device plays the first audio data and the second audio data at the same time to realize the mixed playback, including: reducing the playback volume of the second wireless audio playback device, and controlling the second wireless audio playback device to reduce the playback after The volume plays the first audio data and the second audio data at the same time to achieve mixed playback.
- the electronic device sends a volume acquisition request to the second wireless audio playback device.
- the volume acquisition request feedbacks the playback volume of the second wireless audio playback device.
- an audio playback client is provided in the electronic device, the audio playback client requests to play audio data, and the user can adjust the playback volume of the audio data of the mixed playback through the audio playback client, that is, can Set the playback volume when the first wireless audio playback device or the second wireless audio playback device plays audio data.
- the playback volume when the electronic device plays a preset type of audio, that is, the call volume during a call, and determine the relationship between the two. If the playback volume of the second wireless audio playback device is greater than that of the first wireless audio playback device, When the playback volume is set for the type of audio, the playback volume of the second wireless audio playback device is reduced.
- the first wireless audio playback device and the second wireless audio playback device both play audio data at a first volume to achieve the effect of mixing playback. Then, when a user uses the first wireless audio playback device to answer a call, If the call volume is the second volume, the difference between the first volume and the second volume is obtained. Based on the difference, the relationship between the first volume and the second volume can be determined.
- the first volume is The volume reduction may be specifically lowering the first volume to be lower than the second volume, more specifically, it may be to obtain half of the absolute value of the volume difference between zero and the second volume, and record it as the third volume. One volume is adjusted to the second volume.
- the user can listen to the audio data of the mixed audio while receiving the call, and the volume of the audio data of the mixed audio playback is lower than the volume of the call of the received telephone, so that the user does not overdo the audio data played by the audio mixing. Too big to hear the voice during a call.
- FIG. 9 shows a structural block diagram of an audio playback device 900 according to an embodiment of the present application.
- the device may include a detection unit 901, a first determination unit 902, a second determination unit 903, and a playback unit 904.
- a detecting unit 901 is configured to determine whether each of the wireless audio playback devices is in a preset state when two of the wireless audio playback devices are playing different audio data to implement mixed audio playback.
- the first determining unit 902 is configured to use the wireless audio playback device in a preset state as the first wireless audio playback device, and then the audio data played by the first wireless audio playback device during the mixing playback process is the first audio data .
- a second determining unit 903 is configured to use a wireless audio playback device that is not in a preset state as the second wireless audio playback device, and then the audio data played by the second wireless audio playback device during the mixing playback process is the second audio data.
- the playback unit 904 is configured to control the second wireless audio playback device to play the first audio data and the second audio data at the same time, so as to implement mixing playback.
- the coupling between the modules may be electrical, mechanical, or other forms of coupling.
- each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist separately physically, or two or more modules may be integrated into one module.
- the above integrated modules may be implemented in the form of hardware or software functional modules.
- the electronic device 100 may be an electronic device capable of running an application program, such as a smart phone, a tablet computer, or an e-book.
- the electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a Bluetooth module 140, and one or more application programs.
- One or more of the application programs may be stored in the memory 120 and stored in the memory 120. It is configured to be executed by one or more processors 110, and one or more programs are configured to execute the method as described in the foregoing method embodiment.
- the processor 110 may include one or more processing cores.
- the processor 110 uses various interfaces and lines to connect various parts in the entire electronic device 100, and executes or executes instructions, programs, code sets, or instruction sets stored in the memory 120 by calling or executing data stored in the memory 120 to execute Various functions and processing data of the electronic device 100.
- the processor 110 may use at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). To implement a hardware form.
- the processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem.
- CPU Central Processing Unit
- GPU Graphics Processing Unit
- modem modem
- the CPU mainly handles the operating system, user interface, and application programs; the GPU is responsible for rendering and rendering of the displayed content; the modem is used for wireless communication. It can be understood that the modem may not be integrated into the processor 110, and may be implemented by a single communication chip.
- the memory 120 may include Random Access Memory (RAM), and may also include Read-Only Memory.
- the memory 120 may be used to store instructions, programs, codes, code sets, or instruction sets.
- the memory 120 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , Instructions for implementing the following method embodiments, and the like.
- the storage data area may also store data (such as phonebook, audio and video data, and chat history data) created by the terminal 100 during use.
- the Bluetooth module 140 is configured to implement a Bluetooth connection between the electronic device and the Bluetooth device, and data interaction with the Bluetooth device. Specifically, it can communicate with Bluetooth devices through the Bluetooth protocol 5.0 / 4.2 / 4.1 / 2.1 / 2.0, or through Bluetooth Low Energy (BLE), Enhanced Data Rate (EDR), or Bluetooth basic rate. (Base, Rate, BR) and so on.
- the Bluetooth module 140 may include a power amplifier, a wireless transceiver, a transceiver switch, a low-noise amplifier, and an antenna.
- the transceiver When transmitting a signal, the transceiver itself will output a weak RF signal of low power directly, send it to a Power Amplifier (PA) for power amplification, and then radiate it to the antenna via Antenna through the Transmit / Receive Switch. space.
- PA Power Amplifier
- the antenna When receiving a signal, the antenna will sense the electromagnetic signal in the space, and then send it to a Low Noise Amplifier (LNA) for amplification after switching, so that the amplified signal can be sent directly to the transceiver for processing.
- LNA Low Noise Amplifier
- the Bluetooth module 140 can use the 2.4 GHz frequency band.
- FIG. 11 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
- the computer-readable medium 1100 stores program code, and the program code can be called by a processor to execute a method described in the foregoing method embodiment.
- the computer-readable storage medium 1100 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM.
- the computer-readable storage medium 1100 includes a non-transitory computer-readable storage medium.
- the computer-readable storage medium 1100 has a storage space of a program code 1110 for performing any of the method steps in the above method. These program codes can be read from or written into one or more computer program products.
- the program code 1110 may be compressed in a suitable form, for example.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Circuit For Audible Band Transducer (AREA)
- Telephone Function (AREA)
Abstract
La présente invention concerne un procédé et un appareil de lecture audio, un dispositif électronique et un support lisible par ordinateur, se rapportant au domaine technique des communications. Le procédé comprend les étapes consistant à : lorsque deux dispositifs de lecture audio sans fil lisent différentes données audio pour réaliser une lecture mixte, déterminer si chacun des dispositifs de lecture audio sans fil est dans un état prédéfini ; prendre le dispositif de lecture audio sans fil dans l'état prédéfini en tant que premier dispositif de lecture audio sans fil, et prendre les données audio lues par celui-ci en tant que premières données audio ; prendre le dispositif de lecture audio sans fil non dans l'état prédéfini en tant que second dispositif de lecture audio sans fil, et prendre les données audio lues par celui-ci en tant que secondes données audio ; et commander le second dispositif de lecture audio sans fil pour lire simultanément les premières données audio et les secondes données audio de façon à réaliser une lecture mixte. Par conséquent, même si un utilisateur abandonne l'utilisation d'un des dispositifs de lecture audio sans fil pour écouter les données audio, l'autre dispositif de lecture audio sans fil peut également lire simultanément les deux éléments de données audio pour obtenir l'effet de lecture mixte.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811161376.5A CN109379490B (zh) | 2018-09-30 | 2018-09-30 | 音频播放方法、装置、电子设备及计算机可读介质 |
CN201811161376.5 | 2018-09-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020063069A1 true WO2020063069A1 (fr) | 2020-04-02 |
Family
ID=65402891
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/097146 WO2020063069A1 (fr) | 2018-09-30 | 2019-07-22 | Procédé et appareil de lecture audio, dispositif électronique et support lisible par ordinateur |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109379490B (fr) |
WO (1) | WO2020063069A1 (fr) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109379490B (zh) * | 2018-09-30 | 2021-02-05 | Oppo广东移动通信有限公司 | 音频播放方法、装置、电子设备及计算机可读介质 |
CN109831833B (zh) * | 2019-03-18 | 2021-01-05 | 成都极客通科技有限公司 | 一种基于混音控制的紧急插话系统及方法 |
CN110505610A (zh) * | 2019-04-30 | 2019-11-26 | 努比亚技术有限公司 | 通信管理方法、设备、系统及可读存储介质 |
CN116097663A (zh) * | 2020-10-28 | 2023-05-09 | Oppo广东移动通信有限公司 | 音频控制方法和设备 |
CN114650496B (zh) * | 2022-03-07 | 2024-09-27 | 维沃移动通信有限公司 | 音频播放方法和电子设备 |
CN115022777A (zh) * | 2022-06-08 | 2022-09-06 | Oppo广东移动通信有限公司 | 音频播放参数更新方法、音频数据调整方法、装置及介质 |
WO2024040527A1 (fr) * | 2022-08-25 | 2024-02-29 | Qualcomm Incorporated | Audio spatial utilisant un dispositif audio unique |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100020998A1 (en) * | 2008-07-28 | 2010-01-28 | Plantronics, Inc. | Headset wearing mode based operation |
CN104159173A (zh) * | 2014-08-27 | 2014-11-19 | 宇龙计算机通信科技(深圳)有限公司 | 耳机、耳机应用方法、耳机控制方法与装置及移动终端 |
CN105472496A (zh) * | 2015-11-21 | 2016-04-06 | 惠州Tcl移动通信有限公司 | 蓝牙耳机及其自动通断方法 |
CN106341757A (zh) * | 2016-09-30 | 2017-01-18 | 宇龙计算机通信科技(深圳)有限公司 | 一种音源同时播放方法、装置及终端 |
CN108076306A (zh) * | 2017-12-29 | 2018-05-25 | 中兴通讯股份有限公司 | 会议实现方法、装置、设备和系统、计算机可读存储介质 |
CN108108146A (zh) * | 2018-01-19 | 2018-06-01 | 深圳市沃特沃德股份有限公司 | 多个播放设备同步播放的方法与播放设备 |
CN109379490A (zh) * | 2018-09-30 | 2019-02-22 | Oppo广东移动通信有限公司 | 音频播放方法、装置、电子设备及计算机可读介质 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107295434A (zh) * | 2017-05-26 | 2017-10-24 | 广东思派康电子科技有限公司 | Tws耳机和实现tws耳机声乐同播的计算机可读存储介质 |
-
2018
- 2018-09-30 CN CN201811161376.5A patent/CN109379490B/zh active Active
-
2019
- 2019-07-22 WO PCT/CN2019/097146 patent/WO2020063069A1/fr active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100020998A1 (en) * | 2008-07-28 | 2010-01-28 | Plantronics, Inc. | Headset wearing mode based operation |
CN104159173A (zh) * | 2014-08-27 | 2014-11-19 | 宇龙计算机通信科技(深圳)有限公司 | 耳机、耳机应用方法、耳机控制方法与装置及移动终端 |
CN105472496A (zh) * | 2015-11-21 | 2016-04-06 | 惠州Tcl移动通信有限公司 | 蓝牙耳机及其自动通断方法 |
CN106341757A (zh) * | 2016-09-30 | 2017-01-18 | 宇龙计算机通信科技(深圳)有限公司 | 一种音源同时播放方法、装置及终端 |
CN108076306A (zh) * | 2017-12-29 | 2018-05-25 | 中兴通讯股份有限公司 | 会议实现方法、装置、设备和系统、计算机可读存储介质 |
CN108108146A (zh) * | 2018-01-19 | 2018-06-01 | 深圳市沃特沃德股份有限公司 | 多个播放设备同步播放的方法与播放设备 |
CN109379490A (zh) * | 2018-09-30 | 2019-02-22 | Oppo广东移动通信有限公司 | 音频播放方法、装置、电子设备及计算机可读介质 |
Also Published As
Publication number | Publication date |
---|---|
CN109379490A (zh) | 2019-02-22 |
CN109379490B (zh) | 2021-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020063069A1 (fr) | Procédé et appareil de lecture audio, dispositif électronique et support lisible par ordinateur | |
WO2020063047A1 (fr) | Procédé et appareil de reproduction audio, dispositif électronique et support de stockage | |
WO2020063046A1 (fr) | Procédé et dispositif de lecture audio, dispositif électronique et support de mémoire | |
WO2019090726A1 (fr) | Procédé de sélection de dispositif bluetooth, terminal et système | |
WO2021184920A1 (fr) | Procédé et appareil pour masquer un son, et dispositif de terminal | |
CN109151566B (zh) | 音频播放方法、装置、电子设备及计算机可读介质 | |
US20200402513A1 (en) | Bluetooth speaker base, method and system for controlling thereof | |
WO2017181365A1 (fr) | Procédé de commande de canal d'écouteur, appareil associé et système | |
US20040147282A1 (en) | Electronic apparatus having a wireless communication device communicating with at least two device | |
KR20090007694A (ko) | 오디오 헤드셋 | |
WO2020019820A1 (fr) | Procédé de détection d'obstruction de trou de microphone et produit associé | |
US10827455B1 (en) | Method and apparatus for sending a notification to a short-range wireless communication audio output device | |
WO2020063065A1 (fr) | Procédé et appreil de transmission audio, dispositif électronique et support de stockage | |
CN114245328B (zh) | 语音通话转移方法及电子设备 | |
WO2019174492A1 (fr) | Procédé de détection de données d'appel vocal, dispositif, support de stockage et terminal mobile | |
WO2024055494A1 (fr) | Procédé et appareil d'appel basés sur un écouteur bluetooth, et support de stockage | |
US20220286538A1 (en) | Earphone device and communication method | |
KR20170043319A (ko) | 전자 장치 및 전자 장치의 오디오 출력 방법 | |
WO2020082387A1 (fr) | Procédé permettant de changer un canal audio et dispositif associé | |
WO2023185589A1 (fr) | Procédé de contrôle de volume et dispositif électronique | |
WO2018035868A1 (fr) | Procédé de sortie audio, dispositif électronique, et support de stockage | |
US10735881B2 (en) | Method and apparatus for audio transfer when putting on/removing headphones plus communication between devices | |
US11665271B2 (en) | Controlling audio output | |
CN108337715A (zh) | 无线网络连接方法、装置、终端设备及存储介质 | |
WO2020019822A1 (fr) | Procédé de détection de blocage de trou de microphone et produit associé |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19867808 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19867808 Country of ref document: EP Kind code of ref document: A1 |