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

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

Info

Publication number
WO2017166685A1
WO2017166685A1 PCT/CN2016/097308 CN2016097308W WO2017166685A1 WO 2017166685 A1 WO2017166685 A1 WO 2017166685A1 CN 2016097308 W CN2016097308 W CN 2016097308W WO 2017166685 A1 WO2017166685 A1 WO 2017166685A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
external speaker
speaker
external
switching
Prior art date
Application number
PCT/CN2016/097308
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 WO2017166685A1 publication Critical patent/WO2017166685A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • 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
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers

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 audio playback effect realized by the speaker inside the electronic device can no longer meet the needs of the user, wherein the electronic device can be a smart TV, a laser TV, a projector and the like.
  • the embodiment of the present invention provides an external speaker switching method and device, so that when an external device is detected, the electronic device realizes automatic external speaker switching, so as to solve the problem that the audio playing effect realized by the speaker inside the electronic device cannot meet the user's needs. The problem.
  • an embodiment of the present disclosure provides a method for switching an external speaker of an electronic device, where the method includes:
  • switching to an external speaker connected to the electronic device for audio playback comprises: acquiring, if the electronic device is connected to the plurality of external speakers, acquiring The type and/or connection mode of the external speaker; according to the external speaker Select the external speaker for the type and/or connection method of the device; and switch to the selected external speaker for audio playback.
  • connection manner of the external speaker includes a wired connection mode and a wireless connection mode, and the selection priority of the wired connection mode is higher than the selection priority of the wireless connection mode.
  • the type of the external speaker includes an original speaker and a non-original speaker, and the selection priority of the original speaker is higher than the selection priority of the non-original speaker.
  • the switching to the external speaker connected to the electronic device for audio playback comprises: prompting the user to switch to an external speaker connected to the electronic device for audio playback; and receiving a switch from the user to the external speaker The confirmation message is switched to an external speaker connected to the electronic device for audio playback.
  • 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 an external speaker is connected to the electronic device
  • the switching module is configured to switch to an external speaker connected to the electronic device for audio playback if it is detected that the electronic device is connected to the external speaker.
  • the switching module includes: an acquiring submodule, configured to acquire a type and/or a connection manner of the external speaker if the electronic device is connected to the plurality of external speakers; and the speaker selection submodule is set to The external speaker is selected according to the type and/or connection mode of the external speaker; the speaker switching sub-module is set to and switched to the selected external speaker for audio playback.
  • connection manner of the external speaker includes a wired connection mode and a wireless connection mode, and the selection priority of the wired connection mode is higher than the selection priority of the wireless connection mode.
  • the type of the external speaker includes an original speaker and a non-original speaker, and the selection priority of the original speaker is higher than the selection priority of the non-original speaker.
  • the switching module includes: a prompting sub-module, configured to prompt the user to switch to an external speaker connected to the electronic device for audio playback before the switching module; confirm the switching sub-module, and set to receive The user sends a confirmation message to the external speaker to switch to the external speaker connected to the electronic device for audio playback.
  • a prompting sub-module configured to prompt the user to switch to an external speaker connected to the electronic device for audio playback before the switching module
  • confirm the switching sub-module and set to receive The user sends a confirmation message to the external speaker to switch to the external speaker connected to the electronic device for audio playback.
  • Embodiments of the present disclosure also provide an electronic device including at least one processor and a memory communicatively coupled to the at least one processor, the memory for storing instructions executable by the at least one processor, the instructions Actuating the at least one processor when executed by the at least one processor The following operations are performed: detecting whether the electronic device is connected with an external speaker; if it is detected that the electronic device is connected with an external speaker, switching to an external speaker connected to the electronic device for audio playback.
  • the embodiment of the present disclosure further provides a non-transitory storage medium storing computer executable instructions configured to perform the above-described switching method of an external speaker of an electronic device.
  • Embodiments of the present disclosure also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer When the computer is caused to execute the above-described switching method of the external speaker of the electronic device.
  • the present disclosure realizes the automatic external speaker switching by switching the electronic device to the external speaker after detecting that the external device is connected with the external speaker, so as to solve the problem that the audio playing effect realized by the speaker inside the electronic device cannot satisfy the user.
  • the problem of demand is a problem that the audio playing effect realized by the speaker inside the electronic device cannot satisfy the user.
  • 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 schematic structural diagram of a switching device for an external speaker of an electronic device according to Embodiment 3 of the present disclosure.
  • FIG. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.
  • 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. This embodiment can be applied to the case of switching an electronic device to an external speaker. The method can be performed by a switching device of an external speaker of the electronic device, and the device can be implemented by software and/or hardware. Referring to FIG. 1, 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.
  • the external speaker can be a speaker connected by a wired connection or a speaker connected by a wireless connection.
  • the external speaker can be either an original speaker or a non-original speaker.
  • the detecting whether the external device is connected to the electronic device may be, whether the connection pin of the connection interface between the external speaker and the electronic device is turned on, determining whether the speaker connected by the wired connection mode is connected; The wireless pairing signal of the external speaker is detected, and it is determined whether the electronic device is connected with the speaker connected by the wireless connection mode.
  • the first to last detection of whether the electronic device is connected with an external speaker may be: detection of an original speaker of a wired connection mode, detection of a non-original speaker of a wired connection mode, and original speaker of a wireless connection mode. Detection and detection of non-original speakers in a wireless connection. If an external speaker is detected, the continuous detection of the external speaker can be stopped, so that the electronic device can directly switch to the optimal external speaker without selection.
  • step S120 if it is detected that the electronic device is connected to the external speaker, the external speaker connected to the electronic device is switched to perform audio playback.
  • the user may be prompted whether to switch to an external speaker connected to the electronic device for audio playback; if receiving a confirmation message sent by the user to switch to the external speaker, Switch to an external speaker connected to the electronic device for audio playback.
  • the manner of switching to the external speaker connected to the electronic device for audio playback may be: muting the speaker inside the electronic device, using an external speaker for audio playback; and switching to the external speaker connected to the electronic device may also be
  • the audio signal to be played is controlled to be transmitted only to the external speaker and not to the internal speaker, thereby realizing the playback of the audio signal by the external speaker.
  • the electronic device after detecting that the external device is connected to the electronic device, the electronic device is switched to the external speaker for audio playback, and the automatic external speaker is switched to solve the problem.
  • the audio playback effect achieved by the speakers inside the electronic device has been unable to meet the user's needs.
  • 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, and S240:
  • step S210 it is detected whether an external speaker is connected to the electronic device.
  • multiple types of external speakers connected to the electronic device and multiple connected external speakers may be detected.
  • step S220 if it is detected that the electronic device is connected to a plurality of external speakers, the type and/or connection mode of the external speaker is acquired.
  • connection manner of the external speaker may include a wired connection manner and a wireless connection manner;
  • type of the external speaker may include an original speaker and a non-original speaker.
  • the method for obtaining the connection mode of the external speaker may be: detecting whether the connection pin of the audio output port connected to the external speaker is turned on, and if it is conducting, determining that the external speaker is a wired connection speaker; if not Then, detecting whether the electronic device receives and responds to the wireless pairing signal sent by the external speaker through the wireless network, and if the electronic device receives and responds to the wireless pairing signal sent by the external speaker through the wireless network, determining that the external speaker is a wireless connection mode speaker.
  • the audio output port is an interface between the electronic device and a speaker that sends an audio signal to the wired connection.
  • the method for obtaining the type of the external speaker may be: after the connection mode of the external speaker is obtained as a wired connection mode, detecting whether the external speaker is connected to the original identification port on the electronic device and conducting; if the connection is on, determining the The external speaker is the original speaker with wired connection; if it is not turned on, it is judged that the external speaker is a non-original speaker with wired connection.
  • the original identification port is an interface for the electronic device to read the original product information of the wired original speaker.
  • step S230 an external speaker is selected according to the type and/or connection mode of the external speaker.
  • the external speaker may be selected according to the selection type of the external speaker and/or the selection mode of the connection mode.
  • the selection priority of the connection mode of the external speaker may be that the selection priority of the speaker of the wired connection mode is higher than the wireless priority.
  • the selection priority of the speaker of the connection mode; the selection priority of the type of the external speaker may be that the selection priority of the original speaker is higher than the selection priority of the non-original speaker; the type of the external speaker and the selection priority of the connection mode may be Yes, the original speaker of the wired connection mode has a higher priority than the non-original speaker of the wired connection mode, and the original speaker of the wireless connection mode has a higher priority than the non-original speaker of the wireless connection mode.
  • step S240 and switching to the selected external speaker for audio playback.
  • an external speaker is selected for switching among the connected external speakers, so that when a plurality of external speakers are connected, the automatic Select and switch the external speakers.
  • This embodiment is a switching device for an external speaker of an electronic device provided on the basis of the above embodiments.
  • 3 is a schematic structural diagram of a switching device for an external speaker of an electronic device according to Embodiment 3 of the present disclosure. The embodiment is applicable to the case of switching an electronic device to an external speaker.
  • the switching device for the external speaker of the electronic device includes the detecting module 10 and the switching module 20.
  • the detecting module 10 may be configured to detect whether the electronic device is connected with an external speaker; the switching module 20 may be configured to switch to an external speaker connected to the electronic device to perform audio if the electronic device is detected to be connected to the external speaker. Play.
  • the switching module 20 may include an acquisition submodule, a speaker selection submodule, and a speaker switching submodule.
  • the obtaining sub-module may be configured to acquire the type and/or connection manner of the external speaker if the electronic device is detected to be connected to the plurality of external speakers;
  • the speaker selection sub-module may be set according to the type of the external speaker and/or Or the connection method selects the external speaker;
  • the speaker switching sub-module can be set to and switch to the selected external speaker for audio playback.
  • connection manner of the external speaker may include a wired connection mode and a wireless connection mode, and the selection priority of the wired connection mode is higher than the selection priority of the wireless connection mode.
  • the type of the external speaker may include an original speaker and a non-original speaker.
  • the selection priority of the original speaker is higher than the selection priority of the non-original speaker.
  • the switching module 20 may include a prompting submodule and an acknowledgement switching submodule.
  • the prompting sub-module may be configured to prompt the user to switch to an external speaker connected to the electronic device for audio playback before the switching module; and confirm that the switching sub-module can be set to receive a switch from the user to the external speaker. After confirming the information, switch to the external speaker connected to the electronic device for audio playback.
  • 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. .
  • the electronic device includes:
  • One or more processors 401 and memory 402 are exemplified by one processor 401 in FIG.
  • the electronic device may further include: an input device 403 and an output device 404.
  • the processor 401, the memory 402, the input device 403, and the output device 404 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 402 is used as 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. 3.
  • the processor 401 implements an external speaker switching method by running non-volatile software programs, instructions, and modules stored in the memory 402.
  • the memory 402 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. Furthermore, memory 402 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. In some embodiments, memory 402 can optionally include a memory that is remotely located relative to processor 401.
  • Input device 403 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 404 can include a display device such as a display screen.
  • the one or more modules are stored in the memory 402, and when executed by the one or more processors 401, 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 present disclosure realizes the automatic external speaker switching by switching the electronic device to the external speaker after detecting that the external device is connected with the external speaker, so as to solve the problem that the audio playing effect realized by the speaker inside the electronic device cannot satisfy the user.
  • the problem of demand is a problem that the audio playing effect realized by the speaker inside the electronic device cannot satisfy the user.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Otolaryngology (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

一种电子设备外接扬声器的切换方法及装置,属于多媒体播放技术领域。该方法包括:检测所述电子设备是否连接有外接扬声器(S110);若检测到所述电子设备连接有外接扬声器,则切换至所述电子设备连接的外接扬声器进行音频播放(S120)。所述电子设备外接扬声器的切换方法及装置,使电子设备在检测到外接扬声器时,实现自动对外接扬声器的切换,以解决用电子设备内部的扬声器实现的音频播放效果已经不能满足用户需求的问题。

Description

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

Claims (13)

  1. 一种电子设备外接扬声器的切换方法,包括:
    检测所述电子设备是否连接有外接扬声器;
    若检测到所述电子设备连接有外接扬声器,则切换至所述电子设备连接的外接扬声器进行音频播放。
  2. 根据权利要求1所述的方法,其中,所述若检测到所述电子设备连接有外接扬声器,则切换至所述电子设备连接的外接扬声器进行音频播放,包括:
    若检测到所述电子设备连接有多个外接扬声器,则获取所述外接扬声器的种类和/或连接方式;
    根据外接扬声器的种类和/或连接方式选择外接扬声器;
    并切换至选择的外接扬声器进行音频播放。
  3. 根据权利要求2所述的方法,其中,所述外接扬声器的连接方式包括有线连接方式和无线连接方式,所述有线连接方式的选择优先级高于所述无线连接方式的选择优先级。
  4. 根据权利要求2所述的方法,其中,所述外接扬声器的种类包括原装扬声器和非原装扬声器,所述原装扬声器的选择优先级高于所述非原装扬声器的选择优先级。
  5. 根据权利要求1所述的方法,其中,所述切换至所述电子设备连接的外接扬声器进行音频播放,包括:
    向用户提示是否切换至所述电子设备连接的外接扬声器进行音频播放;
    若接收到用户发出的切换至外接扬声器的确认信息,则切换至所述电子设备连接的外接扬声器进行音频播放。
  6. 一种电子设备外接扬声器的切换装置,包括:
    检测模块,设置为检测所述电子设备是否连接有外接扬声器;
    切换模块,设置为若检测到所述电子设备连接有外接扬声器,则切换至所述电子设备连接的外接扬声器进行音频播放。
  7. 根据权利要求6所述的装置,其中,所述切换模块包括:
    获取子模块,设置为若检测到所述电子设备连接有多个外接扬声器,则获取所述外接扬声器的种类和/或连接方式;
    扬声器选择子模块,设置为根据外接扬声器的种类和/或连接方式选择外接 扬声器;
    扬声器切换子模块,设置为并切换至选择的外接扬声器进行音频播放。
  8. 根据权利要求7所述的装置,其中,所述外接扬声器的连接方式包括有线连接方式和无线连接方式,所述有线连接方式的选择优先级高于所述无线连接方式的选择优先级。
  9. 根据权利要求7所述的装置,其中,所述外接扬声器的种类包括原装扬声器和非原装扬声器,所述原装扬声器的选择优先级高于所述非原装扬声器的选择优先级。
  10. 根据权利要求6所述的装置,其中,所述切换模块包括:
    提示子模块,设置为在所述切换模块之前向用户提示是否切换至所述电子设备连接的外接扬声器进行音频播放;
    确认切换子模块,设置为若接收到用户发出的切换至外接扬声器的确认信息,则切换至所述电子设备连接的外接扬声器进行音频播放。
  11. 一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被电子设备执行时,使得所述电子设备执行权利要求1-5任一项所述的方法。
  12. 一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-5任一项所述的方法。
  13. 一种电子装置,包括至少一个处理器和与所述至少一个处理器通信连接的存储器,所述存储器用于存储可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时,使所述至少一个处理器执行以下操作:
    检测所述电子设备是否连接有外接扬声器;
    若检测到所述电子设备连接有外接扬声器,则切换至所述电子设备连接的外接扬声器进行音频播放。
PCT/CN2016/097308 2016-03-31 2016-08-30 外接扬声器切换方法及装置 WO2017166685A1 (zh)

Applications Claiming Priority (2)

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

Publications (1)

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

Family

ID=57011739

Family Applications (1)

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

Country Status (2)

Country Link
CN (1) CN105892982A (zh)
WO (1) WO2017166685A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113905027A (zh) * 2021-12-10 2022-01-07 南昌航天广信科技有限责任公司 网络信号优先传输方法、系统、计算机和可读存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105892982A (zh) * 2016-03-31 2016-08-24 乐视控股(北京)有限公司 外接扬声器切换方法及装置
CN108595145A (zh) * 2018-04-26 2018-09-28 广东小天才科技有限公司 可穿戴设备的语音播放控制方法、装置及可穿戴设备
CN113840205A (zh) * 2021-09-26 2021-12-24 东莞市猎声电子科技有限公司 一种具有对话提醒功能的耳机及实现方法
CN113873394A (zh) * 2021-10-25 2021-12-31 惠州视维新技术有限公司 电视机和音频控制方法

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2367042Y (zh) * 1999-01-20 2000-03-01 海信集团公司 扬声器自动切换开关
CN1261248A (zh) * 1999-01-20 2000-07-26 海信集团公司 扬声器自动切换开关
CN1292967A (zh) * 1998-03-05 2001-04-25 艾利森电话股份有限公司 用于无线通信的音频装置选择器
CN101877742A (zh) * 2010-01-25 2010-11-03 宇龙计算机通信科技(深圳)有限公司 一种音视频的切换控制方法、系统及移动终端
CN102045622A (zh) * 2009-10-16 2011-05-04 深圳Tcl新技术有限公司 内外置扬声器切换的方法及其装置
EP2930941A1 (en) * 2014-04-10 2015-10-14 Nxp B.V. Smart passive speaker drive
CN105892982A (zh) * 2016-03-31 2016-08-24 乐视控股(北京)有限公司 外接扬声器切换方法及装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1292967A (zh) * 1998-03-05 2001-04-25 艾利森电话股份有限公司 用于无线通信的音频装置选择器
CN2367042Y (zh) * 1999-01-20 2000-03-01 海信集团公司 扬声器自动切换开关
CN1261248A (zh) * 1999-01-20 2000-07-26 海信集团公司 扬声器自动切换开关
CN102045622A (zh) * 2009-10-16 2011-05-04 深圳Tcl新技术有限公司 内外置扬声器切换的方法及其装置
CN101877742A (zh) * 2010-01-25 2010-11-03 宇龙计算机通信科技(深圳)有限公司 一种音视频的切换控制方法、系统及移动终端
EP2930941A1 (en) * 2014-04-10 2015-10-14 Nxp B.V. Smart passive speaker drive
CN105892982A (zh) * 2016-03-31 2016-08-24 乐视控股(北京)有限公司 外接扬声器切换方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113905027A (zh) * 2021-12-10 2022-01-07 南昌航天广信科技有限责任公司 网络信号优先传输方法、系统、计算机和可读存储介质
CN113905027B (zh) * 2021-12-10 2022-03-01 南昌航天广信科技有限责任公司 网络信号优先传输方法、系统、计算机和可读存储介质

Also Published As

Publication number Publication date
CN105892982A (zh) 2016-08-24

Similar Documents

Publication Publication Date Title
WO2017166685A1 (zh) 外接扬声器切换方法及装置
KR101924163B1 (ko) Hdmi 소스의 출력을 관리하기 위한 방법들, 시스템들 및 매체들
US9886264B2 (en) Method and device for upgrading firmware
US10869079B2 (en) Apparatus and control method for displaying content of peripheral device
US9769667B2 (en) Methods for controlling smart device
JP6626440B2 (ja) マルチメディアファイルを再生するための方法及び装置
US10142578B2 (en) Method and system for communication
BR102013000553A2 (pt) Aparelho de exibição de imagem possibilitando o reconhecimento de voz, e método de controlar um aparelho de exibição de imagem incluindo uma unidade de entrada de voz e uma unidade de saída de áudio
WO2017181598A1 (zh) 视频播放方法及装置
CN110636370B (zh) 一种视频处理方法、装置、电子设备和可读介质
EP2854342A1 (en) Multi-screen interaction method, apparatus, and terminal device
CN107204883B (zh) 网络故障处理方法及装置
CN107636541B (zh) 计算设备上的方法、用于闹铃的系统和机器可读介质
KR20170061107A (ko) 화상 획득 방법 및 장치
US10388326B1 (en) Computing system with external speaker detection feature
US10291967B2 (en) Function upgrade device, display apparatus and method for controlling display apparatus thereof
WO2017113707A1 (zh) 多屏切换方法、服务器和终端
US20170192741A1 (en) Method, System, and Computer Storage Medium for Voice Control of a Split-Screen Terminal
WO2017113708A1 (zh) 视频播放方法及装置
US20170019482A1 (en) Method and apparatus for downloading control program
US20120287283A1 (en) Electronic device with voice prompt function and voice prompt method
CN104254021B (zh) 信息显示方法、装置和系统
US9380189B2 (en) Method of providing information configuration function in video play device and video play device
WO2017166686A1 (zh) 外接扬声器切换方法及装置
CN105760377A (zh) 一种信息处理方法和装置

Legal Events

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

Ref country code: DE

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

Ref document number: 16896455

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16896455

Country of ref document: EP

Kind code of ref document: A1