WO2017166684A1 - 电子设备的音箱控制方法及装置 - Google Patents

电子设备的音箱控制方法及装置 Download PDF

Info

Publication number
WO2017166684A1
WO2017166684A1 PCT/CN2016/097307 CN2016097307W WO2017166684A1 WO 2017166684 A1 WO2017166684 A1 WO 2017166684A1 CN 2016097307 W CN2016097307 W CN 2016097307W WO 2017166684 A1 WO2017166684 A1 WO 2017166684A1
Authority
WO
WIPO (PCT)
Prior art keywords
speaker
electronic device
host
mode
connection
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2016/097307
Other languages
English (en)
French (fr)
Inventor
陈超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Le Holdings Beijing Co Ltd
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Le Holdings Beijing Co Ltd
Leshi Zhixin Electronic Technology Tianjin Co Ltd
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 Le Holdings Beijing Co Ltd, Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Le Holdings Beijing Co Ltd
Publication of WO2017166684A1 publication Critical patent/WO2017166684A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/165Management of the audio stream, e.g. setting of volume, audio stream path

Definitions

  • Embodiments of the present disclosure relate to the field of electronic device control technologies, and in particular, to a speaker control method and apparatus for an electronic device.
  • the inventors have found that at least the following problems exist in the related art: in the case of a television, the television main body and the speaker transmit audio signals through a data connection line, and the television main body supplies power to the speaker through the power line, when the user increases the television.
  • the sound effect when the speaker needs to be disassembled, because the data cable and the power cable are connected between the TV main body and the speaker, the disassembly of the speaker is very inconvenient.
  • the user needs to manually set the data transmission mode and/or the power supply mode of the speaker, and the playback of the speaker is interrupted, which affects the user's experience of watching TV.
  • Embodiments of the present disclosure provide a speaker control method and apparatus for an electronic device to automatically switch a data transmission mode of a host device and a speaker of an electronic device and/or a power supply mode of the speaker.
  • an embodiment of the present disclosure provides a speaker control method for an electronic device, including:
  • connection manner between the host and the speaker of the electronic device includes a wired connection manner or a wireless connection manner.
  • connection mode between the host and the speaker of the electronic device is a wired connection manner
  • the root According to the connection manner between the host device and the speaker of the electronic device, the data transmission mode is determined to be wired data transmission, and/or, according to the connection manner between the host device and the speaker of the electronic device, the power supply mode of the speaker is determined to be an external power supply.
  • connection mode between the host and the speaker of the electronic device is a wireless connection mode
  • determining a data transmission mode as wireless data transmission according to a connection manner between the host device and the speaker of the electronic device, and/or, according to the The connection between the host and the speaker of the electronic device determines that the power supply mode of the speaker is powered by the internal battery.
  • the method for obtaining the connection between the host and the speaker of the electronic device includes:
  • connection mode between the host and the speaker of the electronic device is obtained through the contact sensor.
  • the contact sensor comprises at least one of a mechanical contact sensor, a magnetic contact sensor and a light sensor.
  • the speaker control method of the electronic device further includes:
  • the sound quality parameter of the audio signal output to the speaker is adjusted according to the type of the speaker.
  • an embodiment of the present disclosure further provides a speaker control device for an electronic device, the device comprising:
  • connection mode acquisition module is configured to obtain a connection mode between the host device and the speaker of the electronic device
  • the working mode adjusting module is configured to determine a data transmission mode and/or a power supply mode of the speaker according to the connection manner between the host and the speaker.
  • connection manner between the host and the speaker of the electronic device includes a wired connection manner or a wireless connection manner.
  • the working mode adjusting module is specifically configured to: if the connection mode of the host device and the speaker of the electronic device is a wired connection manner, determining that the data transmission mode is wired according to the connection manner between the host device and the speaker of the electronic device Data transmission, and/or determining the power supply mode of the speaker according to the connection mode of the host device and the speaker of the electronic device is an external power supply.
  • the working mode adjusting module is specifically configured to: if the connection mode of the host device and the speaker of the electronic device is a wireless connection mode, determining, according to the connection manner between the host device and the speaker of the electronic device, that the data transmission mode is wireless Data transmission, and/or according to the host and speaker of the electronic device The connection method determines that the speaker is powered by the internal battery.
  • connection mode obtaining module includes:
  • An audio interface detecting module configured to acquire a connection manner between a host and a speaker of the electronic device by detecting an audio interface signal;
  • the contact sensor module is configured to acquire a connection manner between the host of the electronic device and the speaker through the contact sensor.
  • the contact sensor comprises at least one of a mechanical contact sensor, a magnetic contact sensor and a light sensor.
  • the speaker control device of the electronic device further includes:
  • a speaker type acquisition module configured to acquire the type of the speaker according to the contact sensor
  • the sound quality parameter adjustment module is configured to adjust a sound quality parameter of the audio signal output to the speaker according to the type of the speaker.
  • an embodiment of the present disclosure further provides an electronic device, including the speaker control device provided by the embodiment of the second aspect.
  • the embodiment of the present disclosure further provides a sound box, comprising the speaker control device that does not include the speaker type acquisition module and the sound quality parameter adjustment module provided by the embodiment of the second aspect.
  • 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 When executed by the at least one processor, the at least one processor is configured to: obtain a connection manner between a host of the electronic device and a speaker; and determine data according to a connection manner between the host and the speaker of the electronic device Transmission method and / or speaker power supply.
  • Embodiments of the present disclosure also provide a non-transitory storage medium storing computer executable instructions configured to perform the above-described speaker control method 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 The computer is caused to execute the above-described speaker control method of the electronic device.
  • the disclosure converts the data transmission mode of the host device and the speaker of the electronic device and/or the power supply mode of the speaker, and solves the interruption of the speaker playing when the speaker is disassembled, and requires the user to manually convert the data transmission mode. And / or speaker power supply problems, to achieve speakers
  • the data transmission mode of the host device and the speaker of the electronic device and/or the power supply mode of the speaker are automatically converted, and the speaker maintains the playing state, thereby improving the effect of the user experience.
  • FIG. 1 is a flowchart of a speaker control method of an electronic device according to Embodiment 1 of the present disclosure
  • FIG. 2 is a flowchart of a speaker control method of an electronic device according to Embodiment 2 of the present disclosure
  • 3A is a schematic diagram of a contact sensor of a host of an electronic device according to Embodiment 2 of the present disclosure
  • FIG. 3B is a schematic view of a contact of a speaker in Embodiment 2 of the present disclosure.
  • 3C is a schematic view of a contact of a speaker in Embodiment 2 of the present disclosure.
  • 3D is a schematic view of a contact of a speaker in Embodiment 2 of the present disclosure.
  • FIG. 4 is a schematic structural diagram of a speaker control device of an electronic device according to Embodiment 3 of the present disclosure
  • FIG. 5 is a schematic structural diagram of an electronic device according to Embodiment 4 of the present disclosure.
  • Embodiment 6 is a schematic structural view of a speaker in Embodiment 5 of the present disclosure.
  • FIG. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.
  • Embodiment 1 is a flowchart of a method for controlling a speaker of an electronic device according to Embodiment 1 of the present disclosure.
  • the embodiment is applicable to a case where an electronic device is disassembled, and the method may be a speaker disposed in an electronic device in an electronic device.
  • the control device performs the operation or is performed by a speaker control device provided in the speaker. Specifically, the following steps 110 and 120 are included:
  • step 110 a method of connecting the host of the electronic device to the speaker is obtained.
  • connection between the host of the electronic device and the speaker is a connection between the two for transmitting data.
  • the connection method includes a wired connection method or a wireless connection method.
  • the connection mode of the speaker and the speaker can be obtained by the host of the electronic device, and the speaker also obtains the connection mode with the host.
  • the wired connection mode is a host and a speaker connected to the electronic device through an audio interface
  • the wireless transmission mode includes at least one of a Bluetooth transmission mode, a wireless local area network, and an infrared transmission mode, and a host and a speaker connected to the electronic device.
  • a laser TV equipped with a detachable speaker when the speaker is mounted on the host of the laser TV, the host and the speaker of the laser TV are connected through an audio interface, and the host obtains an audio signal output from the audio interface, and the host determines and The connection mode of the speaker is a wired connection mode; when the speaker obtains an audio signal input from the audio plug, the speaker determines that the connection mode with the host is a wired connection mode.
  • the host and the speaker are no longer connected through the audio interface, and the host obtains no audio signal output from the audio interface, and the host switches to connect with the speaker through Bluetooth.
  • the Bluetooth connection is successful, the host determines The connection mode with the speaker is wireless connection mode; when the speaker obtains the audio plug without audio signal input, the speaker switches to connect with the host through Bluetooth.
  • the Bluetooth connection is successful, the speaker determines that the connection mode with the host is wireless connection mode.
  • step 120 the data transmission mode and/or the power supply mode of the speaker are determined according to the connection mode of the host device and the speaker of the electronic device.
  • the data transmission mode described in this step is a manner in which the host of the electronic device transmits an audio signal to the speaker, and the power supply mode of the speaker includes the external power supply provided by the host of the electronic device for the speaker and the built-in battery of the speaker as the power supply. .
  • the connection mode between the host and the speaker When the connection mode between the host and the speaker is wired, the host outputs an audio signal through the audio interface, and supplies power to the speaker through a power interface between the host and the speaker.
  • the speaker receives the audio signal through the audio plug, and obtains the power interface between the host and the speaker.
  • External power supply When the connection mode between the host and the speaker is wireless, the host outputs the audio signal through the wireless connection mode, and cuts off the output of the power interface.
  • the speaker receives the audio signal through the wireless connection mode and switches to the built-in battery.
  • the connection mode between the host device and the speaker of the electronic device is a wired connection mode
  • the data transmission mode is determined to be wired data transmission according to the connection manner between the host device and the speaker of the electronic device, and/or according to The connection mode between the host computer and the speaker of the electronic device determines that the power supply mode of the speaker is powered by an external power source.
  • the connection mode of the host device and the speaker of the electronic device is a wireless connection mode
  • the data transmission mode is determined to be wireless data transmission according to the connection mode of the host device and the speaker of the electronic device, and/or, according to the connection mode of the host device and the speaker of the electronic device.
  • the speaker is powered by an internal battery.
  • the technical solution of the embodiment is obtained by acquiring the connection mode of the host device and the speaker of the electronic device.
  • the data transmission mode of the host computer and the speaker of the electronic device and/or the power supply mode of the speaker solve the interruption of the speaker playback when the speaker is disassembled, and the user needs to manually convert the data transmission mode and/or the speaker power supply mode to realize the speaker disassembly, according to the electronic
  • the connection mode of the host and the speaker of the device automatically converts the data transmission mode of the host device and the speaker of the electronic device and/or the power supply mode of the speaker, and the speaker maintains the playing state, thereby improving the user experience.
  • FIG. 2 is a flowchart of a method for controlling a speaker of an electronic device according to Embodiment 2 of the present disclosure.
  • the technical solution of the embodiment is further refined on the basis of the foregoing technical solution, and obtaining a connection between a host computer and a speaker of the electronic device.
  • the method includes step 210, step 220, step 230 and step 240:
  • step 210 obtaining a connection mode between the host of the electronic device and the speaker by detecting the audio interface signal; and/or,
  • step 220 the connection mode of the host of the electronic device and the speaker is obtained through the contact sensor.
  • the connection mode between the host and the speaker can be obtained through steps 210 and 220, respectively. After the steps 210 and 220 are performed, the connection mode between the host and the speaker is determined according to the results of the two steps, that is, the two steps are obtained.
  • the host of the electronic device determines the audio interface is in an on or off state by detecting the output of the audio interface, thereby determining whether the connection mode between the host and the speaker is a wired connection or a wireless connection; the speaker determines the audio connector by detecting the input of the audio connector. The state of being turned on or off, thereby determining whether the speaker is connected to the host as a wired connection or a wireless connection.
  • the host or the speaker can determine the connection mode of the host device and the speaker of the electronic device to a wired connection or a wireless connection by acquiring a signal of the contact sensor.
  • the contact sensor comprises at least one of a mechanical contact sensor, a magnetic contact sensor and a light sensor.
  • the contact sensor is a magnetic-sensing contact sensor, and at least one magnetic-sensing contact sensor is disposed on the main body of the electronic device, and the speaker is provided with at least one magnetic contact corresponding to the position of the contact sensor; and/or, on the speaker At least one magnetic contact sensor is disposed, and the host is provided with at least one magnetic contact corresponding to the position of the contact sensor.
  • the magnetic contact When the speaker is mounted on the main body, the magnetic contact is in contact with the corresponding magnetic-sensing contact sensor, and the signal contacted by the magnetic-sensing contact sensor is in contact state, and the host and the speaker transmit the audio signal through the audio interface, and the host supplies power to the speaker.
  • the speaker package is detached from the main body, the magnetic contact is separated from the corresponding magnetic-sensing contact sensor, and the signal contacted by the magnetic-sensing contact sensor is in a separated state, and the host and the speaker are connected at this time.
  • the wireless module transmits the audio signal, and the speaker switches to the built-in battery to power the speaker.
  • the speaker control method of the electronic device further includes:
  • step 230 the type of the speaker is obtained according to the contact sensor
  • step 240 the sound quality parameter of the audio signal output to the speaker is adjusted according to the type of the speaker.
  • the electronic device can be equipped with a plurality of speakers connected to the host, the electronic device is configured with a set of contact sensors and/or contacts, and different speakers are provided with different contacts and/or contact sensors, when the speakers are mounted on the host
  • the host determines the type of the speaker currently connected to the host by acquiring a combination of the states of the contact sensors in the contact sensor group.
  • connection mode of the host and the speaker is a wired connection
  • different types of speakers have different response curves to audio signals of different frequencies
  • the output is adjusted at different frequencies so that the audio signal output by the host is adapted to the audio signal of the speaker.
  • the magnetic sensing contacts on the first speaker 320 include a first magnetic sensing contact 321 and a second magnetic sensing contact 322, wherein when the first speaker package 320 is matched
  • the second magnetic sensing contact 322 and the second magnetic sensing contact sensor 312 are correspondingly positioned; as shown in FIG.
  • the second speaker The magnetic sensing contact on 330 includes a third magnetic sensing contact 331 and a fourth magnetic sensing contact 332, wherein the third magnetic sensing contact 331 and the first magnetic sensing contact sensor 311 position when the second speaker 330 is mounted on the main unit 310 Correspondingly, the fourth magnetic sensing contact 332 and the third magnetic sensing contact sensor 313 are correspondingly positioned; as shown in FIG.
  • the magnetic sensing contact on the third speaker 340 includes a fifth magnetic sensing contact 341, a sixth magnetic sensing contact 342, and a seventh magnetic sensing contact 343, wherein when the third speaker 340 is mounted on the main body 310, the fifth magnetic sensing contact 341 and the first magnetic sensing contact sensor 311 are correspondingly positioned, the sixth magnetic sensing contact 342 and the second magnetic sensing type
  • the position of the contact sensor 312 corresponds to the seventh magnetic contact 343 and Corresponding to the three magnetic sensing touch sensor 313 position.
  • the state of the first magnetic sensor contact sensor 311 and the second magnetic sensor contact sensor 312 when the first speaker 320 is mounted on the host 310 For contact, the state of the third magnetic proximity contact sensor 313 is separation; when the second speaker 330 is mounted on the host 310, the states of the first magnetic proximity contact sensor 311 and the third magnetic proximity contact sensor 313 are contact, The state of the second magnetic proximity contact sensor 312 is separation; when the third When the speaker 340 is mounted on the main body 310, the states of the first magnetic proximity contact sensor 311, the second magnetic proximity contact sensor 312, and the third magnetic proximity contact sensor 313 are contacts.
  • the technical solution of the embodiment determines the connection mode of the host and the speaker through the audio interface and/or the contact sensor of the electronic device, and further detects the combination of the state of the contact sensor, determines the type of the speaker, and adjusts the audio signal according to the type of the speaker, so that Different speakers can achieve their ideal sound quality and enhance the user experience.
  • the speaker control device 40 of the electronic device includes:
  • connection mode obtaining module 410 is configured to acquire a connection manner between the host device and the speaker of the electronic device;
  • the working mode adjusting module 420 is configured to determine a data transmission mode and/or a power supply mode of the speaker according to a connection manner between the host and the speaker.
  • the wireless transmission mode includes at least one of a Bluetooth transmission mode, a wireless local area network, and an infrared transmission mode.
  • the host and the speaker of the electronic device are configured with a corresponding wireless transmission module for wireless transmission of data.
  • connection manner between the host and the speaker of the electronic device includes a wired connection manner or a wireless connection manner.
  • the working mode adjusting module 420 is specifically configured to: if the connection mode of the host device and the speaker of the electronic device is a wired connection mode, determine the data transmission mode as wired data transmission according to the connection manner of the host device and the speaker of the electronic device, and/ Or, according to the connection mode of the host device and the speaker of the electronic device, the power supply mode of the speaker is determined to be an external power supply.
  • the working mode adjusting module 420 is specifically configured to: if the connection mode of the host device and the speaker of the electronic device is a wireless connection mode, determine the data transmission mode as wireless data transmission according to the connection manner between the host device and the speaker of the electronic device, and/ Or, according to the connection mode of the host device and the speaker of the electronic device, the power supply mode of the speaker is determined to be the internal battery power supply.
  • connection mode obtaining module 410 includes:
  • the audio interface detecting module 411 is configured to acquire a connection manner between the host and the speaker of the electronic device by detecting the audio interface signal; and/or,
  • the contact sensor module 412 is configured to acquire a connection manner between the host of the electronic device and the speaker through the contact sensor.
  • the contact sensor comprises at least one of a mechanical contact sensor, a magnetic contact sensor, and a light sensor.
  • the speaker control device 40 of the electronic device further includes:
  • the speaker type acquisition module 430 is configured to acquire the type of the speaker according to the contact sensor
  • the sound quality parameter adjustment module 440 is configured to adjust the sound quality parameter of the audio signal output to the speaker according to the type of the speaker.
  • the technical solution of the embodiment by acquiring the connection mode of the host device and the speaker of the electronic device, correspondingly converting the data transmission mode of the host device and the speaker of the electronic device and/or the power supply mode of the speaker, solving the interruption of the speaker playing when the speaker is disassembled, and requiring the user Manually convert the data transmission mode and/or the speaker power supply mode.
  • the data transmission mode of the host and the speaker of the electronic device and/or the power supply mode of the speaker are automatically converted according to the connection mode of the host device and the speaker of the electronic device. Keep playing and improve the user experience.
  • FIG. 5 is a schematic structural diagram of an electronic device according to Embodiment 4 of the present disclosure.
  • the electronic device 50 includes a speaker control device 510, an output device 520, and a speaker 530 in Embodiment 3.
  • the speaker 550 is a detachable speaker, and the output device 520 includes an audio interface and a wireless data transmission interface.
  • the electronic device 50 has a function module and a beneficial effect corresponding to the method in the foregoing embodiment.
  • the speaker 60 includes the speaker control device 610 in Embodiment 3 (but the speaker control device 610 in the speaker 60 does not include the speaker type acquisition in the above embodiment.
  • Module and sound quality parameter adjustment module at least one speaker 620 and input device 630, wherein the speaker 60 is a detachable speaker equipped for the electronic device, and the input device 630 is an audio connector and a wireless data transmission interface.
  • 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, including several.
  • the instructions are used to cause a device (which may be a microcontroller, chip, etc.) or a processor to perform 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. 7 is a schematic structural diagram of hardware of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 7, the electronic device includes:
  • processors 701 and a memory 702 are exemplified by a processor 701 in FIG.
  • the electronic device may further include: an input device 703 and an output device 704.
  • the processor 701, the memory 702, the input device 703, and the output device 704 in the electronic device may be connected by a bus or other means, as exemplified by a bus connection in FIG.
  • the memory 702 is used as a non-volatile computer readable storage medium, and can be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions corresponding to the speaker control method in the embodiment of the present application. / Module (for example, the speaker type acquisition module 430, the sound quality parameter adjustment module 440, etc. shown in FIG. 4).
  • the processor 701 implements a method of speaker control by running non-volatile software programs, instructions, and modules stored in the memory 702.
  • the memory 702 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 a speaker control method use, and the like.
  • memory 702 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.
  • memory 702 can optionally include a memory that is remotely located relative to processor 701.
  • Input device 703 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 704 can include a display device such as a display screen.
  • the one or more modules are stored in the memory 702, and when executed by the one or more processors 701, perform the method of speaker control in any of the above method embodiments.
  • Embodiments of the present disclosure also provide a non-transitory computer readable storage medium storing computer executable instructions that, when executed by an electronic device, cause the electronic device to perform the electronic device of the above-described embodiments Speaker control method.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM).
  • the disclosure converts the data transmission mode of the host device and the speaker of the electronic device and/or the power supply mode of the speaker, and solves the interruption of the speaker playing when the speaker is disassembled, and requires the user to manually convert the data transmission mode. And / or speaker power supply problem, when the speaker is disassembled, according to the connection mode of the host device and the speaker of the electronic device, the data transmission mode of the host device and the speaker of the electronic device and/or the power supply mode of the speaker are automatically converted, and the speaker maintains the playing state and improves The effect of the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Details Of Audible-Bandwidth Transducers (AREA)

Abstract

本公开公开了一种电子设备的音箱控制方法及装置,属于电子设备控制技术领域。其中,上述方法包括:获取所述电子设备的主机与音箱的连接方式;根据所述电子设备的所述主机与音箱的连接方式确定数据传输方式和/或音箱的供电方式。本公开实施例还提供了对应的装置,以及电子设备和音箱。上述技术方案能够根据电子设备的主机和音箱的连接方式自动转换电子设备的主机和音箱的数据传输方式和/或音箱的供电方式,音箱保持播放状态,提升用户体验的效果。

Description

电子设备的音箱控制方法及装置
本申请要求在2016年3月30日提交中国专利局、申请号为2016101910520、名称为“一种电子设备的音箱控制方法及装置”的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本公开实施例涉及电子设备控制技术领域,尤其涉及一种电子设备的音箱控制方法及装置。
背景技术
现如今,人们生活中的配备音箱的电子设备越来越多,例如电视、电脑和便携式数字化视频光盘(DVD)播放机等,而且很多电子设备配备可拆卸式音箱。
在实现本发明过程中,发明人发现相关技术中至少存在如下问题:以电视为例,电视主体和音箱通过数据连接线传输音频信号,而且电视主体通过电源线为音箱供电,当用户为增加电视的音响效果,而需要对音箱进行拆卸时,因为电视主体和音箱间有数据连接线和电源线连接,所以音箱的拆卸十分不方便。而音箱和电视主体分离后,用户需要手动设置数据传输方式和/或音箱的供电方式,音箱的播放出现中断,影响用户观看电视的体验。
发明内容
本公开实施例提供一种电子设备的音箱控制方法及装置,以实现自动切换电子设备的主机与音箱的数据传输方式和/或音箱的供电方式。
第一方面,本公开实施例提供了一种电子设备的音箱控制方法,包括:
获取所述电子设备的主机与音箱的连接方式;
根据所述电子设备的所述主机与音箱的连接方式确定数据传输方式和/或音箱的供电方式。
可选地,所述电子设备的主机与音箱的连接方式包括有线连接方式或无线连接方式。
可选地,若所述电子设备的主机与音箱的连接方式为有线连接方式,则根 据所述电子设备的主机与音箱的连接方式确定数据传输方式为有线数据传输,和/或,根据所述电子设备的主机与音箱的连接方式确定音箱的供电方式为外接电源供电。
可选地,若所述电子设备的主机与音箱的连接方式为无线连接方式,则根据所述电子设备的主机与音箱的连接方式确定数据传输方式为无线数据传输,和/或,根据所述电子设备的主机与音箱的连接方式确定音箱的供电方式为内部电池供电。
可选地,获取所述电子设备的主机与音箱的连接方式包括:
通过检测音频接口信号获取所述电子设备的主机与音箱的连接方式;和/或,
通过接触传感器获取所述电子设备的主机与音箱的连接方式。
可选地,所述接触传感器包括:机械式接触传感器、磁感式接触传感器和光感式接触传感器中的至少一种。
可选地,电子设备的音箱控制方法还包括:
根据所述接触传感器获取所述音箱的类型;
根据所述音箱的类型调整向所述音箱输出的音频信号的音质参数。
第二方面,本公开实施例还提供了一种电子设备的音箱控制装置,该装置包括:
连接方式获取模块,设置为获取电子设备的主机与音箱的连接方式;
工作方式调整模块,设置为根据所述主机与音箱的连接方式确定数据传输方式和/或音箱的供电方式。
可选地,所述电子设备的主机与音箱的连接方式包括有线连接方式或无线连接方式。
可选地,所述工作方式调整模块具体设置为:若所述电子设备的主机与音箱的连接方式为有线连接方式,则根据所述电子设备的主机与音箱的连接方式确定数据传输方式为有线数据传输,和/或,根据所述电子设备的主机与音箱的连接方式确定音箱的供电方式为外接电源供电。
可选地,所述工作方式调整模块具体设置为:若所述电子设备的主机与音箱的连接方式为无线连接方式,则根据所述电子设备的主机与音箱的连接方式确定数据传输方式为无线数据传输,和/或,根据所述电子设备的主机与音箱的 连接方式确定音箱的供电方式为内部电池供电。
可选地,所述连接方式获取模块包括:
音频接口检测模块,设置为通过检测音频接口信号获取所述电子设备的主机与音箱的连接方式;和/或,
接触传感器模块,设置为通过接触传感器获取所述电子设备的主机与音箱的连接方式。
可选地,所述接触传感器包括:机械式接触传感器、磁感式接触传感器和光感式接触传感器中的至少一种。
可选地,电子设备的音箱控制装置还包括:
音箱类型获取模块,设置为根据所述接触传感器获取所述音箱的类型;
音质参数调整模块,设置为根据所述音箱的类型调整向所述音箱输出的音频信号的音质参数。
第三方面,本公开实施例还提供了一种电子设备,包括上述第二方面的实施例提供的音箱控制装置。
第四方面,本公开实施例还提供了一种音箱,包括上述第二方面的实施例提供的不包含音箱类型获取模块和音质参数调整模块的音箱控制装置。
本公开实施例还提供一种电子装置,包括至少一个处理器和与所述至少一个处理器通信连接的存储器,所述存储器用于存储可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时,使所述至少一个处理器执行以下操作:获取所述电子设备的主机与音箱的连接方式;根据所述电子设备的所述主机与音箱的连接方式确定数据传输方式和/或音箱的供电方式。
本公开实施例还提供一种非暂态存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述的电子设备的音箱控制方法。
本公开实施例还提供一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述的电子设备的音箱控制方法。
本公开通过获取电子设备的主机与音箱的连接方式,相应转换电子设备的主机与音箱的数据传输方式和/或音箱的供电方式,解决音箱拆卸时音箱播放中断,而且需要用户手动转换数据传输方式和/或音箱供电方式的问题,实现音箱 拆卸时,根据电子设备的主机和音箱的连接方式自动转换电子设备的主机和音箱的数据传输方式和/或音箱的供电方式,音箱保持播放状态,提升用户体验的效果。
附图说明
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。
图1是本公开实施例一中的一种电子设备的音箱控制方法的流程图;
图2是本公开实施例二中的一种电子设备的音箱控制方法的流程图;
图3A是本公开实施例二中的一种电子设备的主机的接触传感器的示意图;
图3B是本公开实施例二中的一种音箱的触点的示意图;
图3C是本公开实施例二中的一种音箱的触点的示意图;
图3D是本公开实施例二中的一种音箱的触点的示意图;
图4是本公开实施例三中的一种电子设备的音箱控制装置的结构示意图;
图5是本公开实施例四中的一种电子设备的结构示意图;
图6是本公开实施例五中的一种音箱的结构示意图;
图7是本公开实施例提供的一种电子装置的硬件结构示意图。
实施方式
下面结合附图和实施例对本公开作可选地详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本公开,而非对本公开的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本公开相关的部分而非全部结构。
实施例一
图1为本公开实施例一提供的一种电子设备的音箱控制方法的流程图,本实施例可适用于电子设备拆卸音箱的情况,该方法可以由配置在电子设备中的电子设备中的音箱控制装置来执行,或者是由设置在音箱中的音箱控制装置来执行。具体包括如下步骤110和步骤120:
在步骤110中、获取电子设备的主机与音箱的连接方式。
其中,电子设备的主机与音箱的连接方式为两者之间的用于传输数据的连 接方式,包括有线连接方式或无线连接方式,本步骤中,既可以是由电子设备的主机获取其与音箱的连接方式,同时音箱也获取其与主机的连接方式。
具体的,有线连接方式为通过音频接口连接电子设备的主机与音箱,无线传输方式包括:蓝牙传输方式、无线局域网络和红外传输方式中的至少一种连接电子设备的主机与音箱。示例的,配置有可拆卸音箱的激光电视,当音箱装配在激光电视的主机上时,激光电视的主机和音箱之间通过音频接口连接,主机获取到音频接口有音频信号输出,则主机确定与音箱的连接方式为有线连接方式;音箱获取到音频插头有音频信号输入,则音箱确定与主机的连接方式为有线连接方式。当音箱从激光电视的主机上拆卸下来时,主机和音箱间不再通过音频接口连接,主机获取到音频接口无音频信号输出,则主机切换为通过蓝牙与音箱连接,当蓝牙连接成功,主机确定与音箱的连接方式为无线连接方式;音箱获取到音频插头无音频信号输入,则音箱切换为通过蓝牙与主机连接,当蓝牙连接成功,音箱确定与主机的连接方式为无线连接方式。
在步骤120中、根据电子设备的主机与音箱的连接方式确定数据传输方式和/或音箱的供电方式。
其中,本步骤中所述的数据传输方式为电子设备的主机向音箱传输音频信号的方式,音箱的供电方式包括由电子设备的主机为音箱提供外接电源和使用音箱内置电池作为电源两种供电方式。当主机和音箱的连接方式为有线连接,主机通过音频接口输出音频信号,并通过主机与音箱间的电源接口为音箱供电,音箱通过音频插头接收音频信号,并从主机与音箱间的电源接口获取外接电源;当主机和音箱的连接方式为无线连接,主机通过无线连接方式输出音频信号,并切断电源接口的输出,音箱通过无线连接方式接收音频信号,并切换到内置电池供电。
本公开实施例中,可选的,若电子设备的主机与音箱的连接方式为有线连接方式,则根据电子设备的主机与音箱的连接方式确定数据传输方式为有线数据传输,和/或,根据电子设备的主机与音箱的连接方式确定音箱的供电方式为外接电源供电。若电子设备的主机与音箱的连接方式为无线连接方式,则根据电子设备的主机与音箱的连接方式确定数据传输方式为无线数据传输,和/或,根据电子设备的主机与音箱的连接方式确定音箱的供电方式为内部电池供电。本实施例的技术方案,通过获取电子设备的主机与音箱的连接方式,相应转换 电子设备的主机与音箱的数据传输方式和/或音箱的供电方式,解决音箱拆卸时音箱播放中断,而且需要用户手动转换数据传输方式和/或音箱供电方式的问题,实现音箱拆卸时,根据电子设备的主机和音箱的连接方式自动转换电子设备的主机和音箱的数据传输方式和/或音箱的供电方式,音箱保持播放状态,提升用户体验的效果。
实施例二
图2为本公开实施例二提供的一种电子设备的音箱控制方法的流程图,本实施例的技术方案是在上述技术方案的基础上,进一步细化,获取电子设备的主机与音箱的连接方式包括步骤210、步骤220、步骤230和步骤240:
在步骤210中、通过检测音频接口信号获取电子设备的主机与音箱的连接方式;和/或,
在步骤220中、通过接触传感器获取电子设备的主机与音箱的连接方式。
其中,可以分别通过步骤210和步骤220获取主机与音箱的连接方式,也可以在步骤210和步骤220执行完成后,根据这两个步骤的结果确定主机与音箱的连接方式,即两个步骤获取的主机与音箱的连接方式相同时,确定主机与音箱的连接方式。电子设备的主机通过检测音频接口的输出,确定音频接口处于导通或断开的状态,进而确定主机与音箱的连接方式为有线连接或无线连接;音箱通过检测音频接头的输入,确定音频接头处于导通或断开的状态,进而确定音箱与主机的连接方式为有线连接或无线连接。另外,主机或音箱都可以通过获取接触传感器的信号确定电子设备的主机与音箱的连接方式为有线连接或无线连接。
可选地,所述接触传感器包括:机械式接触传感器、磁感式接触传感器和光感式接触传感器中的至少一种。示例的,接触传感器为磁感式接触传感器,在电子设备的主机上设置至少一个磁感式接触传感器,音箱上设置有与接触传感器位置对应的至少一个磁性触点;和/或,在音箱上设置至少一个磁感式接触传感器,主机上设置有与接触传感器位置对应的至少一个磁性触点。当音箱装在主机上,磁性触点和与其对应的磁感式接触传感器接触,磁感式接触传感器接触的信号为接触状态,同时主机与音箱通过音频接口传输音频信号,并由主机为音箱供电;当音箱装从主机上拆卸下来,磁性触点和与其对应的磁感式接触传感器分离,磁感式接触传感器接触的信号为分离状态,此时主机与音箱通 过无线模块传输音频信号,并且音箱切换为内置电池为音箱供电。
可选地,电子设备的音箱控制方法,还包括:
在步骤230中、根据接触传感器获取音箱的类型;
在步骤240中、根据音箱的类型调整向音箱输出的音频信号的音质参数。
其中,电子设备可配备与主机连接的多款音箱,电子设备配置一组接触传感器和/或触点,不同款的音箱上配置不同的触点和/或接触传感器,当音箱装在主机上时,主机通过获取接触传感器组中各个接触传感器的状态的组合,确定当前与主机连接的音箱的类型。在确定主机和音箱的连接方式为有线连接的情况下,由于不同类型的音箱对不同频率的音频信号的响应曲线不同,为了给用户带来理想的音质感受,进一步针对不同类型的音箱,电子设备的主机在识别当前连接的音箱的类型后,输出在不同频率进行相应的调整使主机输出的音频信号适于该音箱的音频信号。
示例的,如图3A所示,电子设备的主机310上配置3个磁感式接触传感器,第一磁感式接触传感器311、第二磁感式接触传感器312和第三磁感式接触传感器313,3个磁感式接触传感器处于一条直线上。该电子设备配备有三款不同类型的音箱,如图3B所示,第一音箱320上的磁感触点包括第一磁感触点321和第二磁感触点322,其中当第一音箱装320配在主机310上时,第一磁感触点321和第一磁感式接触传感器311位置对应,第二磁感触点322和第二磁感式接触传感器312位置对应;如图3C所示,第二音箱330上的磁感触点包括第三磁感触点331和第四磁感触点332,其中当第二音箱330装配在主机310上时,第三磁感触点331和第一磁感式接触传感器311位置对应,第四磁感触点332和第三磁感式接触传感器313位置对应;如图3D所示,第三音箱340上的磁感触点包括第五磁感触点341、第六磁感触点342和第七磁感触点343,其中当第三音箱340装配在主机310上时,第五磁感触点341和第一磁感式接触传感器311位置对应,第六磁感触点342和第二磁感式接触传感器312位置对应,第七磁感触点343和第三磁感式接触传感器313位置对应。由以上音箱上的触点和主体上的接触传感器的位置对应情况可知,当第一音箱320装配在主机310上时,第一磁感式接触传感器311和第二磁感式接触传感器312的状态为接触,第三磁感式接触传感器313的状态为分离;当第二音箱330装配在主机310上时,第一磁感式接触传感器311和第三磁感式接触传感器313的状态为接触,第二磁感式接触传感器312的状态为分离;当第三 音箱340装配在主机310上时,第一磁感式接触传感器311、第二磁感式接触传感器312和第三磁感式接触传感器313的状态为接触。通过获取的3个磁感式接触传感器的状态的组合,可以确定连接的音箱的类型,进而调整向音箱输出的音频信号的音质参数。
本实施例的技术方案,通过电子设备的音频接口和/或接触传感器确定主机和音箱的连接方式,并进一步检测接触传感器的状态的组合,确定音箱的类型,根据音箱的类型调整音频信号,使不同音箱能够达到各自理想的音质,提升了用户的体验。
实施例三
图4为本公开实施例三提供的一种电子设备的音箱控制装置的结构示意图,该电子设备的音箱控制装置40包括:
连接方式获取模块410,设置为获取电子设备的主机与音箱的连接方式;
工作方式调整模块420,设置为根据主机与音箱的连接方式确定数据传输方式和/或音箱的供电方式。
其中,无线传输方式包括:蓝牙传输方式、无线局域网络和红外传输方式中的至少一种,相应的,电子设备的主机与音箱配置有相应的无线传输模块用于数据的无线传输。
可选地,电子设备的主机与音箱的连接方式包括有线连接方式或无线连接方式。
可选地,工作方式调整模块420具体设置为:若电子设备的主机与音箱的连接方式为有线连接方式,则根据电子设备的主机与音箱的连接方式确定数据传输方式为有线数据传输,和/或,根据电子设备的主机与音箱的连接方式确定音箱的供电方式为外接电源供电。
可选地,工作方式调整模块420具体设置为:若电子设备的主机与音箱的连接方式为无线连接方式,则根据电子设备的主机与音箱的连接方式确定数据传输方式为无线数据传输,和/或,根据电子设备的主机与音箱的连接方式确定音箱的供电方式为内部电池供电。
可选地,如图4所示,连接方式获取模块410包括:
音频接口检测模块411,设置为通过检测音频接口信号获取电子设备的主机与音箱的连接方式;和/或,
接触传感器模块412,设置为通过接触传感器获取电子设备的主机与音箱的连接方式。
可选地,接触传感器包括:机械式接触传感器、磁感式接触传感器和光感式接触传感器中的至少一种。
可选地,如图4所示,该电子设备的音箱控制装置40还包括:
音箱类型获取模块430,设置为根据接触传感器获取音箱的类型;
音质参数调整模块440,设置为根据音箱的类型调整向音箱输出的音频信号的音质参数。
本实施例的技术方案,通过获取电子设备的主机与音箱的连接方式,相应转换电子设备的主机与音箱的数据传输方式和/或音箱的供电方式,解决音箱拆卸时音箱播放中断,而且需要用户手动转换数据传输方式和/或音箱供电方式的问题,实现音箱拆卸时,根据电子设备的主机和音箱的连接方式自动转换电子设备的主机和音箱的数据传输方式和/或音箱的供电方式,音箱保持播放状态,提升用户体验的效果。
实施例四
图5为本公开实施例四提供的一种电子设备的结构示意图,该电子设备50包括实施例三中的音箱控制装置510、输出设备520、和音箱530。其中音箱550为可拆卸音箱,输出设备520包括音频接口和无线数据传输接口,电子设备50具备执行上述实施例中的方法相应的功能模块和有益效果。
实施例五
图6为本公开实施例五提供的一种音箱的结构示意图,该音箱60包括实施例三中的音箱控制装置610(但音箱60中的音箱控制装置610不包括上述实施例中的音箱类型获取模块和音质参数调整模块)、至少一个扬声器620和输入设备630,其中音箱60是为电子设备配备的可拆卸音箱,输入设备630为音频接头和无线数据传输接口。
上述产品可执行本公开任意实施例所提供的方法,具备执行方法相应的功能模块和有益效果。
本领域技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干 指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
图7为本申请实施例提供的一种电子装置的硬件结构示意图,如图7所示,该电子装置包括:
一个或多个处理器701以及存储器702,图7中以一个处理器701为例。
该电子装置还可以包括:输入装置703和输出装置704。
电子装置中的处理器701、存储器702、输入装置703和输出装置704可以通过总线或者其他方式连接,图7中以通过总线连接为例。
存储器702作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的音箱控制方法对应的程序指令/模块(例如,附图4所示的音箱类型获取模块430,音质参数调整模块440等)。处理器701通过运行存储在存储器702中的非易失性软件程序、指令以及模块,实现音箱控制的方法。
存储器702可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据音箱控制方法使用所创建的数据等。此外,存储器702可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器702可选包括相对于处理器701远程设置的存储器。
输入装置703可用于接收输入的数字或字符信息,以及用户设置以及功能控制有关的键信号输入。输出装置704可包括显示屏等显示设备。
所述一个或者多个模块存储在所述存储器702中,当被所述一个或者多个处理器701执行时,执行上述任意方法实施例中的音箱控制的方法。
本公开实施例还提供了一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被电子设备执行时,使得所述电子设备执行上述实施例的电子设备的音箱控制方法。
需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序 可存储于一计算机可读存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。
注意,上述仅为本公开的较佳实施例及所运用技术原理。本领域技术人员会理解,本公开不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本公开的保护范围。因此,虽然通过以上实施例对本公开进行了较为详细的说明,但是本公开不仅仅限于以上实施例,在不脱离本公开构思的情况下,还可以包括更多其他等效实施例,而本公开的范围由所附的权利要求范围决定。
工业实用性
本公开通过获取电子设备的主机与音箱的连接方式,相应转换电子设备的主机与音箱的数据传输方式和/或音箱的供电方式,解决音箱拆卸时音箱播放中断,而且需要用户手动转换数据传输方式和/或音箱供电方式的问题,实现音箱拆卸时,根据电子设备的主机和音箱的连接方式自动转换电子设备的主机和音箱的数据传输方式和/或音箱的供电方式,音箱保持播放状态,提升用户体验的效果。

Claims (19)

  1. 一种电子设备的音箱控制方法,包括:
    获取所述电子设备的主机与音箱的连接方式;
    根据所述电子设备的所述主机与音箱的连接方式确定数据传输方式和/或音箱的供电方式。
  2. 根据权利要求1所述的方法,其中,所述电子设备的主机与音箱的连接方式包括有线连接方式或无线连接方式。
  3. 根据权利要求2所述的方法,其中,若所述电子设备的主机与音箱的连接方式为有线连接方式,则根据所述电子设备的主机与音箱的连接方式确定数据传输方式为有线数据传输,和/或,根据所述电子设备的主机与音箱的连接方式确定音箱的供电方式为外接电源供电。
  4. 根据权利要求2所述的方法,其中,若所述电子设备的主机与音箱的连接方式为无线连接方式,则根据所述电子设备的主机与音箱的连接方式确定数据传输方式为无线数据传输,和/或,根据所述电子设备的主机与音箱的连接方式确定音箱的供电方式为内部电池供电。
  5. 根据权利要求1-4任一所述的方法,其中,获取所述电子设备的主机与音箱的连接方式包括:
    通过检测音频接口信号获取所述电子设备的主机与音箱的连接方式;和/或,
    通过接触传感器获取所述电子设备的主机与音箱的连接方式。
  6. 根据权利要求5所述的方法,其中:
    所述接触传感器包括:机械式接触传感器、磁感式接触传感器和光感式接触传感器中的至少一种。
  7. 根据权利要求6所述的方法,其中,还包括:
    根据所述接触传感器获取所述音箱的类型;
    根据所述音箱的类型调整向所述音箱输出的音频信号的音质参数。
  8. 一种电子设备的音箱控制装置,包括:
    连接方式获取模块,设置为获取电子设备的主机与音箱的连接方式;
    工作方式调整模块,设置为根据所述主机与音箱的连接方式确定数据传输方式和/或音箱的供电方式。
  9. 根据权利要求8所述的装置,其中,所述电子设备的主机与音箱的连接方式包括有线连接方式或无线连接方式。
  10. 根据权利要求9所述的装置,其中,所述工作方式调整模块具体设置为:若所述电子设备的主机与音箱的连接方式为有线连接方式,则根据所述电子设备的主机与音箱的连接方式确定数据传输方式为有线数据传输,和/或,根据所述电子设备的主机与音箱的连接方式确定音箱的供电方式为外接电源供电。
  11. 根据权利要求9所述的装置,其中,所述工作方式调整模块具体设置为:若所述电子设备的主机与音箱的连接方式为无线连接方式,则根据所述电子设备的主机与音箱的连接方式确定数据传输方式为无线数据传输,和/或,根据所述电子设备的主机与音箱的连接方式确定音箱的供电方式为内部电池供电。
  12. 根据权利要求8-11任一所述的装置,其中,所述连接方式获取模块包括:
    音频接口检测模块,设置为通过检测音频接口信号获取所述电子设备的主机与音箱的连接方式;和/或,
    接触传感器模块,设置为通过接触传感器获取所述电子设备的主机与音箱的连接方式。
  13. 根据权利要求12所述的装置,其中:
    所述接触传感器包括:机械式接触传感器、磁感式接触传感器和光感式接触传感器中的至少一种。
  14. 根据权利要求13所述的装置,其中,还包括:
    音箱类型获取模块,设置为根据所述接触传感器获取所述音箱的类型;
    音质参数调整模块,设置为根据所述音箱的类型调整向所述音箱输出的音频信号的音质参数。
  15. 一种电子设备,包括权利要求8-14任一所述的音箱控制装置。
  16. 一种音箱,包括权利要求8-13任一所述的音箱控制装置。
  17. 一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被电子设备执行时,使得所述电子设备执行权利要求1-7任一项所述的方法。
  18. 一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-7任一项所述的方法。
  19. 一种电子装置,包括至少一个处理器和与所述至少一个处理器通信连接的存储器,所述存储器用于存储可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行时,使所述至少一个处理器执行以下操作:
    获取所述电子设备的主机与音箱的连接方式;
    根据所述电子设备的所述主机与音箱的连接方式确定数据传输方式和/或音箱的供电方式。
PCT/CN2016/097307 2016-03-30 2016-08-30 电子设备的音箱控制方法及装置 Ceased WO2017166684A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610191052.0 2016-03-30
CN201610191052.0A CN105843582A (zh) 2016-03-30 2016-03-30 一种电子设备的音箱控制方法及装置

Publications (1)

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

Family

ID=56584338

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097307 Ceased WO2017166684A1 (zh) 2016-03-30 2016-08-30 电子设备的音箱控制方法及装置

Country Status (2)

Country Link
CN (1) CN105843582A (zh)
WO (1) WO2017166684A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113806264A (zh) * 2021-09-06 2021-12-17 联想(北京)有限公司 处理方法及电子设备

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843582A (zh) * 2016-03-30 2016-08-10 乐视控股(北京)有限公司 一种电子设备的音箱控制方法及装置
CN108664085A (zh) * 2018-05-09 2018-10-16 联想(北京)有限公司 一种电子设备
CN112489325B (zh) * 2018-07-03 2023-05-12 创新先进技术有限公司 一种显码播报设备、账号绑定与支付业务处理方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104102359A (zh) * 2013-04-03 2014-10-15 宝德科技股份有限公司 具有切换有线及无线功能的电子装置
CN204859502U (zh) * 2015-07-30 2015-12-09 深圳市兴戈科技有限公司 一种支持有线和无线传输方式的有线耳机及其充电装置
CN105392087A (zh) * 2015-11-04 2016-03-09 广东欧珀移动通信有限公司 一种音箱管理方法及用户终端
CN105843582A (zh) * 2016-03-30 2016-08-10 乐视控股(北京)有限公司 一种电子设备的音箱控制方法及装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3301900B2 (ja) * 1995-10-19 2002-07-15 株式会社エヌ・ティ・ティ・データ 電源制御機能を備えるデータ処理システム及び電源制御方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104102359A (zh) * 2013-04-03 2014-10-15 宝德科技股份有限公司 具有切换有线及无线功能的电子装置
CN204859502U (zh) * 2015-07-30 2015-12-09 深圳市兴戈科技有限公司 一种支持有线和无线传输方式的有线耳机及其充电装置
CN105392087A (zh) * 2015-11-04 2016-03-09 广东欧珀移动通信有限公司 一种音箱管理方法及用户终端
CN105843582A (zh) * 2016-03-30 2016-08-10 乐视控股(北京)有限公司 一种电子设备的音箱控制方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113806264A (zh) * 2021-09-06 2021-12-17 联想(北京)有限公司 处理方法及电子设备
CN113806264B (zh) * 2021-09-06 2025-04-22 联想(北京)有限公司 处理方法及电子设备

Also Published As

Publication number Publication date
CN105843582A (zh) 2016-08-10

Similar Documents

Publication Publication Date Title
US10869079B2 (en) Apparatus and control method for displaying content of peripheral device
TWI619387B (zh) 符合hdmi-cec規格的遙控方法與系統
US20140342660A1 (en) Media devices for audio and video projection of media presentations
US20140347565A1 (en) Media devices configured to interface with information appliances
US20150189461A1 (en) Methods, systems and apparatus to affect rf transmission from a non-linked wireless client
WO2016011720A1 (zh) 一种显示系统、显示系统的蓝牙音频播放方法及装置
KR102148001B1 (ko) 디스플레이 장치 및 디스플레이 장치의 제어 방법
TWI654878B (zh) Method and device for video control
WO2017166684A1 (zh) 电子设备的音箱控制方法及装置
CN104866083A (zh) 手势识别方法、装置和系统
KR20210092079A (ko) 전자 장치 및 그 동작방법
US11367258B2 (en) Display device, user terminal device, display system including the same and control method thereof
US9188965B2 (en) Control device including a protocol translator
KR20200043128A (ko) 전자장치 및 그 제어방법
WO2014166365A1 (zh) 对外接电脑进行遥控的电视电脑一体机和方法、计算机存储介质
KR20150051776A (ko) 디스플레이 장치 및 디스플레이 장치의 제어 방법
WO2016150190A1 (zh) 音频播放控制方法、装置及音箱
KR20210025812A (ko) 전자장치, 디스플레이장치 및 그 제어방법
KR102516728B1 (ko) 전자 장치 및 그의 제어 방법
CN107615344A (zh) 显示设备以及集成遥控器设置方法及其系统
US20160119573A1 (en) User terminal apparatus and control method thereof
CN104038797B (zh) 带有扬声器和视频分线器功能的网络机顶盒
WO2012151917A1 (zh) 一种网络多媒体业务遥控方法、装置和系统
CN204929128U (zh) 移动视频设备,音视频播放设备及多媒体系统
TWI675574B (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: 16896454

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16896454

Country of ref document: EP

Kind code of ref document: A1