WO2017166686A1 - 外接扬声器切换方法及装置 - Google Patents

外接扬声器切换方法及装置 Download PDF

Info

Publication number
WO2017166686A1
WO2017166686A1 PCT/CN2016/097309 CN2016097309W WO2017166686A1 WO 2017166686 A1 WO2017166686 A1 WO 2017166686A1 CN 2016097309 W CN2016097309 W CN 2016097309W WO 2017166686 A1 WO2017166686 A1 WO 2017166686A1
Authority
WO
WIPO (PCT)
Prior art keywords
external speaker
speaker
external
electronic device
performance
Prior art date
Application number
PCT/CN2016/097309
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 WO2017166686A1 publication Critical patent/WO2017166686A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Definitions

  • Embodiments of the present disclosure relate to the field of multimedia playback technologies, and in particular, to an external speaker switching method and apparatus.
  • electronic devices are constantly moving toward miniaturization and ultra-thin. Due to limited internal space, electronic devices cannot expand the space for improving audio playback. At the same time, as people's living standards improve, users can play audio on electronic devices. The effect is also constantly improved, so the user chooses to replace the internal speaker of the electronic device with a speaker with better external performance in the electronic device, thereby achieving better audio playback effect to meet the needs of the user, wherein the electronic device can be a smart television, a laser television and a projection. Instrument and so on.
  • the inventors have found that at least the following problems exist in the related art: in life, the user generally does not compare the performance of the internal speaker of the electronic device and the external speaker, but blindly connects the external speaker and the electronic device. The internal speakers are switched. The performance of the external speaker is not as good as that of the internal speaker of the electronic device, so that the audio playback effect is degraded.
  • Embodiments of the present disclosure provide an external speaker switching method and apparatus to solve the problem that the performance of an external speaker connected to an electronic device is not blindly switched when the performance of the internal speaker is better.
  • an embodiment of the present disclosure provides a method for switching an external speaker of an electronic device, where the method includes:
  • determining, according to a comparison result between the performance parameter of the external speaker and the performance parameter of the internal speaker, whether to switch to the external speaker for audio playback comprises: acquiring an identifier of the external speaker; and determining, according to the identifier of the external speaker Obtaining performance parameters of the external speaker in the database; comparing performance parameters of the external speaker with performance parameters of the internal speaker; determining whether to switch to an external speaker for audio playback according to the comparison result.
  • determining, according to a comparison result between the performance parameter of the external speaker and the performance parameter of the internal speaker, whether to switch to the external speaker for audio playback comprises: acquiring an identifier of the external speaker; according to the identifier of the external speaker Obtaining a comparison result between the performance parameter of the external speaker and the performance parameter of the internal speaker in the database; determining whether to switch to an external speaker for audio playback according to the comparison result.
  • determining, according to a comparison result between the performance parameter of the external speaker and the performance parameter of the internal speaker, whether to switch to the external speaker for audio playback comprises: switching the electronic device to an external speaker for audio playback; The device obtains the performance parameters of the external speaker and compares it with the performance parameters of the internal speaker to generate a comparison result; if the comparison result is that the performance of the external speaker is better than that of the internal speaker, the external speaker continues to be used for audio playback; if the comparison result is The performance of the internal speakers is better than the performance of the external speakers, then switch to the internal speakers for audio playback.
  • the database includes a local database and/or a cloud database.
  • determining, according to a comparison result between the performance parameter of the external speaker and the performance parameter of the internal speaker, whether to switch to the external speaker for audio playback comprises: displaying a comparison result to the user, and prompting the user whether to switch to the external speaker; When receiving the confirmation message that the user switches to the external speaker, it switches to the external speaker for audio playback.
  • the performance parameter includes at least one of a frequency response range, a harmonic distortion, a signal to noise ratio, and a channel number.
  • an embodiment of the present disclosure further provides a switching device for an external speaker of an electronic device, the device comprising:
  • a detecting module configured to detect whether the electronic device is connected to an external speaker
  • a switching module configured to determine whether to switch to an external connection according to a comparison result between the performance parameter of the external speaker and the performance parameter of the internal speaker, if it is detected that the external speaker is connected to the electronic device
  • the speaker plays audio.
  • the switching module includes: a first identifier acquiring submodule, configured to acquire an identifier of the external speaker after detecting that the electronic device is connected with an external speaker; and a performance parameter obtaining submodule, configured to The identifier of the external speaker is obtained from the database to obtain the performance parameter of the external speaker; the comparison submodule is configured to compare the performance parameter of the external speaker with the performance parameter of the internal speaker; the first speaker switching submodule is configured according to The comparison result determines whether to switch to an external speaker for audio playback.
  • the switching module includes: a second identifier acquiring submodule, configured to acquire an identifier of the external speaker after detecting that the electronic device is connected to the external speaker; and comparing the result obtaining submodule, according to the The identifier of the external speaker is obtained from the database to obtain a comparison result between the performance parameter of the external speaker and the performance parameter of the internal speaker; and the second speaker switching sub-module is configured to determine whether to switch to the external speaker for audio playback according to the comparison result.
  • the switching module includes: an audio playing submodule, configured to switch the electronic device to an external speaker for audio playback after detecting that the electronic device is connected to the external speaker; the sounding submodule is configured to: Obtaining the performance parameters of the external speaker through the sounding device, and comparing with the performance parameters of the internal speaker to generate a comparison result; the external speaker playing sub-module is used to continue the performance of the external speaker if the comparison result is better than the performance of the internal speaker, then continue Audio playback is performed using an external speaker; the internal speaker playback sub-module is used to switch to the internal speaker for audio playback if the result of the comparison is that the performance of the internal speaker is better than that of the external speaker.
  • an audio playing submodule configured to switch the electronic device to an external speaker for audio playback after detecting that the electronic device is connected to the external speaker
  • the sounding submodule is configured to: Obtaining the performance parameters of the external speaker through the sounding device, and comparing with the performance parameters of the internal speaker to generate a comparison result
  • the database includes a local database and/or a cloud database.
  • the switching module includes: a prompting sub-module, configured to display a comparison result to the user, and prompt the user to switch to an external speaker; and confirm the switching sub-module for receiving confirmation information that the user switches to the external speaker, Then switch to the external speaker for audio playback.
  • a prompting sub-module configured to display a comparison result to the user, and prompt the user to switch to an external speaker; and confirm the switching sub-module for receiving confirmation information that the user switches to the external speaker, Then switch to the external speaker for audio playback.
  • the performance parameter includes at least one of a frequency response range, a harmonic distortion, a signal to noise ratio, and a channel number.
  • the embodiment of the present disclosure determines whether to switch to the external speaker according to a comparison result between the performance parameter of the external speaker and the performance parameter of the internal speaker after detecting that the external speaker is connected to the electronic device, instead of directly switching the electronic device to
  • the external speaker is used to solve the problem that the performance of the external speaker connected to the electronic device is not blindly switched when the performance of the internal speaker is good, and the audio playback effect and user experience of the electronic device are improved.
  • FIG. 1 is a flowchart of a method for switching an external speaker of an electronic device according to Embodiment 1 of the present disclosure
  • FIG. 2 is a flowchart of a method for switching an external speaker of an electronic device according to Embodiment 2 of the present disclosure
  • FIG. 3 is a flowchart of a method for switching an external speaker of an electronic device according to Embodiment 3 of the present disclosure
  • FIG. 4 is a flowchart of a method for switching an external speaker of an electronic device according to Embodiment 4 of the present disclosure
  • FIG. 5 is a schematic structural diagram of a switching device for an external speaker of an electronic device according to Embodiment 5 of the present disclosure.
  • FIG. 6 is a schematic structural diagram of hardware of an electronic device according to an embodiment of the present disclosure.
  • Embodiment 1 is a flowchart of a method for switching an external speaker of an electronic device according to Embodiment 1 of the present disclosure.
  • the embodiment is applicable to an electronic device determining whether to switch the connected external speaker.
  • the method may be performed by an electronic device.
  • the switching device of the external speaker is implemented, and the device can be implemented by software and/or hardware.
  • the method for switching an external speaker of an electronic device provided by this embodiment specifically includes the following steps S110 and S120:
  • step S110 it is detected whether an external speaker is connected to the electronic device.
  • the electronic device may be a smart television, a laser television or a projector.
  • External speaker The speaker can be a wired speaker or a wireless speaker.
  • the external speaker can be either an original speaker or a non-original speaker.
  • the detecting whether the electronic device is connected to the external speaker may be, whether the connection pin of the connection interface between the external speaker and the electronic device is turned on, determining whether a speaker connected by a wire connection is connected; The wireless pairing signal of the external speaker is detected to determine whether a wirelessly connected speaker is connected.
  • step S120 if it is detected that the external device is connected to the electronic device, it is determined whether to switch to an external speaker for audio playback according to a comparison result between the performance parameter of the external speaker and the performance parameter of the internal speaker.
  • the comparison between the performance parameter of the external speaker and the performance parameter of the internal speaker may be: the performance of the external speaker is better than the performance of the internal speaker, the performance of the internal speaker is better than the performance of the external speaker or the performance of the external speaker and the internal speaker The performance is similar. If the result of the comparison is that the performance of the external speaker is better than that of the internal speaker, switch the electronic device to an external speaker for audio playback; if the performance of the internal speaker is better than the performance of the external speaker, or the performance of the external speaker and the performance of the internal speaker Similarly, continue to use the internal speakers for audio playback.
  • the performance parameter may include one or more of a frequency response range, a harmonic distortion, a signal to noise ratio, and a channel number.
  • determining, according to a comparison result between the performance parameter of the external speaker and the performance parameter of the internal speaker, whether to switch to the external speaker for audio playback may include: displaying a comparison result to the user, and prompting the user whether to switch to the external speaker; If the confirmation message that the user switches to the external speaker is received, switch to the external speaker for audio playback. If the confirmation message that the user switches to the external speaker is not received, the internal speaker continues to be used for audio playback.
  • the technical solution of the embodiment determines whether to switch to the external speaker according to a comparison result between the performance parameter of the external speaker and the performance parameter of the internal speaker after detecting that the external speaker is connected to the electronic device, instead of the electronic device Switching directly to the external speaker to solve the problem that the performance of the external speaker connected to the electronic device is not blindly switched when the performance of the internal speaker is good, and the audio playback effect and user experience of the electronic device are improved.
  • FIG. 2 is a flowchart of a method for switching an external speaker of an electronic device according to Embodiment 2 of the present disclosure.
  • the method for switching the external speaker of the electronic device provided by this embodiment specifically includes the following steps S210, S220, S230, S240, and S250:
  • step S210 it is detected whether an external speaker is connected to the electronic device.
  • step S220 if it is detected that the external device is connected to the electronic device, the identifier of the external speaker is acquired.
  • the identifier of the external speaker may include the brand of the external speaker and the model of the external speaker.
  • the brand and model of the external speakers can be obtained by radio frequency identification technology or wireless communication handshake protocol.
  • step S230 the performance parameter of the external speaker is obtained from the database according to the identifier of the external speaker.
  • the identifier of the speaker and the performance parameter of the correspondingly identified speaker may be included in the database.
  • Obtaining, according to the identifier of the external speaker, the performance parameter of the external speaker from the database may be: searching a speaker in the database that matches the identifier of the external speaker, and reading the matching speaker from the database Performance parameters.
  • the database may include a local database and/or a cloud database.
  • the local database may be disposed inside the electronic device or in a storage medium connected to the electronic device.
  • the cloud database is set up in the database on the remote server. The number of speaker identifiers and speaker performance parameters stored in the cloud database is greater than the number of speakers stored in the local database and the number of performance parameters of the speaker.
  • the method for obtaining the performance parameter of the external speaker from the database according to the identifier of the external speaker may be: searching for a speaker matching the identifier of the external speaker from the local database, if the identifier of the external speaker is found to match a consistent speaker, the performance parameter of the matched speaker is obtained from the local database; or, the speaker matching the identifier of the external speaker is searched from the remote database, and if the identifier of the external speaker is found to match Consistent speakers get the performance parameters of the matching speaker from the local database.
  • the identification of the commonly used speakers and the performance parameters of the correspondingly identified speakers can be stored in the local database.
  • Stored in the cloud database in addition to the identification of the speaker stored in the local database and the performance parameters of the corresponding identified speaker, the identification of the speaker and the performance parameters of the corresponding identified speaker.
  • the speaker in the local database is matched with the identifier of the external speaker, and if the external speaker is found If the identifier of the device matches the consistent speaker, the performance parameter of the matched speaker is obtained from the local database; if the speaker that matches the identifier of the external speaker is not found in the local database, the search is performed in the cloud database.
  • the identifier of the external speaker is matched with the consistent speaker; if the speaker matching the identifier of the external speaker is found in the cloud database, the performance parameter of the matched speaker is obtained from the cloud database.
  • step S240 comparing the performance parameter of the external speaker with the performance parameter of the internal speaker
  • the performance parameters of the internal speakers can be obtained from a local database, a cloud database or other storage media.
  • the performance parameter of the external speaker and the performance parameter of the internal speaker may be compared, when there is only one performance parameter, the value corresponding to the performance parameter of the external speaker is compared with the value of the corresponding performance parameter in the internal speaker. If the value corresponding to the performance parameter of the external speaker is greater than or less than the value of the corresponding performance parameter in the internal speaker, it is judged that the performance of the external speaker is superior to the internal speaker.
  • the performance of the external speaker is better than the internal speaker; if the harmonic distortion of the external speaker is smaller than the corresponding performance parameter in the internal speaker, Then it is judged that the performance of the external speaker is superior to that of the internal speaker.
  • the determination may be made according to a preset performance parameter comparison criterion.
  • the preset performance parameter comparison criterion may be that if one or two performance parameters specified in the plurality of performance parameters of the external speaker are superior to the corresponding performance parameters in the internal speaker, determining that the performance of the external speaker is better than the internal performance speaker.
  • the external speaker is 5.1 channel
  • the external speaker includes 6 channels, including a center channel, a front left channel, a front right channel, a rear left channel, a rear right channel, and
  • the bass channel has a channel count of 6
  • the internal speaker is 2.1 channels
  • the internal speaker includes 3 channels, including the left channel, the right channel, and a bass channel, and the number of channels is 3.
  • the preset performance parameter comparison criterion is that if the number of channels of the external speaker is greater than the number of channels in the internal speaker, it is judged that the performance of the external speaker is superior to that of the internal speaker. Because the number of channels of the external speaker is greater than the number of channels of the internal speaker, it can be judged that the performance of the external speaker is better than that of the internal speaker according to the preset performance parameter comparison standard.
  • step S250 it is determined whether to switch to an external speaker for audio playback based on the comparison result.
  • the speaker is connected to solve the problem that the performance of the external speaker connected to the electronic device is not blindly switched when the performance of the internal speaker is good, and the audio playing effect and user experience of the electronic device are improved.
  • FIG. 3 is a flowchart of a method for switching an external speaker of an electronic device according to Embodiment 3 of the present disclosure.
  • the method for switching the external speaker of the electronic device provided by this embodiment specifically includes the following steps S310, S320, S330, and S340:
  • the database may include a comparison result of the identifier of the speaker and the performance parameter of the speaker corresponding to the internal speaker and the identifier, and the comparison result may be obtained by preset.
  • the database may include a local database and/or a cloud database.
  • the method for obtaining a comparison result between the performance parameter of the external speaker and the performance parameter of the internal speaker from the database according to the identifier of the external speaker may be: searching in the local database for matching with the identifier of the external speaker a speaker, if a speaker matching the identifier of the external speaker is found, obtaining a comparison result of the performance parameter of the matched speaker and the internal speaker from a local database; or searching for the external connection in the cloud database
  • the identifier of the speaker matches the consistent speaker; if a speaker matching the identifier of the external speaker is found in the cloud database, the comparison result of the performance parameter of the matched speaker and the internal speaker is obtained from the cloud database.
  • a speaker matching the identifier of the external speaker is searched in the local database, and if the external connection is found If the identifier of the speaker matches the consistent speaker, the comparison result of the performance parameter of the matched speaker and the internal speaker is obtained from the local database; if the speaker matching the identifier of the external speaker is not found in the local database, then Finding, in the cloud database, a speaker that matches the identifier of the external speaker; if a speaker matching the identifier of the external speaker is found in the cloud database, the matching one is obtained from the cloud database. The result of comparing the performance parameters of the speaker to the internal speaker.
  • S340 Determine, according to the comparison result, whether to switch to an external speaker for audio playback.
  • FIG. 4 is a flowchart of a method for switching an external speaker of an electronic device according to Embodiment 4 of the present disclosure.
  • the method for switching the external speaker of the electronic device provided by this embodiment specifically includes the following steps S410, S420, S430, S440, and S450:
  • S430 Obtain performance parameters of the external speaker through the sound recognition device, and compare with the performance parameters of the internal speaker to generate a comparison result.
  • the sound recognition device is a device capable of analyzing audio played by the received external speaker and generating performance parameters corresponding to the external speaker. Specifically, after obtaining the performance parameter of the external speaker through the sound recognition device, the obtained performance parameter of the external speaker is compared with the performance parameter of the internal speaker, and a comparison result is generated.
  • the performance parameters of the external speaker are obtained by the sound recognition device, and compared with the performance parameters of the internal speaker to generate a comparison result. According to the comparison result, it is determined whether to switch to the external speaker to solve the problem that the performance of the external speaker connected to the electronic device is not blindly switched when the performance of the internal speaker is good, and the audio playing effect and the user experience of the electronic device are improved.
  • FIG. 5 is a schematic structural diagram of a switching device for an external speaker of an electronic device according to Embodiment 5 of the present disclosure. This embodiment can be applied to the case where the electronic device determines whether to switch the connected external speaker.
  • the switching device for the external speaker of the electronic device provided by this embodiment specifically includes: a detecting module 10 and a switching module 20.
  • the detecting module 10 may be configured to detect whether the electronic device is connected to an external speaker; the switching module 20 may be configured to: after detecting that the electronic device is connected with an external speaker, according to the performance parameter of the external speaker and the internal speaker The comparison of the performance parameters determines whether to switch to an external speaker for audio playback.
  • the switching module 20 may include a first identifier acquisition submodule, a performance parameter acquisition submodule, a comparison submodule, and a first speaker switching submodule.
  • the first identifier acquisition sub-module may be configured to acquire an identifier of the external speaker after detecting that the electronic device is connected to the external speaker;
  • the performance parameter acquisition sub-module may be configured to use the identifier of the external speaker from the database.
  • the comparison submodule may be configured to compare performance parameters of the external speaker with performance parameters of the internal speaker;
  • the first speaker switching submodule may be configured to determine whether to switch to the external speaker according to the comparison result Perform audio playback.
  • the switching module 20 may include a second identifier obtaining submodule, a comparison result obtaining submodule, and a second speaker switching submodule.
  • the second identifier obtaining sub-module may be configured to acquire an identifier of the external speaker after detecting that the electronic device is connected with the external speaker;
  • the comparison result obtaining sub-module may be configured to use the identifier of the external speaker from the database.
  • the second speaker switching sub-module may be configured to determine whether to switch to the external speaker for audio playback according to the comparison result.
  • the switching module 20 may include an audio play submodule, a sound recognition submodule, an external speaker play submodule, and an internal speaker play submodule.
  • the audio play sub-module can be configured to switch the electronic device to an external speaker for audio playback after detecting that the electronic device is connected with the external speaker; the sound recognition sub-module can be used to obtain the external speaker through the sound recognition device.
  • the performance parameters are compared with the performance parameters of the internal speakers to generate a comparison result; the external speaker playback sub-module can be used to continue to use the external speaker for audio playback if the comparison result is that the performance of the external speaker is better than that of the internal speaker; The speaker playback sub-module can be used to switch to the internal speaker for audio playback if the result of the comparison is that the performance of the internal speaker is better than that of the external speaker.
  • the database may include a local database and/or a cloud database.
  • the switching module 20 may include a prompting submodule and an acknowledgement switching submodule.
  • the prompt sub-module can be used to display the comparison result to the user, and prompt the user to switch to the external speaker;
  • the confirmation switching sub-module can be used to switch to the external speaker for audio playback if receiving the confirmation information that the user switches to the external speaker.
  • the performance parameter may include at least one of a frequency response range, a harmonic distortion, a signal to noise ratio, and a channel number.
  • the above product can perform the method provided by any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
  • a program instructing related hardware may be completed by a program instructing related hardware, and the program is stored in a storage medium, and includes a plurality of instructions for making a device (which may be a single chip microcomputer). , a chip, etc. or a processor performs all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
  • FIG. 6 is a schematic structural diagram of hardware of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 6, the electronic device includes:
  • One or more processors 601 and memory 602, one processor 601 is taken as an example in FIG.
  • the electronic device may further include: an input device 603 and an output device 604.
  • the processor 601, the memory 602, the input device 603, and the output device 604 in the electronic device may be connected by a bus or other means, and the bus connection is taken as an example in FIG.
  • the memory 602 is a non-volatile computer readable storage medium, and can be used for storing a non-volatile software program, a non-volatile computer executable program, and a module, such as a program corresponding to the external speaker switching method in the embodiment of the present application.
  • An instruction/module for example, the detection module 10 and the switching module 20 shown in FIG. 5.
  • the processor 601 implements an external speaker switching method by running non-volatile software programs, instructions, and modules stored in the memory 602.
  • the memory 602 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to an external speaker switching method use, and the like.
  • memory 602 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • the memory 602 can optionally include a processor 601 Remotely set memory.
  • Input device 603 can be used to receive input numeric or character information, as well as user settings and key signal inputs related to function control.
  • Output device 604 can include a display device such as a display screen.
  • the one or more modules are stored in the memory 602, and when executed by the one or more processors 601, perform an external speaker switching method in any of the above method embodiments.
  • the embodiment of the present disclosure further provides a non-transitory computer readable storage medium storing computer executable instructions, when the computer executable instructions are executed by an electronic device, causing the electronic device to perform the electronic device external connection of the above embodiment. How to switch speakers.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM).
  • the embodiment of the present disclosure determines whether to switch to the external speaker according to a comparison result between the performance parameter of the external speaker and the performance parameter of the internal speaker after detecting that the external speaker is connected to the electronic device, instead of directly switching the electronic device to
  • the external speaker is used to solve the problem that the performance of the external speaker connected to the electronic device is not blindly switched when the performance of the internal speaker is good, and the audio playback effect and user experience of the electronic device are improved.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

本公开实施例公开了一种电子设备外接扬声器的切换方法及装置,属于多媒体播放技术领域。该方法包括:检测所述电子设备是否连接有外接扬声器;若检测到所述电子设备连接有外接扬声器后,根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至外接扬声器进行音频播放。本公开实施例提供的电子设备外接扬声器的切换方法及装置,以解决电子设备所连接的外接扬声器的性能不如内部扬声器的性能好时盲目地进行切换的问题

Description

外接扬声器切换方法及装置
本申请要求在2016年3月31日提交中国专利局、申请号为2016101957368、名称为“外接扬声器切换方法及装置”的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本公开实施例涉及多媒体播放技术领域,尤其涉及一种外接扬声器切换方法及装置。
背景技术
目前,电子设备不断向着微型化和超薄方向发展,电子设备因为内部空间有限,导致扬声器不能为提高音频播放效果而扩大占用空间,同时随着人们生活水平的提高,用户对电子设备的音频播放效果也不断提升,因此用户选择在电子设备外接性能更好的扬声器替换电子设备内部扬声器,实现更好的音频播放效果以满足用户的需求,其中电子设备可以是智能电视机、激光电视机和投影仪等。
在实现本公开过程中,发明人发现相关技术中至少存在如下问题:生活中,用户一般对电子设备内部扬声器和外接扬声器的性能优劣并不进行比较,而是盲目地将外接扬声器与电子设备内部扬声器进行切换。导致外接扬声器的性能不如电子设备内部扬声器的性能好的问题,从而使音频播放效果下降。
发明内容
本公开实施例提供一种外接扬声器切换方法及装置,以解决电子设备所连接的外接扬声器的性能不如内部扬声器的性能好时盲目地进行切换的问题。
第一方面,本公开实施例提供了一种电子设备外接扬声器的切换方法,该方法包括:
检测所述电子设备是否连接有外接扬声器;
若检测到所述电子设备连接有外接扬声器后,根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至外接扬声器进行音频 播放。
可选地,所述根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至外接扬声器进行音频播放包括:获取所述外接扬声器的标识;根据所述外接扬声器的标识从数据库中获取所述外接扬声器的性能参数;将所述外接扬声器的性能参数与内部扬声器的性能参数进行比较;根据比较结果确定是否切换至外接扬声器进行音频播放。
可选的,所述根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至外接扬声器进行音频播放包括:获取所述外接扬声器的标识;根据所述外接扬声器的标识从数据库中获取所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果;根据所述比较结果确定是否切换至外接扬声器进行音频播放。
可选的,所述根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至外接扬声器进行音频播放包括:将所述电子设备切换至外接扬声器进行音频播放;通过识音设备获取外接扬声器的性能参数,并与内部扬声器的性能参数进行比较,生成比较结果;若比较结果是外接扬声器的性能优于内部扬声器的性能,则继续利用外接扬声器进行音频播放;若比较结果是内部扬声器的性能优于外接扬声器的性能,则切换至内部扬声器进行音频播放。
具体的,所述数据库包括本地数据库和/或云端数据库。
可选地,所述根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至外接扬声器进行音频播放包括:向用户显示比较结果,并提示用户是否切换至外接扬声器;若接收到用户切换至外接扬声器的确认信息,则切换至外接扬声器进行音频播放。
具体的,所述性能参数包括频率响应范围、谐波失真、信噪比和声道数中的至少一种。
第二方面,本公开实施例还提供了一种电子设备外接扬声器的切换装置,该装置包括:
检测模块,用于检测所述电子设备是否连接有外接扬声器;
切换模块,用于若检测到所述电子设备连接有外接扬声器后,根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至外接 扬声器进行音频播放。
可选地,所述切换模块包括:第一标识获取子模块,用于在检测到所述电子设备连接有外接扬声器后,获取所述外接扬声器的标识;性能参数获取子模块,用于根据所述外接扬声器的标识从数据库中获取所述外接扬声器的性能参数;比较子模块,用于将所述外接扬声器的性能参数与内部扬声器的性能参数进行比较;第一扬声器切换子模块,用于根据比较结果确定是否切换至外接扬声器进行音频播放。
可选的,所述切换模块包括:第二标识获取子模块,用于在检测到所述电子设备连接有外接扬声器后,获取所述外接扬声器的标识;比较结果获取子模块,用于根据所述外接扬声器的标识从数据库中获取所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果;第二扬声器切换子模块,用于根据所述比较结果确定是否切换至外接扬声器进行音频播放。
可选的,所述切换模块包括:音频播放子模块,用于在检测到所述电子设备连接有外接扬声器后,将所述电子设备切换至外接扬声器进行音频播放;识音子模块,用于通过识音设备获取外接扬声器的性能参数,并与内部扬声器的性能参数进行比较,生成比较结果;外接扬声器播放子模块,用于若比较结果是外接扬声器的性能优于内部扬声器的性能,则继续利用外接扬声器进行音频播放;内部扬声器播放子模块,用于若比较结果是内部扬声器的性能优于外接扬声器的性能,则切换至内部扬声器进行音频播放。
具体的,所述数据库包括本地数据库和/或云端数据库。
可选地,所述切换模块包括:提示子模块,用于向用户显示比较结果,并提示用户是否切换至外接扬声器;确认切换子模块,用于若接收到用户切换至外接扬声器的确认信息,则切换至外接扬声器进行音频播放。
具体的,所述性能参数包括频率响应范围、谐波失真、信噪比和声道数中的至少一种。
本公开实施例通过在检测到电子设备连接有外接扬声器后,根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至所述外接扬声器,而不是将电子设备直接切换至外接扬声器,以解决电子设备所连接的外接扬声器的性能不如内部扬声器的性能好时盲目地进行切换的问题,提高电子设备的音频播放效果和用户体验。
附图说明
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。
图1是本公开实施例一提供的一种电子设备外接扬声器的切换方法的流程图;
图2是本公开实施例二提供的一种电子设备外接扬声器的切换方法的流程图;
图3是本公开实施例三提供的一种电子设备外接扬声器的切换方法的流程图;
图4是本公开实施例四提供的一种电子设备外接扬声器的切换方法的流程图;
图5是本公开实施例五提供的一种电子设备外接扬声器的切换装置的结构示意图。
图6是本公开实施例提供的一种电子装置的硬件结构示意图。
实施方式
下面结合附图和实施例对本公开作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本公开,而非对本公开的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本公开相关的部分而非全部结构。
实施例一
图1是本公开实施例一提供的一种电子设备外接扬声器的切换方法的流程图,本实施例可适用于电子设备对所连接的外接扬声器判断是否进行切换的情况,该方法可以由电子设备外接扬声器的切换装置来执行,该装置可以由软件和/或硬件的方式实现。参见图1,本实施例提供的电子设备外接扬声器的切换方法具体包括如下步骤S110和S120:
在步骤S110中、检测所述电子设备是否连接有外接扬声器。
其中,所述电子设备可以是智能电视机、激光电视机或投影仪。外接扬声 器可以是以有线方式连接的扬声器,也可以是以无线方式连接的扬声器。该外接扬声器可以是原装扬声器,也可以是非原装扬声器。
具体的,对所述电子设备是否连接有外接扬声器的检测可以是,通过外接扬声器与电子设备的连接接口的连接引脚是否导通,判断是否连接有以有线方式连接的扬声器;通过电子设备是否检测到外接扬声器的无线配对信号,判断是否连接有以无线方式连接的扬声器。
在步骤S120中、若检测到所述电子设备连接有外接扬声器后,根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至外接扬声器进行音频播放。
其中,所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果可以是:外接扬声器的性能优于内部扬声器的性能、内部扬声器的性能优于外接扬声器的性能或外接扬声器的性能与内部扬声器的性能相似。若比较结果是外接扬声器的性能优于内部扬声器的性能,则将电子设备切换至外接扬声器进行音频播放;若内部扬声器的性能优于外接扬声器的性能,或者是外接扬声器的性能与内部扬声器的性能相似,则继续使用内部扬声器进行音频播放。
具体的,所述性能参数可以包括频率响应范围、谐波失真、信噪比和声道数中的一种或多种。
可选地,所述根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至外接扬声器进行音频播放可以包括:向用户显示比较结果,并提示用户是否切换至外接扬声器;若接收到用户切换至外接扬声器的确认信息,则切换至外接扬声器进行音频播放。其中,若未接收到用户切换至外接扬声器的确认信息,则继续使用内部扬声器进行音频播放。
本实施例的技术方案,通过在检测到电子设备连接有外接扬声器后,根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至所述外接扬声器,而不是将电子设备直接切换至外接扬声器,以解决电子设备所连接的外接扬声器的性能不如内部扬声器的性能好时盲目地进行切换的问题,提高电子设备的音频播放效果和用户体验。
实施例二
本实施例在实施例一的基础上,具体提供了一种电子设备外接扬声器的切 换方法。图2是本公开实施例二提供的一种电子设备外接扬声器的切换方法的流程图。参见图2,本实施例提供的电子设备外接扬声器的切换方法具体包括如下步骤S210、步骤S220、步骤S230、步骤S240和步骤S250:
在步骤S210中、检测所述电子设备是否连接有外接扬声器。
在步骤S220中、若检测到所述电子设备连接有外接扬声器后,获取所述外接扬声器的标识。
其中,外接扬声器的标识可以包括外接扬声器的品牌和外接扬声器的型号。外接扬声器的品牌和型号可以通过射频识别技术或无线通信握手协议获取。
在步骤S230中、根据所述外接扬声器的标识从数据库中获取所述外接扬声器的性能参数。
其中,数据库中可以包括扬声器的标识和对应标识的扬声器的性能参数。根据所述外接扬声器的标识从数据库中获取所述外接扬声器的性能参数方式可以是,在数据库中查找与所述外接扬声器的标识匹配一致的扬声器,并从数据库中读取该匹配一致的扬声器的性能参数。
具体的,数据库可以包括本地数据库和/或云端数据库。其中,本地数据库可以设置在电子设备内部,也可以设置在与电子设备连接的存储介质中。云端数据库为设置在远程服务器中数据库。云端数据库中存储的扬声器的标识和扬声器的性能参数的数量大于本地数据库中存储的扬声器的标识和扬声器的性能参数的数量。根据所述外接扬声器的标识从数据库中获取所述外接扬声器的性能参数的方法可以是,从本地数据库查找与所述外接扬声器的标识匹配一致的扬声器,若查找到与所述外接扬声器的标识匹配一致的扬声器,则从本地数据库中获取该匹配一致的扬声器的性能参数;或者是,从远端数据库查找与所述外接扬声器的标识匹配一致的扬声器,若查找到与所述外接扬声器的标识匹配一致的扬声器,则从本地数据库中获取该匹配一致的扬声器的性能参数。
为方便外接扬声器性能参数的获取,可以在本地数据库中存储常用的扬声器的标识和对应标识的扬声器的性能参数。在云端数据库中存储,除本地数据库存储的扬声器的标识和对应标识的扬声器的性能参数之外的,扬声器的标识和对应标识的扬声器的性能参数。
可选地,为提高外接扬声器性能参数的获取速度,可选地,在本地数据库中查找与所述外接扬声器的标识匹配一致的扬声器,若查找到与所述外接扬声 器的标识匹配一致的扬声器,则从本地数据库中获取该匹配一致的扬声器的性能参数;若在本地数据库未查找到与所述外接扬声器的标识匹配一致的扬声器,则在云端数据库中查找与所述外接扬声器的标识匹配一致的扬声器;若在云端数据库中查找到与所述外接扬声器的标识匹配一致的扬声器,则从云端数据库中获取该匹配一致的扬声器的性能参数。
在步骤S240中、将所述外接扬声器的性能参数与内部扬声器的性能参数进行比较;
其中,内部扬声器的性能参数可以从本地数据库、云端数据库或其他存储介质中获取。所述外接扬声器的性能参数与内部扬声器的性能参数的比较可以是,当所述性能参数只有一种时,将外接扬声器的性能参数对应的数值与内部扬声器中相应的性能参数的数值进行比较,若外接扬声器的性能参数对应的数值大于或小于内部扬声器中相应的性能参数的数值,则判断所述外接扬声器的性能优于内部扬声器。例如,若外接扬声器的信噪比大于内部扬声器中相应的频率响应范围,则判断所述外接扬声器的性能优于内部扬声器;若外接扬声器的谐波失真小于内部扬声器中相应的性能参数的数值,则判断所述外接扬声器的性能优于内部扬声器。
当所述性能参数有多种时,可以根据预设性能参数比较标准进行判断。其中,预设性能参数比较标准可以是,若外接扬声器的多种性能参数中指定的一种或两种性能参数优于内部扬声器中相应的性能参数,则判断所述外接扬声器的性能优于内部扬声器。
例如,外接扬声器为5.1声道,则该外接扬声器包括6个声道,即包括一个中央声道、前置左声道、前置右声道、后置左声道、后置右声道和低音声道,声道数为6;内部扬声器为2.1声道,则该内部扬声器包括3个声道,即包括左声道、右声道,以及一个低音声道,声道数为3。预设性能参数比较标准是,若外接扬声器的声道数大于内部扬声器中的声道数,则判断所述外接扬声器的性能优于内部扬声器。因为,外接扬声器的声道数大于内部扬声器的声道数,所以根据预设性能参数比较标准可以判断所述外接扬声器的性能优于内部扬声器。
在步骤S250中、根据比较结果确定是否切换至外接扬声器进行音频播放。
本实施例技术方案,通过将所述外接扬声器的一种或多种性能参数与内部扬声器的一种或多种性能参数进行比较,根据比较结果确定是否切换至所述外 接扬声器,以解决电子设备所连接的外接扬声器的性能不如内部扬声器的性能好时盲目地进行切换的问题,提高电子设备的音频播放效果和用户体验。
实施例三
本实施例在上述实施例的基础上,具体提供了一种电子设备外接扬声器的切换方法。图3是本公开实施例三提供的一种电子设备外接扬声器的切换方法的流程图。参见图3,本实施例提供的电子设备外接扬声器的切换方法具体包括如下步骤S310、步骤S320、步骤S330和步骤S340:
S310、检测所述电子设备是否连接有外接扬声器。
S320、若检测到所述电子设备连接有外接扬声器后,获取所述外接扬声器的标识;
S330、根据所述外接扬声器的标识从数据库中获取所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果;
其中,数据库中可以包括扬声器的标识和内部扬声器与该标识对应的扬声器的性能参数的比较结果,比较结果可以通过预设获得。所述数据库可以包括本地数据库和/或云端数据库。具体的,根据所述外接扬声器的标识从数据库中获取所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果的方法可以是,在本地数据库中查找与所述外接扬声器的标识匹配一致的扬声器,若查找到与所述外接扬声器的标识匹配一致的扬声器,则从本地数据库中获取该匹配一致的扬声器与内部扬声器的性能参数的比较结果;或者是,在云端数据库中查找与所述外接扬声器的标识匹配一致的扬声器;若在云端数据库中查找到与所述外接扬声器的标识匹配一致的扬声器,则从云端数据库中获取该匹配一致的扬声器与内部扬声器的性能参数的比较结果。
为提高获取所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果的速度,可选地,在本地数据库中查找与所述外接扬声器的标识匹配一致的扬声器,若查找到与所述外接扬声器的标识匹配一致的扬声器,则从本地数据库中获取该匹配一致的扬声器与内部扬声器的性能参数的比较结果;若在本地数据库未查找到与所述外接扬声器的标识匹配一致的扬声器,则在云端数据库中查找与所述外接扬声器的标识匹配一致的扬声器;若在云端数据库中查找到与所述外接扬声器的标识匹配一致的扬声器,则从云端数据库中获取该匹配一 致的扬声器与内部扬声器的性能参数的比较结果。
S340、根据所述比较结果确定是否切换至外接扬声器进行音频播放。
本实施例技术方案,通过从数据库中直接获取外接扬声器的性能参数与内部扬声器的性能参数的比较结果,根据比较结果确定是否切换至所述外接扬声器,节省性能参数的比较过程,提高外接扬声器的切换效率。
实施例四
本实施例在上述实施例的基础上,具体提供了一种电子设备外接扬声器的切换方法。图4是本公开实施例四提供的一种电子设备外接扬声器的切换方法的流程图。参见图4,本实施例提供的电子设备外接扬声器的切换方法具体包括如下步骤S410、步骤S420、步骤S430、步骤S440和步骤S450:
S410、检测所述电子设备是否连接有外接扬声器。
S420、若检测到所述电子设备连接有外接扬声器后,将所述电子设备切换至外接扬声器进行音频播放;
S430、通过识音设备获取外接扬声器的性能参数,并与内部扬声器的性能参数进行比较,生成比较结果。
其中,识音设备为能通过对接收到的外接扬声器播放的音频进行分析,并生成对应外接扬声器的性能参数的设备。具体的,可以在通过识音设备获取外接扬声器的性能参数后,将获取的外接扬声器的性能参数与内部扬声器的性能参数进行比较,并生成比较结果。
S440、若比较结果是外接扬声器的性能优于内部扬声器的性能,则继续利用外接扬声器进行音频播放。
S450、若比较结果是内部扬声器的性能优于外接扬声器的性能,则切换至内部扬声器进行音频播放。
本实施例技术方案,通过识音设备获取外接扬声器的性能参数,并与内部扬声器的性能参数进行比较,生成比较结果。根据比较结果确定是否切换至所述外接扬声器,以解决电子设备所连接的外接扬声器的性能不如内部扬声器的性能好时盲目地进行切换的问题,提高电子设备的音频播放效果和用户体验。
实施例五
图5是本公开实施例五提供的一种电子设备外接扬声器的切换装置的结构示意图。本实施例可适用于电子设备对所连接的外接扬声器判断是否进行切换的情况。参见图5,本实施例提供的电子设备外接扬声器的切换装置具体包括:检测模块10和切换模块20。
其中,检测模块10可以用于检测所述电子设备是否连接有外接扬声器;切换模块20可以用于若检测到所述电子设备连接有外接扬声器后,根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至外接扬声器进行音频播放。
具体的,所述切换模块20可以包括第一标识获取子模块、性能参数获取子模块、比较子模块和第一扬声器切换子模块。其中,第一标识获取子模块可以用于在检测到所述电子设备连接有外接扬声器后,获取所述外接扬声器的标识;性能参数获取子模块可以用于根据所述外接扬声器的标识从数据库中获取所述外接扬声器的性能参数;比较子模块可以用于将所述外接扬声器的性能参数与内部扬声器的性能参数进行比较;第一扬声器切换子模块可以用于根据比较结果确定是否切换至外接扬声器进行音频播放。
可选的,所述切换模块20可以包括第二标识获取子模块、比较结果获取子模块和第二扬声器切换子模块。其中,第二标识获取子模块可以用于在检测到所述电子设备连接有外接扬声器后,获取所述外接扬声器的标识;比较结果获取子模块可以用于根据所述外接扬声器的标识从数据库中获取所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果;第二扬声器切换子模块可以用于根据所述比较结果确定是否切换至外接扬声器进行音频播放。
可选的,所述切换模块20可以包括音频播放子模块、识音子模块、外接扬声器播放子模块和内部扬声器播放子模块。其中,音频播放子模块可以用于在检测到所述电子设备连接有外接扬声器后,将所述电子设备切换至外接扬声器进行音频播放;识音子模块可以用于通过识音设备获取外接扬声器的性能参数,并与内部扬声器的性能参数进行比较,生成比较结果;外接扬声器播放子模块可以用于若比较结果是外接扬声器的性能优于内部扬声器的性能,则继续利用外接扬声器进行音频播放;内部扬声器播放子模块可以用于若比较结果是内部扬声器的性能优于外接扬声器的性能,则切换至内部扬声器进行音频播放。
可选地,所述数据库可以包括本地数据库和/或云端数据库。
可选地,所述切换模块20可以包括提示子模块和确认切换子模块。其中,提示子模块可以用于向用户显示比较结果,并提示用户是否切换至外接扬声器;确认切换子模块可以用于若接收到用户切换至外接扬声器的确认信息,则切换至外接扬声器进行音频播放。
具体的,所述性能参数可以包括频率响应范围、谐波失真、信噪比和声道数中的至少一种。
上述产品可执行本公开任意实施例所提供的方法,具备执行方法相应的功能模块和有益效果。
本领域技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
图6为本申请实施例提供的一种电子装置的硬件结构示意图,如图6所示,该电子装置包括:
一个或多个处理器601以及存储器602,图6中以一个处理器601为例。
该电子装置还可以包括:输入装置603和输出装置604。
电子装置中的处理器601、存储器602、输入装置603和输出装置604可以通过总线或者其他方式连接,图6中以通过总线连接为例。
存储器602作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的外接扬声器切换方法对应的程序指令/模块(例如,附图5所示的检测模块10和切换模块20)。处理器601通过运行存储在存储器602中的非易失性软件程序、指令以及模块,实现外接扬声器切换方法。
存储器602可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据外接扬声器切换方法使用所创建的数据等。此外,存储器602可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器602可选包括相对于处理器601 远程设置的存储器。
输入装置603可用于接收输入的数字或字符信息,以及用户设置以及功能控制有关的键信号输入。输出装置604可包括显示屏等显示设备。
所述一个或者多个模块存储在所述存储器602中,当被所述一个或者多个处理器601执行时,执行上述任意方法实施例中的外接扬声器切换方法。
本公开实施例还提供了一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被电子设备执行时,使得所述电子设备执行上述实施例的电子设备外接扬声器的切换方法。
需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。
注意,上述仅为本公开的较佳实施例及所运用技术原理。本领域技术人员会理解,本公开不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本公开的保护范围。因此,虽然通过以上实施例对本公开进行了较为详细的说明,但是本公开不仅仅限于以上实施例,在不脱离本公开构思的情况下,还可以包括更多其他等效实施例,而本公开的范围由所附的权利要求范围决定。
工业实用性
本公开实施例通过在检测到电子设备连接有外接扬声器后,根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至所述外接扬声器,而不是将电子设备直接切换至外接扬声器,以解决电子设备所连接的外接扬声器的性能不如内部扬声器的性能好时盲目地进行切换的问题,提高电子设备的音频播放效果和用户体验。

Claims (17)

  1. 一种电子设备外接扬声器的切换方法,包括:
    检测所述电子设备是否连接有外接扬声器;
    若检测到所述电子设备连接有外接扬声器后,根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至外接扬声器进行音频播放。
  2. 根据权利要求1所述的方法,其中,所述根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至外接扬声器进行音频播放包括:
    获取所述外接扬声器的标识;
    根据所述外接扬声器的标识从数据库中获取所述外接扬声器的性能参数;
    将所述外接扬声器的性能参数与内部扬声器的性能参数进行比较;
    根据比较结果确定是否切换至外接扬声器进行音频播放。
  3. 根据权利要求1所述的方法,其中,所述根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至外接扬声器进行音频播放包括:
    获取所述外接扬声器的标识;
    根据所述外接扬声器的标识从数据库中获取所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果;
    根据所述比较结果确定是否切换至外接扬声器进行音频播放。
  4. 根据权利要求1所述的方法,其中,所述根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至外接扬声器进行音频播放包括:
    将所述电子设备切换至外接扬声器进行音频播放;
    通过识音设备获取外接扬声器的性能参数,并与内部扬声器的性能参数进行比较,生成比较结果;
    若比较结果是外接扬声器的性能优于内部扬声器的性能,则继续利用外接扬声器进行音频播放;
    若比较结果是内部扬声器的性能优于外接扬声器的性能,则切换至内部扬声器进行音频播放。
  5. 根据权利要求2或3所述的方法,其中,所述数据库包括本地数据库和/或云端数据库。
  6. 根据权利要求1所述的方法,其中,所述根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至外接扬声器进行音频播放包括:
    向用户显示比较结果,并提示用户是否切换至外接扬声器;
    若接收到用户切换至外接扬声器的确认信息,则切换至外接扬声器进行音频播放。
  7. 根据权利要求1-4中任一所述的方法,其中,所述性能参数包括频率响应范围、谐波失真、信噪比和声道数中的至少一种。
  8. 一种电子设备外接扬声器的切换装置,包括:
    检测模块,用于检测所述电子设备是否连接有外接扬声器;
    切换模块,用于若检测到所述电子设备连接有外接扬声器后,根据所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果确定是否切换至外接扬声器进行音频播放。
  9. 根据权利要求8所述的装置,其中,所述切换模块包括:
    第一标识获取子模块,用于在检测到所述电子设备连接有外接扬声器后,获取所述外接扬声器的标识;
    性能参数获取子模块,用于根据所述外接扬声器的标识从数据库中获取所述外接扬声器的性能参数;
    比较子模块,用于将所述外接扬声器的性能参数与内部扬声器的性能参数进行比较;
    第一扬声器切换子模块,用于根据比较结果确定是否切换至外接扬声器进行音频播放。
  10. 根据权利要求8所述的装置,其中,所述切换模块包括:
    第二标识获取子模块,用于在检测到所述电子设备连接有外接扬声器后,获取所述外接扬声器的标识;
    比较结果获取子模块,用于根据所述外接扬声器的标识从数据库中获取所述外接扬声器的性能参数与内部扬声器的性能参数的比较结果;
    第二扬声器切换子模块,用于根据所述比较结果确定是否切换至外接扬声 器进行音频播放。
  11. 根据权利要求8所述的装置,其中,所述切换模块包括:
    音频播放子模块,用于在检测到所述电子设备连接有外接扬声器后,将所述电子设备切换至外接扬声器进行音频播放;
    识音子模块,用于通过识音设备获取外接扬声器的性能参数,并与内部扬声器的性能参数进行比较,生成比较结果;
    外接扬声器播放子模块,用于若比较结果是外接扬声器的性能优于内部扬声器的性能,则继续利用外接扬声器进行音频播放;
    内部扬声器播放子模块,用于若比较结果是内部扬声器的性能优于外接扬声器的性能,则切换至内部扬声器进行音频播放。
  12. 根据权利要求9或10所述的装置,其中,所述数据库包括本地数据库和/或云端数据库。
  13. 根据权利要求8所述的装置,其中,所述切换模块包括:
    提示子模块,用于向用户显示比较结果,并提示用户是否切换至外接扬声器;
    确认切换子模块,用于若接收到用户切换至外接扬声器的确认信息,则切换至外接扬声器进行音频播放。
  14. 根据权利要求8-11中任一所述的装置,其中,所述性能参数包括频率响应范围、谐波失真、信噪比和声道数中的至少一种。
  15. 一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被电子设备执行时,使得所述电子设备执行权利要求1-7任一项所述的方法。
  16. 一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-7任一项所述的方法。
  17. 一种电子装置,包括至少一个处理器和与所述至少一个处理器通信连接的存储器,所述存储器用于存储可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时,使所述至少一个处理器执行以下操作:
    检测所述电子设备是否连接有外接扬声器;
    若检测到所述电子设备连接有外接扬声器后,根据所述外接扬声器的性能 参数与内部扬声器的性能参数的比较结果确定是否切换至外接扬声器进行音频播放。
PCT/CN2016/097309 2016-03-31 2016-08-30 外接扬声器切换方法及装置 WO2017166686A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610195736.8 2016-03-31
CN201610195736.8A CN105872896A (zh) 2016-03-31 2016-03-31 外接扬声器切换方法及装置

Publications (1)

Publication Number Publication Date
WO2017166686A1 true WO2017166686A1 (zh) 2017-10-05

Family

ID=56627074

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097309 WO2017166686A1 (zh) 2016-03-31 2016-08-30 外接扬声器切换方法及装置

Country Status (2)

Country Link
CN (1) CN105872896A (zh)
WO (1) WO2017166686A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112188362A (zh) * 2020-09-29 2021-01-05 歌尔科技有限公司 一种播放方法、装置和计算机可读存储介质
CN112965928A (zh) * 2021-03-30 2021-06-15 湖北亿咖通科技有限公司 车机系统功放类型识别方法、电子设备和计算机存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872896A (zh) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 外接扬声器切换方法及装置

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001102950A (ja) * 1999-09-28 2001-04-13 Matsushita Electric Ind Co Ltd 無線装置
CN101646114A (zh) * 2008-08-08 2010-02-10 深圳Tcl新技术有限公司 自动调整电声设备音质的方法及装置
CN101888223A (zh) * 2009-05-14 2010-11-17 哈曼国际工业有限公司 用于具有自适应扬声器选择的有源噪声控制的系统
US20100303251A1 (en) * 2009-05-29 2010-12-02 Samsung Electronics Co., Ltd. Method for recognizing ear phone in portable terminal and apparatus thereof
CN101964932A (zh) * 2010-10-22 2011-02-02 张沈平 一种音源设备以及控制方法
CN102413402A (zh) * 2010-09-26 2012-04-11 康佳集团股份有限公司 一种音频输出设备的音频控制方法和音频输出设备
CN105161121A (zh) * 2015-09-14 2015-12-16 深圳蓝奥声科技有限公司 对音频外设传送音频的控制方法及音频传送控制器
CN105872896A (zh) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 外接扬声器切换方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE9800697A0 (sv) * 1998-03-05 1999-09-06 Ericsson Telefon Ab L M Förfarande och anordning för trådlös kommunikation
JP2006186904A (ja) * 2004-12-28 2006-07-13 Mitsumi Electric Co Ltd ヘッドセット装置

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001102950A (ja) * 1999-09-28 2001-04-13 Matsushita Electric Ind Co Ltd 無線装置
CN101646114A (zh) * 2008-08-08 2010-02-10 深圳Tcl新技术有限公司 自动调整电声设备音质的方法及装置
CN101888223A (zh) * 2009-05-14 2010-11-17 哈曼国际工业有限公司 用于具有自适应扬声器选择的有源噪声控制的系统
US20100303251A1 (en) * 2009-05-29 2010-12-02 Samsung Electronics Co., Ltd. Method for recognizing ear phone in portable terminal and apparatus thereof
CN102413402A (zh) * 2010-09-26 2012-04-11 康佳集团股份有限公司 一种音频输出设备的音频控制方法和音频输出设备
CN101964932A (zh) * 2010-10-22 2011-02-02 张沈平 一种音源设备以及控制方法
CN105161121A (zh) * 2015-09-14 2015-12-16 深圳蓝奥声科技有限公司 对音频外设传送音频的控制方法及音频传送控制器
CN105872896A (zh) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 外接扬声器切换方法及装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112188362A (zh) * 2020-09-29 2021-01-05 歌尔科技有限公司 一种播放方法、装置和计算机可读存储介质
CN112965928A (zh) * 2021-03-30 2021-06-15 湖北亿咖通科技有限公司 车机系统功放类型识别方法、电子设备和计算机存储介质
CN112965928B (zh) * 2021-03-30 2022-04-19 亿咖通(湖北)技术有限公司 车机系统功放类型识别方法、电子设备和计算机存储介质

Also Published As

Publication number Publication date
CN105872896A (zh) 2016-08-17

Similar Documents

Publication Publication Date Title
US20210281950A1 (en) Portable Playback Devices with Network Operation Modes
RU2666966C2 (ru) Способ и прибор управления для воспроизведения аудио
US9749552B2 (en) Automatic identification and mapping of consumer electronic devices to ports on an HDMI switch
KR102538775B1 (ko) 오디오 재생 방법 및 오디오 재생 장치, 전자 기기 및 저장 매체
WO2017166603A1 (zh) 一种音质调整方法、终端、电子设备及非易失性计算机存储介质
CN109473095B (zh) 一种智能家居控制系统及控制方法
EP3846020A1 (en) Sound effect adjusting method and apparatus, electronic device, and storage medium
US20160065791A1 (en) Sound image play method and apparatus
US11057664B1 (en) Learning multi-device controller with personalized voice control
WO2017166685A1 (zh) 外接扬声器切换方法及装置
WO2018126613A1 (zh) 一种音频数据播放方法和双屏移动终端
WO2017166686A1 (zh) 外接扬声器切换方法及装置
WO2020048217A1 (zh) 音效调整方法、装置、电子设备以及存储介质
TW201705122A (zh) 音訊處理系統及其音訊處理方法
EP3185573B1 (en) Method and device for playing audio
US10405114B2 (en) Automated detection of an active audio output
US20120287283A1 (en) Electronic device with voice prompt function and voice prompt method
CN104112459A (zh) 播放音频数据的方法和装置
CN107948854B (zh) 一种操作音频生成方法、装置、终端及计算机可读介质
JP7456387B2 (ja) 情報処理装置、及び情報処理方法
CN105430449B (zh) 媒体文件播放方法、装置及系统
EP3203468A1 (en) Acoustic system, communication device, and program
JP5728120B1 (ja) 音響システム、通信機器及びプログラム
US20190281388A1 (en) Connection state determination system for speakers, acoustic device, and connection state determination method for speakers
JP2009159307A (ja) 再生装置、設定情報の設定方法、コンピュータプログラムおよび通信システム

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: 16896456

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16896456

Country of ref document: EP

Kind code of ref document: A1