CN111402876A - Data transmission method, device and equipment - Google Patents

Data transmission method, device and equipment Download PDF

Info

Publication number
CN111402876A
CN111402876A CN202010185394.8A CN202010185394A CN111402876A CN 111402876 A CN111402876 A CN 111402876A CN 202010185394 A CN202010185394 A CN 202010185394A CN 111402876 A CN111402876 A CN 111402876A
Authority
CN
China
Prior art keywords
volume
audio data
user
amplitude
instruction
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.)
Pending
Application number
CN202010185394.8A
Other languages
Chinese (zh)
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.)
Apollo Intelligent Connectivity Beijing Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010185394.8A priority Critical patent/CN111402876A/en
Publication of CN111402876A publication Critical patent/CN111402876A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/005Correction of errors induced by the transmission channel, if related to the coding algorithm
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/02Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using spectral analysis, e.g. transform vocoders or subband vocoders
    • G10L19/032Quantisation or dequantisation of spectral components
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H2240/00Data organisation or data communication aspects, specifically adapted for electrophonic musical tools or instruments
    • G10H2240/011Files or data streams containing coded musical information, e.g. for transmission
    • G10H2240/046File format, i.e. specific or non-standard musical file format used in or adapted for electrophonic musical instruments, e.g. in wavetables
    • G10H2240/071Wave, i.e. Waveform Audio File Format, coding, e.g. uncompressed PCM audio according to the RIFF bitstream format method
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Landscapes

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

Abstract

The application discloses a data transmission method, a data transmission device and data transmission equipment, and relates to the technical field of intelligent traffic. The technical scheme disclosed by the application comprises the following steps: the terminal equipment receives a volume adjusting instruction input by a user, processes audio data to be transmitted according to the volume adjusting instruction, and then sends the processed audio data to the car machine, so that the volume of the car machine is controlled. Like this, when the volume button of inconvenient operation car machine of user, can control the car machine volume through terminal equipment, promote user experience.

Description

Data transmission method, device and equipment
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data transmission method, apparatus, and device.
Background
Along with the development of the car machine technology, the car machine can be interconnected with the terminal equipment. The media data in the terminal equipment can be transmitted to the vehicle machine for playing.
In the prior art, in a scene that a terminal device transmits media data to a car machine for playing, when a user wants to adjust the volume of the car machine for playing, the user can only adjust a volume button of the car machine. In some scenes, a user may not conveniently operate a volume button of the car machine, so that the user cannot adjust the volume of the car machine, and the user experience is reduced.
Disclosure of Invention
The embodiment of the application provides a data transmission method, a data transmission device and data transmission equipment, wherein the volume of a vehicle machine is controlled through terminal equipment, and the experience of a user is improved.
In a first aspect, an embodiment of the present application provides a data transmission method, including:
acquiring a volume adjusting instruction;
processing the audio data to be transmitted according to the volume adjusting instruction to obtain processed audio data;
and sending the processed audio data to the car machine.
In a second aspect, an embodiment of the present application provides a data transmission apparatus, including:
the acquisition module is used for acquiring a volume adjustment instruction;
the processing module is used for processing the audio data to be transmitted according to the volume adjusting instruction to obtain processed audio data;
and the sending module is used for sending the processed audio data to the vehicle machine.
In a third aspect, an embodiment of the present application provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the first aspects.
In a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any of the first aspects.
According to the data transmission method, the data transmission device and the data transmission equipment, the terminal equipment receives the volume adjusting instruction input by the user, processes the audio data to be transmitted according to the volume adjusting instruction, and then sends the processed audio data to the car machine, so that the volume of the car machine is controlled. That is, the volume of the car-mounted device is controlled by changing the audio data sent to the car-mounted device on the terminal device side. Like this, when the volume button of inconvenient operation car machine of user, can control the car machine volume through terminal equipment, promote user experience.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a schematic diagram of a possible application scenario according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a manner of obtaining a volume adjustment command according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram illustrating another manner of obtaining a volume adjustment command according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of another manner of obtaining a volume adjustment command according to an embodiment of the present disclosure;
fig. 6 is a schematic flowchart of a data transmission method according to another embodiment of the present application;
fig. 7 is a schematic diagram of an interaction process between a terminal device and a vehicle machine according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a data transmission device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a possible application scenario according to an embodiment of the present application. As shown in fig. 1, the scenario includes: terminal equipment 10 and car machine 20. The Terminal device 10 is also referred to as a Terminal (Terminal), a User Equipment (UE), an access Terminal, a subscriber unit, a mobile device, a user Terminal, a wireless communication device, a user agent, or a user equipment. The terminal device may be a Personal Digital Assistant (PDA) device, a handheld device (e.g., a smart phone or a tablet computer) with a wireless communication function, an in-vehicle device, a wearable device, and the like.
The vehicle machine is a short name for vehicle-mounted information entertainment products installed in the vehicle. The vehicle machine can realize information communication between people and vehicles and between vehicles and the outside (such as vehicles and vehicles) in function. The car machine can be installed in the center console of the vehicle. The car machine may include a host and a screen. The host and the screen can be arranged integrally or separately.
In the application scenario shown in fig. 1, the terminal device 10 and the car machine 20 may be interconnected. In some scenarios, the terminal device 10 and the car machine 20 are connected by a wire, for example, by a Universal Serial Bus (USB) data line. In other scenarios, the terminal device 10 and the car machine 20 may be connected wirelessly, for example: can be connected through wireless network communication such as wifi, bluetooth.
In a scenario where the terminal device 10 and the car machine 20 are interconnected, the media data in the terminal device 10 may be transmitted to the car machine 20 for playing. For example, audio data, video data, navigation data, etc. in the terminal device 10 may be transmitted to the car machine 20 for playing.
In the prior art, in a scenario where the terminal device 10 transmits media data to the in-vehicle device 20 for playing, when a user wants to adjust the volume of the in-vehicle device 20 for playing, the user can only adjust the volume button of the in-vehicle device 20. In some scenarios (for example, scenarios in which the user is driving a vehicle or the user is far away from the car machine), the user may not conveniently operate the volume button of the car machine, so that the user cannot adjust the volume of the car machine, thereby reducing user experience.
In order to solve the above problem, the present embodiment provides a data transmission method, which can be executed by the terminal device 10 in fig. 1. The terminal equipment receives a volume adjusting instruction input by a user, processes audio data to be transmitted according to the volume adjusting instruction, and then sends the processed audio data to the car machine, so that the volume of the car machine is controlled. Like this, when the volume button of inconvenient operation car machine of user, can control the car machine volume through terminal equipment, promote user experience.
The technical solution of the present application is described in detail below with reference to several specific embodiments. Several of the following embodiments may be combined with each other and the description of the same or similar content may not be repeated in some embodiments.
Fig. 2 is a schematic flow chart of a data transmission method according to an embodiment of the present application. The method of the present embodiment may be performed by a terminal device. As shown in fig. 2, the method of the present embodiment includes:
s201: and acquiring a volume adjusting instruction.
In the scenario of this embodiment, the terminal device and the car machine are already interconnected. Optionally, the terminal device is connected with the car machine through a USB data line. The USB data line is used as a data transmission path between the terminal equipment and the vehicle machine. In the scene, media data in the terminal equipment is transmitted to the vehicle machine through the USB data line.
Optionally, the terminal device is wirelessly connected with the car machine. For example, the terminal device and the vehicle machine are connected to the same wireless local area network, and the terminal device and the vehicle machine are in communication connection through WIFI. Or, the terminal device and the vehicle machine are interconnected through a short-distance wireless communication technology, for example, the terminal device and the vehicle machine are connected through bluetooth communication. In this scenario, media data in the terminal device is transmitted to the car machine through the wireless data path.
The media data in this embodiment includes audio data. For example, the media data may be music, video, navigation data, weather data, and the like. The vehicle machine receives the media data from the terminal equipment and plays the media data. The user can listen to the sound through the loudspeaker of the car machine.
In this embodiment, when a user wishes to adjust the volume of the media data played by the car machine, the user can adjust the volume of the car machine through the terminal device. That is, the user inputs the volume adjustment instruction to the terminal device, so that the terminal device acquires the volume adjustment instruction.
It can be understood that there are various ways for the user to input the volume adjustment instruction to the terminal device, and this embodiment does not limit this. Several possible embodiments can be seen in the following detailed description of fig. 3 to 5, which are not detailed here.
The volume adjustment instruction indicates a volume value desired by the user.
Alternatively, the user-desired volume value may be an absolute volume value. For example, it is assumed that the terminal device sets the value range of the volume value to 0 to 100 (%). 0% represents the volume minimum and 100% represents the volume maximum. The volume adjustment instruction input by the user may instruct to adjust the volume value to 50%, or to adjust the volume value to 80%, or the like.
Alternatively, the user-desired volume value may also be a relative volume value. For example, a volume adjustment instruction entered by the user may indicate an increase in volume, i.e., an increase in volume based on the current volume, e.g., one or more volume steps may be increased. For another example, the volume adjustment command input by the user may indicate to decrease the volume, i.e., decrease the volume based on the current volume, e.g., may be decreased by one or more volume steps. The volume step may be set in advance by the terminal device, or may be specified by the user. Illustratively, one volume step may be 5% or 10%, etc.
S202: and processing the audio data to be transmitted according to the volume adjusting instruction to obtain the processed audio data.
S203: and sending the processed audio data to the car machine.
And after receiving the volume adjusting instruction, the terminal equipment processes the audio data to be transmitted according to the volume value expected by the user and indicated by the volume adjusting instruction, so that the volume value of the processed audio data is consistent with the volume value expected by the user.
Optionally, processing the audio data to be transmitted may include: and adjusting the amplitude of each audio frame in the audio data to be transmitted. It can be understood that the amplitude of each audio frame in the audio data is positively correlated with the volume, that is, the larger the amplitude of the audio frame is, the larger the volume is, and the smaller the amplitude of the audio frame is, the smaller the volume is. Thus, adjustment of the volume may be achieved by adjusting the amplitude of each audio frame in the audio data.
For example, if the volume value desired by the user is smaller than the current volume value, the terminal device processes the audio data to be transmitted using an audio data processing algorithm (e.g., reduces the amplitude of each audio frame) so that the volume value of the processed audio data is reduced. If the volume value desired by the user is larger than the current volume value, the terminal device processes the audio data to be transmitted by using an audio data processing algorithm (for example, the amplitude of each audio frame is increased), so that the volume value of the processed audio data is increased.
And then, the terminal equipment sends the processed audio data to the vehicle machine. Therefore, after the car machine receives the audio data, the audio data are played. The car machine receives the audio data processed by the terminal device according to the volume adjusting instruction, so that the actual playing volume value of the car machine heard by the user is consistent with the volume value expected by the user. Thereby realize the regulation to the car machine volume.
It should be noted that the terminal device may employ various audio data processing algorithms to process the audio data so as to change the volume value of the audio data. The present embodiment does not describe the processing procedure of the audio data in detail. One possible implementation can be seen in the detailed description of the subsequent examples.
In the data transmission method provided by this embodiment, the terminal device receives the volume adjustment instruction input by the user, processes the audio data to be transmitted according to the volume adjustment instruction, and then sends the processed audio data to the car machine, thereby controlling the volume of the car machine. That is, the volume of the car-mounted device is controlled by changing the audio data sent to the car-mounted device on the terminal device side. Like this, when the volume button of inconvenient operation car machine of user, can control the car machine volume through terminal equipment, promote user experience.
Several possible embodiments of the terminal device acquiring the volume adjustment instruction in S201 are described below with reference to fig. 3 to 5.
In a possible implementation manner, the terminal device may obtain the volume adjustment instruction by detecting a state of the volume button. Fig. 3 is a schematic diagram of a manner of obtaining a volume adjustment command according to an embodiment of the present disclosure. As shown in fig. 3, the terminal device is provided with a volume key. The volume keys may include an up volume key and a down volume key. The user may increase the volume by clicking on the increase volume button or decrease the volume by clicking on the decrease volume button.
Illustratively, the terminal device may preset a volume step. The user clicks the volume up button once, which indicates to increase the current volume by one volume step. The user clicks the volume down button once, which indicates to decrease the current volume by one volume step. The terminal device can determine the volume value expected by the user by detecting the times of clicking the volume up key/volume down key by the user.
In another possible implementation manner, the terminal device may obtain the volume adjustment instruction by detecting a state of the volume control. Fig. 4 is a schematic diagram of another manner of obtaining a volume adjustment command according to an embodiment of the present disclosure. As shown in fig. 4, the terminal device exhibits a volume control. The volume control may be a volume slider control, or may be another control for adjusting the volume. Taking the volume slider control as an example, the sliders correspond to different volume values when being at different positions. For example, the slider corresponds to a volume value of 0% when it is at the leftmost side, a volume value of 100% when it is at the rightmost side, and a volume value of 50% when it is at the midpoint position. The user can adjust the volume to the user desired volume value by moving the position of the slider. Accordingly, the terminal device can determine the volume value expected by the user by detecting the position of the slider.
In another possible implementation, the terminal device may further obtain a volume adjustment instruction according to the collected voice signal. Fig. 5 is a schematic diagram of another manner of obtaining a volume adjustment command according to an embodiment of the present disclosure. As shown in fig. 5, the terminal device is provided with a voice collecting device. The voice acquisition device can acquire a voice signal input by a user. And the terminal equipment performs voice recognition on the collected voice signals to obtain a voice recognition result. And then, performing semantic analysis on the voice recognition result to determine the voice volume value expected by the user.
In some examples, if the voice signal input by the user is "volume up", the terminal device determines that the user wishes to increase the volume according to the recognition result of the voice signal. Therefore, the terminal device can increase the current volume by one volume step to determine the volume value desired by the user. And if the voice signal input by the user is 'volume reduction', the terminal equipment determines that the user wants to reduce the volume according to the recognition result of the voice signal. Therefore, the terminal device can reduce the current volume by one volume step to determine the volume value expected by the user. The volume step may be preset by the terminal device.
In other examples, if the voice signal input by the user is "increase the volume by 30%", the terminal device determines that the volume increase desired by the user is 30% according to the recognition result of the voice signal. Therefore, the terminal device can increase the volume by 30% on the basis of the current volume value as the volume value desired by the user. For example, if the current volume value is 60%, the user-desired volume value is 90%. If the voice signal input by the user is '30% volume reduction', the terminal device determines that the volume reduction amount desired by the user is 30% according to the recognition result of the voice signal. Therefore, the terminal device can reduce the volume by 30% on the basis of the current volume value as the volume value desired by the user. For example, if the current volume value is 60%, the user's desired volume value is 30%.
In the embodiment shown in fig. 5, even when the user is inconvenient to operate the car-mounted device volume button, the user can control the car-mounted device volume by inputting a voice command to the terminal device, so that the user is prevented from operating the terminal device or the car-mounted device with hands, and the convenience of the user is improved. In addition, for the car machine which does not support the voice command, the user can control the volume of the car machine by inputting the voice command to the terminal device, which is equivalent to indirectly increasing the voice command function of the car machine, and further improving the use experience of the user.
Fig. 6 is a flowchart illustrating a data transmission method according to another embodiment of the present application. On the basis of the above embodiments, the present embodiment describes in detail the process of processing audio data. As shown in fig. 6, the method of this embodiment may include:
s601: and acquiring a volume adjusting instruction.
For a specific implementation of S601 in this embodiment, reference may be made to detailed descriptions of embodiments shown in fig. 2 to fig. 5, which are not described herein again.
S602: and determining a target adjusting parameter according to the volume adjusting instruction, wherein the target adjusting parameter is used for indicating the adjusting amplitude for adjusting the amplitude of each audio frame in the audio data to be transmitted.
Optionally, the audio data transmitted by the terminal device to the car machine may be Pulse Code Modulation (PCM) audio data. PCM audio data refers to a bare stream of uncompressed audio sample data, which is standard digital audio data obtained by sampling, quantizing, and encoding an analog signal. The amplitude of each audio frame is included in the PCM audio data.
In this embodiment, the target adjustment parameter may be a coefficient for adjusting the amplitude of each audio frame in the audio data. For example, the amplitude of each audio frame in the audio data may be multiplied by the coefficient to effect adjustment of the amplitude of each audio frame. The target adjustment parameter may also be referred to as an amplitude gain for each audio frame.
Since the volume adjustment instruction indicates the volume value desired by the user. The terminal equipment can also obtain the current volume value, and determine the target adjustment parameter according to the volume value expected by the user and the current volume value.
For example, when the user's desired volume value is greater than the current volume value, the determined target adjustment parameter may be a positive number greater than 1. In this way, the amplitude of each audio frame is multiplied by the target adjustment parameter, so that the amplitude of each audio frame can be increased, thereby increasing the volume of the audio data. When the user's desired volume value is smaller than the current volume value, the determined target adjustment parameter may be a positive number smaller than 1. In this way, the amplitude of each audio frame is multiplied by the target adjustment parameter, so that the amplitude of each audio frame can be reduced, thereby reducing the volume of the audio data.
It should be noted that, in practical applications, there may be a non-linear relationship between the volume gain and the amplitude gain of the audio frame. For example, when the amplitude of each audio frame in the audio data is multiplied by 2, the volume value of the obtained audio data is not necessarily 2 times of the original volume value. Accordingly, the target adjustment parameter may be determined according to the volume value desired by the user, the current volume value, and the relationship between the volume gain and the amplitude gain.
In one example, the gain model may be set in advance in the terminal device. The gain model is used to indicate the amplitude gain for different volume gains. Thus, the volume gain can be determined according to the volume value expected by the user and the current volume value. And determining the amplitude gain according to the volume gain and the gain model so as to obtain the target adjustment parameter.
S603: and adjusting the amplitude of each audio frame in the audio data to be transmitted according to the target adjustment parameter to obtain the processed audio data.
Specifically, the amplitude of each audio frame in the audio data to be transmitted is multiplied by the target adjustment parameter, so as to obtain the processed audio data.
In practical applications, when the target adjustment parameter is used to adjust the amplitude of each audio frame, there may be a problem that the adjusted amplitude overflows (for example, when the target adjustment parameter is greater than 1). For example, assume that the amplitude of each audio frame ranges from 0 to 255. If the amplitude of a certain audio frame before adjustment is 150 and the target adjustment parameter is 2, the amplitude of the audio frame is multiplied by the target adjustment parameter to obtain an adjusted amplitude of 300, which exceeds the allowable maximum amplitude value (255). In this case, the adjusted amplitude needs to be subjected to an anti-overflow process. For example, the adjusted amplitude of the audio frame may be set to a maximum amplitude value of 255.
In addition, when the amplitude of each audio frame is adjusted by using the target adjustment parameter, there may be a problem that the adjusted amplitude is too small (for example, when the target adjustment parameter is less than 1), so that the user cannot listen to the audio frame, and the listening effect of the user is affected. For example, if the amplitude of a certain audio frame before adjustment is 50 and the target adjustment parameter is 0.2, the amplitude of the audio frame is multiplied by the target adjustment parameter to obtain an adjusted amplitude of 10. The adjusted amplitude is too small, which may result in the user not listening to the audio frame. In this case, it is necessary to perform anti-lost frame processing on the adjusted amplitude. For example, if the minimum amplitude that the user can hear is 30, the adjusted amplitude of the audio frame may be set to 30.
However, if there are too many audio frames processed by the anti-overflow or anti-frame loss method in the processed audio data, the processed audio data will be distorted. In order to avoid the problem of audio data distortion, in a possible implementation manner, a range of allowable adjustment parameters may be determined according to an amplitude value of each audio frame in the audio data to be transmitted; correcting the target adjustment parameter according to the range of the allowable adjustment parameter; and adjusting the amplitude value of each audio frame in the audio data to be transmitted according to the corrected target adjustment parameter to obtain the processed audio data.
The following illustrates the processing of audio data with reference to two examples.
In one example, assume that the user wishes to turn the volume of the vehicle. The terminal equipment determines the volume value 80% expected by the user according to the volume adjusting instruction input by the user. And if the current volume value is 60%, determining that the target adjustment parameter is a factor according to the volume value expected by the user and the current volume value. In order to avoid overflow distortion of the adjusted audio data, the range of the allowable adjustment parameter may be determined according to the amplitude value of each audio frame in the audio data to be transmitted. For example, according to the maximum amplitude value and the minimum amplitude value of each audio frame in the audio data to be transmitted, the allowable maximum adjustment parameter allow _ max _ factor is determined without overflow. If the factor > allow _ max _ factor, the target adjustment parameter factor is modified to allow _ max _ factor, that is, the allow _ max _ factor is used as the target adjustment parameter. In this way, the amplitude value of each audio frame in the audio data to be transmitted is adjusted by using the corrected target adjustment parameter allow _ max _ factor, so that distortion caused by amplitude overflow can be avoided.
In another example, assume that the user wishes to turn down the volume of the car machine. The terminal equipment determines the volume value 40% expected by the user according to the volume adjusting instruction input by the user. And if the current volume value is 60%, determining that the target adjustment parameter is a factor according to the volume value expected by the user and the current volume value. In order to avoid frame loss distortion of the adjusted audio data, the range of the allowable adjustment parameter may be determined according to the amplitude value of each audio frame in the audio data to be transmitted. For example, according to the maximum amplitude value and the minimum amplitude value of each audio frame in the audio data to be transmitted, the allowable minimum adjustment parameter allow _ min _ factor is determined without causing the adjusted amplitude to be too small. If the factor is less than the allow _ min _ factor, the target adjustment parameter factor is modified to the allow _ min _ factor, that is, the allow _ min _ factor is used as the target adjustment parameter. In this way, the amplitude value of each audio frame in the audio data to be transmitted is adjusted by using the corrected target adjustment parameter allow _ min _ factor, so that distortion caused by too small amplitude can be avoided.
S604: and sending the processed audio data to the car machine.
In this embodiment, the terminal device receives a volume adjustment instruction input by a user, determines a target adjustment parameter according to the volume adjustment instruction, and adjusts the amplitude of each audio frame in the audio data to be transmitted according to the target adjustment parameter to obtain processed audio data. And then sending the processed audio data to the car machine, thereby realizing the control of the volume of the car machine. That is, the volume of the car-mounted device is controlled by changing the audio data sent to the car-mounted device on the terminal device side. Like this, when the volume button of inconvenient operation car machine of user, can control the car machine volume through terminal equipment, promote user experience. In addition, in the process of processing the audio data, the target adjustment parameter is corrected according to the range of the allowable adjustment parameter, and the amplitude of each audio frame in the audio data is adjusted by using the corrected target adjustment parameter, so that the problem of distortion of the processed audio data is avoided.
Fig. 7 is a schematic diagram of an interaction process between a terminal device and a vehicle machine according to an embodiment of the present application. As shown in fig. 7, after the terminal device and the car machine are interconnected, it is assumed that the terminal device determines that the media data transmitted to the car machine is music. Then, the terminal device reads the PCM audio data corresponding to the music at preset time intervals and sends the PCM audio data to the car machine. And after receiving the PCM audio data, the vehicle machine plays the PCM audio data through a vehicle machine loudspeaker. The user hears the music transmitted by the terminal device.
Assuming that at a certain moment, the user wishes to turn up/down the volume of the car machine, the user may input a volume adjustment instruction to the terminal device to indicate the volume value desired by the user. The manner in which the user inputs the volume adjustment instruction to the terminal device can be seen in fig. 3 to 5. And the terminal equipment receives the volume adjusting instruction. Subsequently, after the terminal device acquires the PCM audio data to be transmitted each time, the PCM audio data are processed according to the volume adjusting instruction, so that the volume of the processed PCM audio data is consistent with the volume expected by a user. The process of the terminal device processing the PCM audio data may refer to the detailed description of the embodiment shown in fig. 2 or fig. 6. And the terminal equipment sends the processed PCM audio data to the vehicle machine. And after the vehicle machine receives the processed PCM audio data, playing the PCM audio data through a vehicle machine loudspeaker. Thus, the volume of music the user hears is the volume desired by the user.
Through the process, when the volume button of the car machine is operated inconveniently by a user, the volume of the car machine can be controlled through the terminal equipment, and user experience is improved.
Fig. 8 is a schematic structural diagram of a data transmission device according to an embodiment of the present application. The apparatus of the present embodiment may be in the form of software and/or hardware. The apparatus may be provided in a terminal device. As shown in fig. 8, the data transmission apparatus 800 of the present embodiment may include: an acquisition module 801, a processing module 802 and a sending module 803.
The acquiring module 801 is configured to acquire a volume adjusting instruction; the processing module 802 is configured to process the audio data to be transmitted according to the volume adjustment instruction, so as to obtain processed audio data; a sending module 803, configured to send the processed audio data to the car machine.
Optionally, the processing module 802 is specifically configured to: and adjusting the amplitude of each audio frame in the audio data to be transmitted according to the volume adjusting instruction to obtain the processed audio data.
Optionally, the processing module 802 is specifically configured to: determining a target adjustment parameter according to the volume adjustment instruction, wherein the target adjustment parameter is used for indicating the adjustment amplitude for adjusting the amplitude of each audio frame; and adjusting the amplitude of each audio frame in the audio data to be transmitted according to the target adjustment parameter to obtain the processed audio data.
Optionally, the processing module 802 is specifically configured to: determining the range of allowable adjustment parameters according to the amplitude value of each audio frame in the audio data to be transmitted; correcting the target adjustment parameter according to the range of the allowable adjustment parameter; and adjusting the amplitude value of each audio frame in the audio data to be transmitted according to the corrected target adjustment parameter to obtain the processed audio data.
Optionally, the volume adjusting instruction is used for indicating a volume value desired by a user; the processing module 802 is specifically configured to: acquiring a current volume value; and determining the target adjustment parameter according to the volume value expected by the user and the current volume value.
Optionally, the obtaining module 801 is specifically configured to:
acquiring a volume adjusting instruction by detecting the state of a volume key; alternatively, the first and second electrodes may be,
acquiring a volume adjusting instruction by detecting the state of the volume control; or;
and acquiring a volume adjusting instruction according to the acquired voice signal.
Optionally, the audio data to be transmitted is pulse code modulation PCM audio data.
The data transmission apparatus provided in this embodiment may be configured to implement the technical solution in any of the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 9 is a block diagram of an electronic device according to the data transmission method of the embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 9, the electronic apparatus includes: one or more processors 701, a memory 702, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 9, one processor 701 is taken as an example.
The memory 702 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by at least one processor to cause the at least one processor to perform the data transmission method provided herein. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to execute the data transmission method provided by the present application.
The memory 702, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the obtaining module 801, the processing module 802, and the sending module 803 shown in fig. 8) corresponding to the data transmission method in the embodiments of the present application. The processor 701 executes various functional applications of the server or the terminal device and data processing by running non-transitory software programs, instructions, and modules stored in the memory 702, that is, implements the data transmission method in the above-described method embodiment.
The memory 702 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by use of the electronic device, and the like. Further, the memory 702 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 702 may optionally include memory located remotely from the processor 701, which may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
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 may be connected by a bus or other means, and fig. 9 illustrates an example of a connection by a bus.
The input devices 703 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device, such as a touch screen, keypad, mouse, track pad, touch pad, pointing stick, one or more mouse buttons, track ball, joystick, etc. the output devices 704 may include a display device, auxiliary lighting devices (e.g., L ED), and tactile feedback devices (e.g., vibration motor), etc.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable logic devices (P L D)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal.
The systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or L CD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer for providing interaction with the user.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., AN application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with AN implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method of data transmission, comprising:
acquiring a volume adjusting instruction;
processing the audio data to be transmitted according to the volume adjusting instruction to obtain processed audio data;
and sending the processed audio data to the car machine.
2. The method according to claim 1, wherein the processing the audio data to be transmitted according to the volume adjustment instruction to obtain processed audio data comprises:
and adjusting the amplitude of each audio frame in the audio data to be transmitted according to the volume adjusting instruction to obtain the processed audio data.
3. The method according to claim 2, wherein the adjusting, according to the volume adjustment instruction, the amplitude of each audio frame in the audio data to be transmitted to obtain processed audio data includes:
determining a target adjustment parameter according to the volume adjustment instruction, wherein the target adjustment parameter is used for indicating the adjustment amplitude for adjusting the amplitude of each audio frame;
and adjusting the amplitude of each audio frame in the audio data to be transmitted according to the target adjustment parameter to obtain the processed audio data.
4. The method according to claim 3, wherein the adjusting the amplitude of each audio frame in the audio data to be transmitted according to the target adjustment parameter to obtain the processed audio data comprises:
determining the range of allowable adjustment parameters according to the amplitude value of each audio frame in the audio data to be transmitted;
correcting the target adjustment parameter according to the range of the allowable adjustment parameter;
and adjusting the amplitude value of each audio frame in the audio data to be transmitted according to the corrected target adjustment parameter to obtain the processed audio data.
5. The method of claim 3 or 4, wherein the volume adjustment instruction is used to indicate a volume value desired by a user; determining a target adjustment parameter according to the volume adjustment instruction includes:
acquiring a current volume value;
and determining the target adjustment parameter according to the volume value expected by the user and the current volume value.
6. The method according to any one of claims 1 to 4, wherein the obtaining of the volume adjustment instruction comprises any one of the following:
acquiring a volume adjusting instruction by detecting the state of a volume key; alternatively, the first and second electrodes may be,
acquiring a volume adjusting instruction by detecting the state of the volume control; or;
and acquiring a volume adjusting instruction according to the acquired voice signal.
7. The method according to any of claims 1 to 4, wherein the audio data to be transmitted is Pulse Code Modulation (PCM) audio data.
8. A data transmission apparatus, comprising:
the acquisition module is used for acquiring a volume adjustment instruction;
the processing module is used for processing the audio data to be transmitted according to the volume adjusting instruction to obtain processed audio data;
and the sending module is used for sending the processed audio data to the vehicle machine.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 7.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 7.
CN202010185394.8A 2020-03-17 2020-03-17 Data transmission method, device and equipment Pending CN111402876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010185394.8A CN111402876A (en) 2020-03-17 2020-03-17 Data transmission method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010185394.8A CN111402876A (en) 2020-03-17 2020-03-17 Data transmission method, device and equipment

Publications (1)

Publication Number Publication Date
CN111402876A true CN111402876A (en) 2020-07-10

Family

ID=71430913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010185394.8A Pending CN111402876A (en) 2020-03-17 2020-03-17 Data transmission method, device and equipment

Country Status (1)

Country Link
CN (1) CN111402876A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111951801A (en) * 2020-07-31 2020-11-17 长城汽车股份有限公司 Volume adjusting method and device based on voice control
CN112185369A (en) * 2019-07-04 2021-01-05 百度在线网络技术(北京)有限公司 Volume adjusting method, device, equipment and medium based on voice control

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080013754A1 (en) * 2006-07-12 2008-01-17 Yu-Hsin Chuo Method of volume controlling
CN102355562A (en) * 2011-09-16 2012-02-15 青岛海信移动通信技术股份有限公司 Volume control method and equipment
CN105824529A (en) * 2016-03-11 2016-08-03 深圳还是威健康科技有限公司 Method for controlling music playing and intelligent wearable equipment
CN107122156A (en) * 2017-03-09 2017-09-01 深圳市金立通信设备有限公司 A kind of method for controlling volume and terminal
CN107633849A (en) * 2017-09-30 2018-01-26 广东欧珀移动通信有限公司 Bluetooth equipment method for regulation of sound volume, equipment and computer-readable recording medium
CN107645721A (en) * 2017-09-30 2018-01-30 广东欧珀移动通信有限公司 Bluetooth equipment method for regulation of sound volume, equipment and computer-readable recording medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080013754A1 (en) * 2006-07-12 2008-01-17 Yu-Hsin Chuo Method of volume controlling
CN102355562A (en) * 2011-09-16 2012-02-15 青岛海信移动通信技术股份有限公司 Volume control method and equipment
CN105824529A (en) * 2016-03-11 2016-08-03 深圳还是威健康科技有限公司 Method for controlling music playing and intelligent wearable equipment
CN107122156A (en) * 2017-03-09 2017-09-01 深圳市金立通信设备有限公司 A kind of method for controlling volume and terminal
CN107633849A (en) * 2017-09-30 2018-01-26 广东欧珀移动通信有限公司 Bluetooth equipment method for regulation of sound volume, equipment and computer-readable recording medium
CN107645721A (en) * 2017-09-30 2018-01-30 广东欧珀移动通信有限公司 Bluetooth equipment method for regulation of sound volume, equipment and computer-readable recording medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112185369A (en) * 2019-07-04 2021-01-05 百度在线网络技术(北京)有限公司 Volume adjusting method, device, equipment and medium based on voice control
CN111951801A (en) * 2020-07-31 2020-11-17 长城汽车股份有限公司 Volume adjusting method and device based on voice control
WO2022022211A1 (en) * 2020-07-31 2022-02-03 长城汽车股份有限公司 Volume adjustment method and apparatus based on speech control

Similar Documents

Publication Publication Date Title
CN105872253B (en) Live broadcast sound processing method and mobile terminal
US11665272B2 (en) Method and apparatus for media property or characteristic control in a media system
CN107277268B (en) Audio playing method and mobile terminal
CN111177453B (en) Method, apparatus, device and computer readable storage medium for controlling audio playing
CN107633849B (en) Bluetooth device volume adjusting method, device and computer readable storage medium
CN106506437B (en) Audio data processing method and device
CN111033614B (en) Volume adjusting method and device, mobile terminal and storage medium
EP3641310A1 (en) Video encoding method, apparatus, device, and storage medium
CN111402876A (en) Data transmission method, device and equipment
US11822854B2 (en) Automatic volume adjustment method and apparatus, medium, and device
CN110958481A (en) Video page display method and device, electronic equipment and computer readable medium
CN109582274B (en) Volume adjusting method and device, electronic equipment and computer readable storage medium
CN107645721B (en) Bluetooth device volume adjusting method, device and computer readable storage medium
US9230529B2 (en) Music reproducing apparatus
CN106603870B (en) Control method and device of playing equipment, playing equipment and mobile terminal
CN105812439A (en) Audio transmission method and device
CN110636409A (en) Audio sharing method and device, microphone and storage medium
CN111294711A (en) Signal processing method and device
AU2013204547B2 (en) Audio signal processing method and electronic device supporting the same
WO2017215658A1 (en) Sound effect addition method and user terminal
CN109473117B (en) Audio special effect superposition method and device and terminal thereof
CN115589581A (en) Bluetooth-based audio non-inductive transmission method for copilot entertainment system
JP2022095689A (en) Voice data noise reduction method, device, equipment, storage medium, and program
CN115134708A (en) Earphone mode switching method and device, electronic equipment and readable storage medium
JP6501223B2 (en) Electronic device, electronic system, voice output program and voice output method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20211019

Address after: 100176 101, floor 1, building 1, yard 7, Ruihe West 2nd Road, Beijing Economic and Technological Development Zone, Daxing District, Beijing

Applicant after: Apollo Intelligent Connectivity (Beijing) Technology Co., Ltd.

Address before: 2 / F, baidu building, 10 Shangdi 10th Street, Haidian District, Beijing 100085

Applicant before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication

Application publication date: 20200710