Information source switching detection method, device and system, electronic equipment and program product
By leveraging the characteristic audio interaction between the smart speaker and the TV and set-top box, combined with sound analysis, the problem of the smart speaker being unable to determine the TV's signal source switching was solved, thus achieving reliable signal source switching detection.
Patent Information
- Application Number
- CN202511886325.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-15
- Publication Date
- 2026-03-03
AI Technical Summary
In existing technologies, smart speakers cannot determine whether the TV has executed the signal source switching command, resulting in blind control issues, poor hardware protocol compatibility, and inability to identify link faults, leading to unreliable signal source switching control.
The smart speaker sends a source switching command to the TV, and at the same time controls the set-top box to send a characteristic audio containing a verification code to the TV. The TV switches the source and plays the characteristic audio. The smart speaker continuously collects ambient sound to analyze the verification code and determines whether the source switching was successful.
It achieves reliable detection of TV signal source switching, improves control reliability, avoids misjudgment, and has low cost and high anti-interference capability.
Smart Images

Figure CN121603620A_ABST
Abstract
Description
Technical Field
[0001] This disclosure generally relates to the field of signal source switching, and in particular to a method, apparatus, system, electronic device and program product for detecting signal source switching. Background Technology
[0002] Currently, with the popularization of smart home technology, users are increasingly inclined to use smart speakers or home control screens to control home entertainment devices via voice commands. Common scenarios include users using voice commands to ask a smart speaker to turn on the TV and switch to an internet set-top box to watch online videos. This control usually involves the interaction between multiple devices, namely, communication between the control end (such as the smart speaker), the signal source end (such as the set-top box), and the display end (such as the TV). In related technologies, controlling the signal source switching of the display end through the control end makes it impossible for the user to determine whether the display end has executed the control command issued by the control end; that is, it is uncertain whether the display end has switched the signal source. Summary of the Invention
[0003] To overcome the problems existing in related technologies, this disclosure provides a source switching detection method, apparatus, system, electronic device, and program product.
[0004] According to some embodiments of this disclosure, a source switching detection method is provided, comprising: in response to receiving a source switching command issued by a user, a smart speaker sends the source switching command to a television, and simultaneously the smart speaker controls a set-top box to send a feature audio containing a verification code to the television, wherein the feature audio is an audio signal preset in the set-top box; in response to receiving the source switching command sent by the smart speaker and receiving the feature audio sent by the set-top box, the television performs source switching, and determines whether the television plays the feature audio based on the source switching result; and the smart speaker cyclically collects and detects ambient sound within a preset time window, and determines whether the television has successfully switched the source by parsing whether the ambient sound contains the verification code.
[0005] In some embodiments, the smart speaker controls the set-top box to send a characteristic audio containing a verification code to the television, including: based on timing control logic, the smart speaker sends a command to the set-top box to play the characteristic audio while sending the source switching command to the television; and in response to receiving the command to play the characteristic audio, the set-top box plays the characteristic audio and mixes the characteristic audio into the HDMI audio stream of the set-top box and then sends it to the television.
[0006] In some embodiments, the method further includes: in response to the fact that the verification code is not parsed from the collected current ambient sound, determining that the TV has not successfully switched the signal source, triggering the smart speaker to send a volume increase command to the TV, and determining again in the preset time window whether the ambient sound contains the verification code.
[0007] In some embodiments, the method further includes: in response to the failure to parse the verification code from the ambient sound at the end of the preset time window, triggering the smart speaker to resend the source switching instruction to the television, and simultaneously triggering the smart speaker to resend the instruction to play the characteristic audio from the set-top box, and then executing the source switching detection method again; in response to the failure to parse the verification code from the ambient sound within a preset number of times, determining that the television has failed to switch the source.
[0008] In some embodiments, the smart speaker sends the source switching command to the television by transmitting an infrared remote control code through a built-in infrared transmitter; the smart speaker sends a command to the set-top box to play the characteristic audio via a local area network.
[0009] In some embodiments, determining whether the television plays the characteristic audio based on the source switching result includes: in response to the television successfully switching the source, the television plays the characteristic audio; in response to the television failing to successfully switch the source or the television not executing the source switching instruction, the television does not play the characteristic audio.
[0010] According to some embodiments of this disclosure, a source switching detection device is provided, comprising: an instruction sending unit, configured to, in response to receiving a source switching instruction issued by a user, cause a smart speaker to send the source switching instruction to a television, and simultaneously cause the smart speaker to control a set-top box to send a characteristic audio containing a verification code to the television, wherein the characteristic audio is an audio signal preset in the set-top box; an instruction execution unit, configured to, in response to receiving the source switching instruction sent by the smart speaker and receiving the characteristic audio sent by the set-top box, cause the television to perform source switching, and determine whether the television plays the characteristic audio based on the source switching result; and an audio parsing unit, configured to, cause the smart speaker to cyclically collect and detect ambient sound within a preset time window, and determine whether the television has successfully switched the source by parsing whether the ambient sound contains the verification code.
[0011] According to some embodiments of this disclosure, a source switching detection system is provided, including: a smart speaker, a set-top box, and a television; wherein: the smart speaker is used to receive a source switching command issued by a user and send the source switching command to the television; simultaneously, the smart speaker is used to control the set-top box to send a characteristic audio containing a verification code to the television, wherein the characteristic audio is an audio signal preset in the set-top box; the set-top box and the television are physically connected via an HDMI interface, and the set-top box is used to send the characteristic audio to the television; the television is used to receive the source switching command sent by the smart speaker and the characteristic audio sent by the set-top box, and perform source switching; the television determines whether to play the characteristic audio based on the source switching result.
[0012] The smart speaker is also used to collect and detect ambient sounds in a loop within a preset time window, and to determine whether the TV has successfully switched the signal source by analyzing whether the ambient sound contains the verification code.
[0013] According to some embodiments of this disclosure, an electronic device is provided, including: a processor; and a memory for storing computer programs or instructions executable by the processor; wherein the processor is configured to execute the computer programs or instructions to implement the source switching detection method in any of the above embodiments.
[0014] According to some embodiments of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the source switching detection method in any of the above embodiments.
[0015] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: This disclosure, through a feature audio detection method based on sound feedback loop, can detect whether the ambient sound contains feature audio, and thus detect whether the television has successfully switched the signal source. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of this disclosure, the embodiments of this disclosure will be further explained and described with reference to the following drawings. These drawings are only used to more conveniently and specifically describe the embodiments of this disclosure and are not intended to limit this disclosure.
[0017] Figure 1 This is a schematic diagram of the architecture of a source switching detection system according to some embodiments of the present disclosure;
[0018] Figure 2 This is a flowchart illustrating a source switching detection method according to some embodiments of the present disclosure;
[0019] Figure 3This is a schematic diagram illustrating the execution process of a source switching detection method according to some embodiments of this disclosure;
[0020] Figure 4 This is a block diagram of a source switching detection device according to some embodiments of the present disclosure;
[0021] Figure 5 This is a block diagram illustrating an apparatus for source handover detection according to some embodiments of the present disclosure; and
[0022] Figure 6 This is another block diagram illustrating an apparatus for source switching detection according to some embodiments of the present disclosure. Detailed Implementation
[0023] Some embodiments of this disclosure will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. Various changes, modifications, and equivalents of the methods, apparatus, and / or systems described herein will become readily apparent upon understanding this disclosure. For example, the order of operations described herein is merely illustrative and is not limited to those orders set forth herein, but can be changed as will become readily apparent upon understanding this disclosure, except for operations that must be performed in a particular order. Furthermore, for clarity and brevity, descriptions of features known in the art may be omitted.
[0024] The embodiments described in the following examples of this disclosure are not representative of all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0025] This disclosure provides a signal source switching detection method in some embodiments, which is used to detect signal source switching in display devices, such as televisions, and to determine whether the television has successfully switched signal sources by detecting audio feedback signals.
[0026] In related technologies, the common approach to controlling the signal source of a television is for the smart speaker to transmit an infrared remote control code via a built-in infrared transmitter, or to send a command to the television via the HDMI-CEC protocol, instructing the television to switch the signal source, for example, from HDMI 1 to HDMI 2.
[0027] The shortcomings of the related technologies are: (1) lack of closed-loop feedback, that is, the problem of "blind control". Infrared control is usually one-way. After the smart speaker sends out infrared commands, it cannot know whether the TV has received the command signal, nor can it confirm whether the TV has actually performed the source switching action. (2) poor hardware protocol compatibility. Although HDMI-CEC supports bidirectional communication, different brands of TVs support different CEC protocol standards. Often, there are situations where the TV cannot be woken up or cannot return the status, resulting in unreliable source switching control. (3) inability to detect link failures. The related technologies cannot identify whether the black screen is caused by "the TV is not turned on" or "the cable is not plugged in properly". The system cannot perform automatic error correction.
[0028] In view of this, some embodiments of this disclosure provide a source switching detection method, which determines whether the television has switched sources by audio detection based on sound feedback loop, so that users can accurately know the operating status of the television.
[0029] Figure 1 This is a schematic diagram illustrating the architecture of a source handover detection system 100 according to some embodiments of this disclosure, such as... Figure 1 As shown, the system 100 includes a smart speaker 110, a set-top box 120, and a television 130.
[0030] The smart speaker 110 receives source switching commands from the user and sends these commands to the television 130. Simultaneously, the smart speaker 110 controls the set-top box 120 to send a characteristic audio signal containing a verification code to the television 130. This characteristic audio signal is a preset audio signal stored in the set-top box 120. As the system's control center, the smart speaker 110 is equipped with a microphone array and can receive voice commands from the user. When the user issues a source switching command, the smart speaker 110 first receives and parses the command, then sends it to the television 130. At the same time, the smart speaker also sends a control command to the set-top box 120, requesting it to send a characteristic audio signal containing a verification code to the television 130. This characteristic audio signal has specific frequency characteristics and an encoding method, facilitating subsequent identification.
[0031] In this embodiment, the set-top box 120 sends a characteristic audio signal to the television 130. The link connection 102 between the set-top box 120 and the television 130 can be a physical connection via an HDMI interface. This connection method can transmit high-definition video and audio signals simultaneously. The set-top box 120 pre-stores a characteristic audio file. Upon receiving a control command from the smart speaker 110, the set-top box 120 immediately plays this characteristic audio signal and mixes it into the currently playing HDMI audio stream before outputting it to the television 130. The characteristic audio signal contains a unique verification code, which can be a specific numerical sequence or frequency combination, used to subsequently verify whether the television 130 has successfully switched to the signal source corresponding to the set-top box 120.
[0032] The television 130 receives a source switching command from the smart speaker 110 and a characteristic audio signal from the set-top box 120, and performs source switching. Based on the source switching result, the television 130 determines whether to play the characteristic audio signal. As a display terminal, the television 130 has an HDMI input interface, allowing connection to source devices. After receiving the source switching command from the smart speaker 110, the television 130 performs a source switching operation, attempting to switch to the HDMI interface connected to the set-top box 120. If the switch is successful, the television 130 plays the audio and video content received from the set-top box 120, including the characteristic audio signal containing the verification code, through its built-in speakers. If the switch fails, the characteristic audio signal will not be played.
[0033] The smart speaker 110 also continuously collects and detects ambient sounds within a preset time window. By analyzing whether the ambient sounds contain a verification code, it determines whether the TV 130 has successfully switched the signal source. When the smart speaker 110 sends a signal source switching command to the TV 130, it immediately activates its microphone array and begins collecting ambient sounds within the preset time window. The collected ambient sounds undergo digital signal processing, including noise filtering and spectrum analysis. The smart speaker 110's built-in sound recognition algorithm searches for audio segments with specific frequency characteristics in the collected sounds and attempts to extract the verification code contained within them. If the smart speaker 110 successfully detects and extracts the verification code from the ambient sounds, and the verification code matches the expected one, it indicates that the TV 130 has successfully switched to the signal source corresponding to the set-top box 120, and the entire signal source switching process is complete. At this point, the smart speaker can either play a voice prompt indicating successful switching to the user or remain silent after confirmation. If the smart speaker 110 fails to detect characteristic audio from the ambient sound or parse the correct verification code within the preset time window, the TV 130 is deemed to have failed to switch the signal source.
[0034] The source switching detection system disclosed herein does not require any additional hardware sensors. It only reuses the existing microphone of the smart speaker and the existing speaker of the TV to build a physical closed-loop path, enabling the system to know for sure whether the source switching is successful, which greatly improves the reliability of control.
[0035] Figure 2 This is a flowchart illustrating a source handover detection method 200 according to some embodiments of the present disclosure, such as... Figure 2 As shown, the method 200 includes S202, S204 and S206.
[0036] In S202, in response to receiving a source switching command issued by the user, the smart speaker sends a source switching command to the TV. At the same time, the smart speaker controls the set-top box to send a feature audio containing a verification code to the TV. The feature audio is an audio signal preset in the set-top box.
[0037] In this embodiment, when a user issues a source switching command via voice, the smart speaker 110 receives and parses the voice command through its microphone array, and then immediately sends the parsed source switching command to the television 130. Simultaneously, the smart speaker 110 also sends a control command to the set-top box 120, requesting the set-top box 120 to send a characteristic audio message containing a verification code to the television 130. In this embodiment, the characteristic audio message can be generated using audio watermarking technology. The verification code can be a string of numbers, such as "10110010," with each digit assigned a fixed playback duration (e.g., each digit lasting 0.1 seconds). Frequency bands higher than a certain frequency are treated as 1, and frequency bands lower than a certain frequency are treated as 0. Therefore, a special audio signal with a total duration of 0.8 seconds and a frequency that jumps within a certain frequency range can be obtained; this audio signal is the characteristic audio signal carrying digital information.
[0038] In S204, in response to receiving a source switching command sent by the smart speaker and receiving a characteristic audio sent by the set-top box, the TV switches the source and determines whether to play the characteristic audio based on the source switching result.
[0039] Figure 3 This is a schematic diagram of the execution process 300 of the source switching detection method according to some embodiments of this disclosure, combined with... Figure 3As shown in this embodiment, after receiving the source switching command sent by the smart speaker 110, the television 130 will perform a source switching operation, attempting to switch to the HDMI interface connected to the set-top box 120. If the source switching is successful, the television 130 will play the characteristic audio received from the set-top box 120 through its built-in speaker, including the characteristic audio containing the verification code. If the source switching fails or the television 130 does not execute the source switching command, i.e., the source does not change, the characteristic audio will not be played.
[0040] In S206, the smart speaker continuously collects and detects ambient sounds within a preset time window. By analyzing whether the ambient sounds contain a verification code, it determines whether the TV has successfully switched the signal source.
[0041] In this embodiment, after the smart speaker 110 sends a source switching command to the television 130, it immediately begins to cyclically collect and detect ambient sounds within a preset time window, such as 1.5 seconds. The smart speaker 110 analyzes the collected ambient sounds, searching for characteristic audio segments of specific frequencies and attempting to extract the verification code contained therein. If the verification code is successfully detected and extracted from the ambient sounds, and the verification code matches the expected one, such as the verification code "10110010", the detection is successful, indicating that the television 130 has successfully switched to the source corresponding to the set-top box 120. At this time, the smart speaker 110 can announce the successful switch to the user, or, if successful, remain undisturbed. If the smart speaker 110 fails to detect the expected verification code from the ambient sounds within the preset time window, the detection fails, and the source switching of the television 130 is determined to have failed. Similarly, the user is prompted that the source switching failed or is advised to check the device. In this embodiment, the detection and analysis of ambient sound employs Fast Fourier Transform (FFT), an algorithm that converts time-domain sound signals into frequency-domain signals. Through FFT, it is easy to observe whether a prominent energy peak exists at a specific frequency (e.g., 50Hz) within complex ambient noise, thereby determining whether the ambient sound contains characteristic audio.
[0042] Through the above method, this disclosure achieves low-cost "physical closed-loop" detection, solving the blind control problem of traditional infrared remote control. This method requires no additional hardware sensors; it only reuses the existing microphone of the smart speaker and the existing speaker of the television to construct a physical closed-loop path. This allows the user to know for certain whether the signal source switching was successful, greatly improving the reliability of control.
[0043] In this embodiment of the disclosure, based on timing-based control logic, while sending a source switching command to the television 130, the smart speaker 110 simultaneously sends a command to the set-top box 120 to play characteristic audio. Combined with... Figure 3 As shown, user 140 sends a voice source switching command to smart speaker 110. At the same time, smart speaker 110 sends the source switching command to TV 130 and also sends a command to set-top box 120 to play characteristic audio.
[0044] When the set-top box 120 receives the instruction from the smart speaker 110 to play the characteristic audio, the set-top box 120 can play the characteristic audio for a certain period of time, such as for 1 second. Simultaneously, the set-top box 120 mixes the characteristic audio into its normally playing HDMI audio stream and sends it to the television 130. In this embodiment, a low-frequency signal is used as the characteristic audio because low-frequency signals have strong penetrating power and are located in areas where human hearing is insensitive. This also avoids interfering with the normal HDMI audio stream output by the set-top box, thus preventing interference with the user's viewing experience.
[0045] In this embodiment of the disclosure, because the television may be on but simultaneously muted or nearly muted, even if the television's signal source switch is successful, the characteristic audio being played may be silent or extremely low, making it impossible for the smart speaker to detect the characteristic audio in the ambient sound, leading to a misjudgment of the signal source switch. Combined with... Figure 3 As shown, when the smart speaker 110 fails to detect the verification code (i.e., no verification code is found in the collected ambient sound), it is assumed that the TV 130 has failed to switch the signal source. At this point, the smart speaker 110 sends a volume increase command to the TV 130, causing the TV 130 to increase its playback volume. The smart speaker 110 then detects the ambient sound again and analyzes whether it contains the verification code. This process repeats until the verification code is detected in the ambient sound within a preset time window, indicating that the TV 130 has successfully switched the signal source. Conversely, if the verification code is not detected within the preset time window, it indicates that the TV 130 has failed to switch the signal source.
[0046] In this embodiment, due to a system hardware issue, the television may fail to execute the source switching command sent by the smart speaker in a timely manner. Therefore, if the verification code for the characteristic audio is not parsed from the ambient sound by the end of the preset time window, or even if the television's playback volume has been increased within the preset time window but the verification code for the characteristic audio is still not parsed from the ambient sound, the smart speaker can be triggered to resend the source switching command to the television and simultaneously resend the command to play the characteristic audio to the set-top box, thus repeating the above process. If the above execution process reaches a preset number of times, such as 3 times, and the smart speaker still fails to parsed the verification code for the characteristic audio from the ambient sound, it is determined that the television has failed to switch the source, and the user is notified.
[0047] The embodiments disclosed herein employ an automated error correction mechanism to prevent misjudgment of source switching status during environmental sound detection, thereby further improving the accuracy of source switching identification and the reliability of the system.
[0048] Combined Figure 1 As shown in this embodiment, the link connection 104 between the smart speaker 110 and the television 130 can be an infrared connection, meaning the smart speaker 110 sends command signals to the television 130 by transmitting infrared remote control codes through its built-in infrared transmitter. The link connection 106 between the smart speaker 110 and the set-top box 120 can be a local area network connection, such as via WiFi, where the smart speaker 110 sends command signals to the set-top box 120.
[0049] The source switching detection mechanism disclosed herein is a low-cost, non-dependent, highly compatible, and closed-loop detection mechanism. Furthermore, since this solution utilizes the most basic function of HDMI transmission (audio and video transmission), it can be used as long as the television can produce sound and has an HDMI interface, exhibiting strong versatility. In addition, the acoustic feature verification method offers high anti-interference capability and accuracy; the system can accurately identify signals at preset specific frequencies, effectively filtering out background noise interference such as human voices and fan noise.
[0050] Based on the same concept, this disclosure also provides a source switching detection device 400. It is understood that the source switching detection device 400 provided in this disclosure includes hardware structures and / or software modules corresponding to each function in order to achieve the above-mentioned functions. Combining the units and algorithm steps of the various examples disclosed in this disclosure, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the technical solutions of this disclosure.
[0051] Figure 4 This is a block diagram illustrating a source switching detection device 400 according to some embodiments of the present disclosure. (Refer to...) Figure 4 The device 400 includes an instruction sending unit 402, an instruction execution unit 404, and an audio parsing unit 406.
[0052] The instruction sending unit 402 is configured to, in response to receiving a source switching instruction from a user, cause the smart speaker to send a source switching instruction to the television, and simultaneously cause the smart speaker to control the set-top box to send a characteristic audio signal containing a verification code to the television, wherein the characteristic audio signal is a preset audio signal in the set-top box; the instruction execution unit 404 is configured to, in response to receiving the source switching instruction sent by the smart speaker and receiving the characteristic audio signal sent by the set-top box, cause the television to perform a source switching, and determine whether the television should play the characteristic audio signal based on the source switching result. The audio parsing unit 406 is configured to cause the smart speaker to cyclically collect and detect ambient sound within a preset time window, and determine whether the television has successfully switched the source by parsing whether the ambient sound contains a verification code.
[0053] Regarding the apparatus in the above embodiments, the specific manner in which each unit performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0054] Figure 5 This is a block diagram illustrating an apparatus 500 for source handover detection according to some embodiments of the present disclosure. The apparatus 500 can be provided as a terminal. For example, the apparatus 500 can be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0055] Reference Figure 5The device 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input / output (I / O) interface 512, sensor component 514, and communication component 516.
[0056] Processing component 502 typically controls the overall operation of device 500, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 502 may include one or more modules to facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
[0057] Memory 504 is configured to store various types of data to support the operation of device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, etc. Memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0058] The power supply component 506 provides power to the various components of the device 500. The power supply component 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 500.
[0059] Multimedia component 508 includes a screen that provides an output interface between device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 508 includes a front-facing camera and / or a rear-facing camera. When device 500 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0060] Audio component 510 is configured to output and / or input audio signals. For example, audio component 510 includes a microphone (MIC) configured to receive external audio signals when device 500 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 504 or transmitted via communication component 516. In some embodiments, audio component 510 also includes a speaker for outputting audio signals.
[0061] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0062] Sensor assembly 514 includes one or more sensors for providing status assessments of various aspects of device 500. For example, sensor assembly 514 may detect the on / off state of device 500, the relative positioning of components such as the display and keypad of device 500, changes in the position of device 500 or a component of device 500, the presence or absence of user contact with device 500, the orientation or acceleration / deceleration of device 500, and temperature changes of device 500. Sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 514 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0063] Communication component 516 is configured to facilitate wired or wireless communication between device 500 and other devices. Device 500 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 516 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0064] In an exemplary embodiment, the apparatus 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0065] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, which can be executed by a processor 520 of the device 500 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0066] Figure 6 This is another block diagram illustrating an apparatus 600 for source handover detection according to some embodiments of the present disclosure. For example, apparatus 600 may be provided as a server. See also... Figure 6 The device 600 includes a processing component 622, which further includes one or more processors, and memory resources represented by memory 632 for storing instructions, such as application programs, that can be executed by the processing component 622. The application programs stored in memory 632 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 622 is configured to execute instructions to perform the aforementioned antenna tuning method.
[0067] Device 600 may also include a power supply component 626 configured to perform power management of device 600, a wired or wireless network interface 650 configured to connect device 600 to a network, and an input / output (I / O) interface 658. Device 600 may operate on an operating system stored in memory 632, such as Windows Server™, MacOSX™, Unix™, Linux™, FreeBSD™, or similar.
[0068] In some embodiments of this disclosure, a storage medium is provided, which may be a non-transitory computer-readable storage medium.
[0069] In some embodiments of this disclosure, when instructions in the storage medium are executed by the processor of an electronic device, the electronic device is able to perform the source switching detection method described above.
[0070] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the source switching detection method involved in any of the above embodiments.
[0071] In this description, "multiple" means at least two, referring to two or more, such as two, three, etc., unless otherwise explicitly specified. Other quantifiers are similar. The singular forms "a," "the," and "the" are also intended to include the plural forms unless the context clearly indicates otherwise. Furthermore, unless otherwise specified or clearly indicated from the context, the articles "a" and "an" as used in this disclosure and the appended claims are generally understood to mean "one or more."
[0072] It should be understood that, unless otherwise specifically indicated, features of various embodiments of this disclosure described herein can be combined with each other. As used herein, the term "and / or" includes any one of the related listed items and any combination of two or more; "and / or" describes the association relationship between related objects, indicating that three relationships may exist, for example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. Similarly, "at least one of..." includes any one of the related listed items and any combination of two or more.
[0073] It is further understood that the terms "first," "second," etc., are used to describe various types of information, but this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another, and do not indicate a specific order or degree of importance. In fact, the expressions "first," "second," etc., are completely interchangeable. For example, without departing from the scope of this disclosure, first information can also be referred to as second information, and similarly, second information can also be referred to as first information.
[0074] Furthermore, the term "exemplary" is used herein to indicate that it serves as an example, instance, or illustration. Any aspect or design described herein as "exemplary" is not necessarily to be construed as advantageous compared to other aspects or designs. Rather, the use of the term "exemplary" is intended to present concepts in a concrete manner. As used herein, the term "or" is intended to indicate an inclusive "or" rather than an exclusive "or." That is, unless otherwise specified or clear from the context, "X applies A or B" is intended to indicate any of the natural inclusive permutations. That is, if X applies A; X applies B; or X applies both A and B, then applying A or B satisfies the condition under any of the foregoing instances.
[0075] Similarly, although this disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art upon reading and understanding the specification and drawings. This disclosure includes all such modifications and variations and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components described above (e.g., elements, resources, etc.), unless otherwise indicated, the terminology used to describe such components is intended to correspond to any component (functionally equivalent) that performs the specific function of the described component, even if structurally not equivalent to the disclosed structure. Furthermore, although specific features of this disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations, as may be desired and advantageous to any given or particular application. Moreover, with regard to the terms “comprising,” “owning,” “having,” “having,” or variations thereof as used in this disclosure, such terms are intended to be inclusive in a manner similar to the term “including.”
[0076] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed in the embodiments of this disclosure.
[0077] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A source switching detection method, characterized in that, include: In response to receiving a source switching command issued by the user, the smart speaker sends the source switching command to the TV, and at the same time, the smart speaker controls the set-top box to send a feature audio containing a verification code to the TV, wherein the feature audio is an audio signal preset in the set-top box; In response to receiving the source switching command sent by the smart speaker and receiving the characteristic audio sent by the set-top box, the television switches the source and determines whether to play the characteristic audio based on the source switching result. as well as The smart speaker collects and detects ambient sounds in a loop within a preset time window, and determines whether the TV has successfully switched the signal source by analyzing whether the ambient sounds contain the verification code.
2. The method according to claim 1, characterized in that, The smart speaker controls the set-top box to send a characteristic audio message containing a verification code to the television, including: Based on timing control logic, while sending the source switching command to the television, the smart speaker also sends a command to the set-top box to play the characteristic audio; and In response to receiving an instruction to play the characteristic audio, the set-top box plays the characteristic audio and mixes the characteristic audio into the set-top box's HDMI audio stream before sending it to the television.
3. The method according to claim 1, characterized in that, The method further includes: In response to the failure to parse the verification code from the collected ambient sound, it is determined that the TV has not successfully switched the signal source. The smart speaker is then triggered to send a volume increase command to the TV, and the system checks again within the preset time window whether the ambient sound contains the verification code.
4. The method according to claim 2 or 3, characterized in that, The method further includes: If the verification code is not parsed from the ambient sound by the end of the preset time window, the smart speaker is triggered to resend the source switching command to the TV, and at the same time, the smart speaker is triggered to resend the command to the set-top box to play the characteristic audio, and then the source switching detection method is executed again. If the verification code is not parsed from the ambient sound within a preset number of attempts, it is determined that the television has failed to switch the signal source.
5. The method according to claim 2, characterized in that, The smart speaker sends the signal source switching command to the television by transmitting an infrared remote control code through its built-in infrared transmitter; The smart speaker sends a command to the set-top box to play the characteristic audio via a local area network.
6. The method according to claim 1, characterized in that, The step of determining whether the television set plays the characteristic audio based on the source switching result includes: In response to the television successfully switching the signal source, the television plays the characteristic audio. In response to the television failing to switch the signal source or the television not executing the signal source switching command, the television does not play the characteristic audio.
7. A source switching detection device, characterized in that, include: The instruction sending unit is configured to respond to receiving a source switching instruction issued by a user, causing the smart speaker to send the source switching instruction to the television, and simultaneously causing the smart speaker to control the set-top box to send a feature audio containing a verification code to the television, wherein the feature audio is an audio signal preset in the set-top box; The instruction execution unit is configured to respond to receiving the source switching instruction sent by the smart speaker and receiving the characteristic audio sent by the set-top box, causing the television to switch the source, and determining whether the television should play the characteristic audio based on the source switching result; as well as The audio parsing unit is used to enable the smart speaker to collect and detect ambient sounds in a loop within a preset time window, and to determine whether the TV has successfully switched the signal source by parsing whether the ambient sound contains the verification code.
8. A source switching detection system, characterized in that, include: Smart speakers, set-top boxes, and televisions; among which: The smart speaker is used to receive a source switching command issued by the user and send the source switching command to the TV. At the same time, the smart speaker is used to control the set-top box to send a feature audio containing a verification code to the TV, wherein the feature audio is an audio signal preset in the set-top box. The set-top box is physically connected to the television via an HDMI interface, and the set-top box is used to send the characteristic audio to the television; The television is used to receive the source switching command sent by the smart speaker and the characteristic audio sent by the set-top box, and to perform source switching. The television determines whether to play the characteristic audio based on the source switching result. The smart speaker is also used to collect and detect ambient sounds in a loop within a preset time window, and to determine whether the TV has successfully switched the signal source by analyzing whether the ambient sound contains the verification code.
9. An electronic device, characterized in that, include: processor; Memory for storing computer programs or instructions executable by the processor; The processor is configured to execute the computer program or instructions to implement the source switching detection method according to any one of claims 1-6.
10. A computer program product, characterized in that, It includes a computer program, which, when executed by a processor, implements the source switching detection method according to any one of claims 1-6.