Abstract:
A meme creation method and apparatus are provided, and relate to the terminal field, to enrich forms and content of memes, and improve user experience. The method includes: displaying a first interface, where the first interface includes a speech input button; receiving, in response to an operation of triggering the speech input button by a user, a speech input by the user; recognizing the speech in a preset manner, where recognition in the preset manner includes at least content recognition, and if the speech includes a target keyword, recommending a first image meme set to the user; obtaining, in response to an operation of selecting one image meme from the first image meme set by the user, a target meme based on the image meme selected by the user and the speech or semantics corresponding to the speech; and sending the target meme.
Abstract:
A mode control method includes determining, by a terminal device based on a scene type of an external environment, that a processing mode used by a headset is a target mode. The target mode is one of a plurality of processing modes supported by the headset, where different processing modes correspond to different scene types, and the processing modes supported by the headset include at least two of the following modes: an active noise control (ANC) mode, a hear-through (HT) mode, or an augmented hearing (AH) mode. Processing intensity in the target mode is automatically adjusted based on an event in a current external environment. The terminal device further provides a control interface for the headset to provide selection controls for the user to select a processing mode and processing intensity. The user controls a processing mode and processing intensity of the headset based on a requirement.
Abstract:
A headset has at least two functions of an active noise control (ANC) function, an ambient sound hear through (HT) function, or an augment hearing (AH) function. The headset includes a first microphone and a second microphone. The first microphone is configured to collect a first signal. The first signal indicates a sound in a current external environment. The second microphone is configured to collect a second signal. The second signal indicates an ambient sound in an ear canal of a user wearing the headset. The headset can be a left earphone or a right earphone. Processing modes or processing strengths of the left earphone and the right earphone may be the same or different. The headset obtains a target mode based on a scene type of the current external environment; and obtains a second audio signal based on the target mode, the first signal, and the second signal.
Abstract:
This disclosure discloses an audio encoding/decoding method and apparatus, a storage medium, and a computer program product, and belongs to the audio encoding/decoding field. In this solution, when an audio signal is a dual-channel signal, even if a bitstream includes a left-channel bitstream and a right-channel bitstream, based on a channel decoding mode, the left-channel bitstream is decoded but the right-channel bitstream is not decoded, or the right-channel bitstream is decoded but the left-channel bitstream is not decoded in a decoding process. Therefore, power consumption at a decoder side is reduced when resources at the decoder side are limited. Correspondingly, an encoder side can also sequentially encode left-channel data and right-channel data based on a condition met by the audio signal, rather than necessarily performing encoding in a dual-channel interleaving encoding scheme or a dual-channel deinterleaving encoding scheme.
Abstract:
An audio signal processing method and apparatus, a storage medium, and a computer program product are provided. An optimal sub-band division manner is selected from a plurality of sub-band division manners based on a characteristic of an audio signal. In other words, the sub-band division manner has a signal adaptation characteristic, and can adapt to an encoding bit rate of the audio signal. Specifically, a total scale value corresponding to each sub-band division manner is determined based on spectral values of the audio signal in sub-bands obtained through division, a bandwidth of each sub-band, and the encoding bit rate of the audio signal, and an optimal target sub-band division manner is selected based on the total scale value, to obtain an optimal sub-band set. Subsequently, spectral envelope shaping is performed based on a scale factor of each sub-band in the optimal sub-band set, to improve coding effect and compression efficiency.
Abstract:
The technology of this application relates to a multimedia information processing method and apparatus, and a storage medium. The method includes determining a data transmission delay between a terminal device and a first playing device of at least two playing devices, determining a clock offset between the terminal device and the first playing device based on the data transmission delay between the terminal device and the first playing device, and determining, based on the clock offset between the terminal device and the first playing device, a first start playing time of multimedia information corresponding to the first playing device. The multimedia information processing method and apparatus, and storage medium provided in this application can enable each of the at least two playing devices to synchronously play multimedia information corresponding to the playing device, to improve listening experience of a user.
Abstract:
Various embodiment provide a multi-terminal cooperative working method, a terminal device, and a multi-terminal cooperative system. In those embodiments, a primary device can send networking information to a plurality of secondary devices, and the primary device has a permission to manage the cooperative network. The primary device can receive networking confirmation information sent by the plurality of secondary devices; and send configuration information to the plurality of secondary devices separately. The configuration information can be used to instruct to switch, based on a preset management permission switching mechanism when the primary device becomes abnormal or the primary device exits from the cooperative network, the permission to manage the cooperative network. The primary device can clear the secondary device from the cooperative network the secondary device becomes abnormal. In this way, robustness of the cooperative network can be improved.
Abstract:
The present invention provides a method for fast protection switching in multicast, where the method includes: determining a primary path and a secondary path to a source node, where the secondary path and the primary path have minimum tail coincidence; receiving, by using both the primary path and the secondary path, multicast traffic replicated by an upstream neighboring node, and replicating multicast traffic received by the primary path to a downstream neighboring node; and if the primary path is faulty, replicating multicast traffic received by the secondary path to the downstream neighboring node. In the present invention, primary and secondary paths can have minimum tail coincidence, which overcomes a problem that fault protection switching in a multicast network requires that primary and secondary paths existing from a routing node to a multicast source are completely separate in physical topology.
Abstract:
The present invention provides a method for fast protection switching in multicast, where the method includes: determining a primary path and a secondary path to a source node, where the secondary path and the primary path have minimum tail coincidence; receiving, by using both the primary path and the secondary path, multicast traffic replicated by an upstream neighboring node, and replicating multicast traffic received by the primary path to a downstream neighboring node; and if the primary path is faulty, replicating multicast traffic received by the secondary path to the downstream neighboring node. In the present invention, primary and secondary paths can have minimum tail coincidence, which overcomes a problem that fault protection switching in a multicast network requires that primary and secondary paths existing from a routing node to a multicast source are completely separate in physical topology.