CN109951729A - Method and apparatus for handling data - Google Patents
Method and apparatus for handling data Download PDFInfo
- Publication number
- CN109951729A CN109951729A CN201910223981.9A CN201910223981A CN109951729A CN 109951729 A CN109951729 A CN 109951729A CN 201910223981 A CN201910223981 A CN 201910223981A CN 109951729 A CN109951729 A CN 109951729A
- Authority
- CN
- China
- Prior art keywords
- data
- car
- mounted terminal
- original audio
- audio
- 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
Links
Landscapes
- Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)
Abstract
The embodiment of the present application discloses the method and apparatus for handling data.One specific embodiment of this method includes: whether the audio broadcast state of detection car-mounted terminal changes;In response to detecting that the audio broadcast state of car-mounted terminal changes, data processing method corresponding with state change is determined;Original audio data to be played is obtained, acquired original audio data is smoothed according to identified data processing method.The embodiment can be avoided the abnormal sound occurred when car-mounted terminal abruptly starts to play and stops and playing suddenly, improve user experience.
Description
Technical field
The invention relates to field of computer technology, and in particular to the method and apparatus for handling data.
Background technique
TTS (Text To Speech, from Text To Speech) voice broadcast, which refers to, is converted to audio content for content of text
And the technology played back, it is widely used in that vision disorder personage is for example helped to read or do not fit through vision acquisition
The scene of information.
In recent years, TTS voice broadcast technology is also more and more extensive in the application of automotive field.By by TTS voice broadcast
System is applied in car-mounted terminal, and in driving conditions, driver need not just go to see the small screen of car-mounted terminal, only need to attentively drive
Vehicle is sailed, to reduce because seeing screen bring traffic safety hidden danger.
Summary of the invention
The embodiment of the present application proposes the method and apparatus for handling data.
In a first aspect, the embodiment of the present application provides a kind of method for handling data, this method comprises: detection is vehicle-mounted
Whether the audio broadcast state of terminal changes;In response to detecting that the audio broadcast state of car-mounted terminal changes, really
Fixed data processing method corresponding with state change;Original audio data to be played is obtained, according to identified data processing
Mode is smoothed acquired original audio data.
In some embodiments, in response to detecting that the audio broadcast state of car-mounted terminal changes, determining and state
Change corresponding data processing method, comprising: in response to detecting that the audio broadcast state of car-mounted terminal is switched by idle state
To broadcast state, determine that corresponding data processing method is audio amplitude from the low processing mode gradually got higher.
In some embodiments, in response to detecting that the audio broadcast state of car-mounted terminal changes, determining and state
Change corresponding data processing method, further includes: in response to detecting that the audio broadcast state of car-mounted terminal is cut by broadcast state
Idle state is changed to, determines that corresponding data processing method is the processing mode that audio amplitude is gradually lower from height.
In some embodiments, car-mounted terminal further includes for the data from external acquisition original audio data to be played
Obtain the buffer area of module and the original audio data obtained for data cached acquisition module.Obtain original audio to be played
Data, comprising: if being cached with the original audio data of preset byte length in buffer area, obtain preset byte length from buffer area
Original audio data.
In some embodiments, original audio data to be played is obtained, further includes: if the data in buffer area are sky,
It is data cached that notification data obtains module;The original audio data of preset byte length is obtained from buffer area.
Second aspect, the embodiment of the present application provide a kind of for handling the device of data, which includes: state-detection
Whether unit, the audio broadcast state for being configured to detect car-mounted terminal change;Mode determination unit, is configured to respond to
It changes in the audio broadcast state for detecting car-mounted terminal, determines data processing method corresponding with state change;Data
Processing unit is configured to obtain original audio data to be played, according to identified data processing method to acquired
Original audio data is smoothed.
In some embodiments, mode determination unit includes: first method determining module, is configured in response to detect
The audio broadcast state of car-mounted terminal is switched to broadcast state by idle state, determines that corresponding data processing method is audio width
Value is from the low processing mode gradually got higher.
In some embodiments, mode determination unit further include: second method determining module is configured in response to detect
Audio broadcast state to car-mounted terminal is switched to idle state by broadcast state, determines that corresponding data processing method is audio
The processing mode that amplitude is gradually lower from height.
In some embodiments, car-mounted terminal further includes for the data from external acquisition original audio data to be played
Obtain the buffer area of module and the original audio data obtained for data cached acquisition module.Obtain original audio to be played
Data, comprising: if being cached with the original audio data of preset byte length in buffer area, obtain preset byte length from buffer area
Original audio data.
In some embodiments, original audio data to be played is obtained, further includes: if the data in buffer area are sky,
It is data cached that notification data obtains module;The original audio data of preset byte length is obtained from buffer area.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Storage dress
It sets, is stored thereon with one or more programs;When one or more programs are executed by one or more processors so that one or
Multiple processors realize the method as described in implementation any in first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, should
The method as described in any implementation of first aspect is realized when computer program is executed by processor.
Method and apparatus provided by the embodiments of the present application for handling data, the audio by detecting car-mounted terminal play
Whether state changes, and corresponding data processing method is determined when audio broadcast state changes, then obtain to
The original audio data of broadcasting, and original audio data is smoothed according to determining data processing method, so as to
The abnormal sound occurred when car-mounted terminal abruptly starts to play and stops and playing suddenly is enough avoided, user experience is improved.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the application can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for handling data of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the method for handling data of the application;
Fig. 4 is the structural schematic diagram according to one embodiment of the device for handling data of the application;
Fig. 5 is adapted for the structural schematic diagram for realizing the electronic equipment of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the method for handling data of the application or the implementation of the device for handling data
The exemplary system architecture 100 of example.
As shown in Figure 1, system architecture 100 may include vehicle 101 and car-mounted terminal 102.
Car-mounted terminal 102 can be the headend equipment of the monitoring management system of vehicle 101, be typically mounted at vehicle 101
It is internal.Car-mounted terminal 102 can user's playing audio-fequency data into vehicle.It is led for example, car-mounted terminal 102 can carry out voice
Boat, reciting news etc..
Car-mounted terminal 102 may include data processing module, buffer area and data acquisition module.Data processing module sum number
It can be the thread operated in car-mounted terminal 102 according to module is obtained.For example, data processing module and data acquisition module can be with
Be the sub thread operated in car-mounted terminal 102 or one of them be main thread, and another is for sub thread etc..
Whether the audio broadcast state that data processing module can detecte car-mounted terminal 102 changes, and broadcasts in audio
Corresponding data processing method is determined when the state of putting changes, and audio data to be played is handled.
Data acquisition module can obtain audio data to be played from external, and the audio data that will acquire be stored in it is slow
Rush area.
It should be noted that for handling the method for data generally by car-mounted terminal 102 provided by the embodiment of the present application
Data processing module execute, correspondingly, the device for handling data is generally positioned at the data processing mould of car-mounted terminal 102
In block.
It should be understood that the number of the car-mounted terminal in Fig. 1 is only schematical.According to needs are realized, it can have and appoint
The car-mounted terminal for number of anticipating.
With continued reference to Fig. 2, the process of one embodiment of the method for handling data according to the application is shown
200.The method for being used to handle data can be applied to car-mounted terminal.The method for being used to handle data may include following step
It is rapid:
Step 201, whether the audio broadcast state for detecting car-mounted terminal changes.
In the present embodiment, the method for handling data runs executing subject (such as the car-mounted terminal of Fig. 1 thereon
Data processing module in 102) whether the audio broadcast state that can detecte car-mounted terminal change.The audio of car-mounted terminal
Broadcast state may include idle state and broadcast state.Accordingly, the change of audio broadcast state may include from idle shape
State, which is switched to broadcast state (such as click start button) and is switched to idle state from broadcast state, (such as presses stoppings/temporary
Stop button).
Step 202, in response to detecting that the audio broadcast state of car-mounted terminal changes, determination is corresponding with state change
Data processing method.
In the present embodiment, if detecting, the audio broadcast state of car-mounted terminal changes, for handling data
The executing subject (such as data processing module in the car-mounted terminal 102 of Fig. 1) of method operation thereon can determine and audio
The corresponding data processing method of the change of broadcast state.
In some optional implementations of the present embodiment, step 202 be can specifically include: vehicle-mounted in response to detecting
The audio broadcast state of terminal is switched to broadcast state by idle state, determine corresponding data processing method be audio amplitude from
The low processing mode gradually got higher.For example, when audio amplitude is increase gradually to normal play from 0 amplitude (that is, low amplitude value)
Amplitude (that is, amplitude).
In some optional implementations of the present embodiment, step 202 specifically can also include: in response to detecting vehicle
The audio broadcast state of mounted terminal is switched to idle state by broadcast state, determines that corresponding data processing method is audio amplitude
The processing mode being gradually lower from height.For example, by audio amplitude from normal play when amplitude (that is, amplitude) be gradually decrease to
0 amplitude (that is, low amplitude value).
Step 203, original audio data to be played is obtained, according to identified data processing method to acquired original
Beginning audio data is smoothed.
In the present embodiment, the method for handling data runs executing subject (such as the car-mounted terminal of Fig. 1 thereon
Data processing module in 102) original audio data to be played can be obtained first, the number then determined according to step 202
It is smoothed according to original audio data of the processing mode to acquisition, the audio data after obtaining smoothing processing.
Due to having carried out smoothing processing to audio data to be played when detecting that broadcast state changes,
Car-mounted terminal is abruptly started to play or be clicked when stopping suddenly, the audio of broadcasting also with state change and smoothly mistake
It crosses, from the abnormal sound without similar " pop ", and then is able to ascend user experience.
In some optional implementations of the present embodiment, car-mounted terminal can also include data acquisition module and buffering
Area.Wherein, data acquisition module can be used for obtaining original audio data to be played from external.Buffer area can be used for caching
The original audio data that data acquisition module obtains.As an example, production-consumer's frame model, which can be used, realizes this realization
The scheme of mode, at this point, data acquisition module can be producer thread, and data processing module can be consumer thread,
Buffer area can then cache the original audio data to be played of such as 100 byte lengths.
Corresponding to the implementation, obtaining original audio data to be played be can specifically include:
It, can be from if being cached with the original audio data of preset byte length (for example, 100 byte lengths) in buffer area
The original audio data of buffer area acquisition preset byte length.Here, preset byte length, which can be, rule of thumb presets
Value.
Optionally, obtaining original audio data to be played specifically can also include:
Firstly, it is data cached (for example, to data acquisition mould that notification data obtains module if the data in buffer area are sky
Block sends notice, and data acquisition module starts the original audio data to be played to buffer cache after receiving notice).
Then, the original audio data of preset byte length is obtained from buffer area.For example, when data acquisition module caches number
According to end (that is, original audio data that buffer area has cached preset byte length), preset byte length is obtained from buffer area
Original audio data.Here, data processing module can be determined by receiving the notice of buffer area or data receiver's transmission
The data cached end of data acquisition module.
With continued reference to the schematic diagram that Fig. 3, Fig. 3 are according to an application scenarios for handling data of the present embodiment.?
In the application scenarios, the vehicle-mounted progress of end 301 Voice Navigation is used in user (such as " Zhang San ").In the process of voice broadcast
In, the hand 302 of user presses the pause button 303 of car-mounted terminal 301 suddenly, and car-mounted terminal 301 detects that car-mounted terminal 301 will
After being switched to idle state (that is, halted state) by voice broadcast state, the to be broadcasted of 100 byte lengths is obtained from buffer area
Original audio data is smoothed (audio amplitude is gradually decrease to 0 amplitude from normal amplitude).In this way, from user
Pause button 303 is pressed to during stopping playing, car-mounted terminal 301 can play the audio data after smoothing processing.
The method provided by the above embodiment for handling data of the application, the audio by detecting car-mounted terminal play
Whether state changes, and corresponding data processing method is determined when audio broadcast state changes, then obtain to
The original audio data of broadcasting, and original audio data is smoothed according to determining data processing method, so as to
The abnormal sound occurred when car-mounted terminal abruptly starts to play and stops and playing suddenly is enough avoided, user experience is improved.
With further reference to Fig. 4, as the realization to method shown in Fig. 2, this application provides a kind of for handling data
One embodiment of device, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which specifically can be applied to
In car-mounted terminal.
As shown in figure 4, the present embodiment may include state detection unit 401, mode for handling the device 400 of data
Determination unit 402 and data processing unit 403.Wherein, state detection unit 401 may be configured to the sound of detection car-mounted terminal
Whether frequency broadcast state changes.Mode determination unit 402 may be configured to: the audio in response to detecting car-mounted terminal
Broadcast state changes, and determines data processing method corresponding with state change.Data processing unit 403 can be configured
At: obtain original audio data to be played, according to identified data processing method to acquired original audio data into
Row smoothing processing.
In the present embodiment, the state detection unit 401 of the device 400 for handling data of the present embodiment can detecte
Whether the audio broadcast state of car-mounted terminal changes.The audio broadcast state of car-mounted terminal may include idle state and broadcast
Put state.Accordingly, the change of audio broadcast state may include since idle state be switched to broadcast state (such as click
Button) and from broadcast state it is switched to idle state (such as pressing stop/pause button).
In the present embodiment, if detecting, the audio broadcast state of car-mounted terminal changes, and aforesaid way determines single
Member 402 can determine data processing method corresponding with the change of audio broadcast state.
In some optional implementations of the present embodiment, aforesaid way determination unit 402 may include first method
Determining module.Wherein, first method determining module may be configured to: the audio broadcast state in response to detecting car-mounted terminal
Broadcast state is switched to by idle state, determines that corresponding data processing method is audio amplitude from the low processing side gradually got higher
Formula.
In some optional implementations of the present embodiment, aforesaid way determination unit 402 can also include second party
Formula determining module.Wherein, second method determining module may be configured to: in response to detecting that the audio of car-mounted terminal plays shape
State is switched to idle state by broadcast state, determines that corresponding data processing method is the processing that audio amplitude is gradually lower from height
Mode.
In the present embodiment, above-mentioned data processing unit 403 can obtain original audio data to be played first, then
The data processing method that determination unit 402 determines in the manner described above is smoothed the original audio data of acquisition, obtains
Audio data after to smoothing processing.
In some optional implementations of the present embodiment, car-mounted terminal can also include data acquisition module and buffering
Area.Wherein, data acquisition module can be used for obtaining original audio data to be played from external.Buffer area can be used for caching
The original audio data that data acquisition module obtains.As an example, production-consumer's frame model, which can be used, realizes this realization
The scheme of mode, at this point, data acquisition module can be producer thread, and data processing module can be consumer thread,
Buffer area can then cache the original audio data to be played of such as 100 byte lengths.
Corresponding to the implementation, obtaining original audio data to be played be can specifically include:
It, can be from if being cached with the original audio data of preset byte length (for example, 100 byte lengths) in buffer area
The original audio data of buffer area acquisition preset byte length.Here, preset byte length, which can be, rule of thumb presets
Value.
Optionally, obtaining original audio data to be played specifically can also include:
Firstly, it is data cached (for example, to data acquisition mould that notification data obtains module if the data in buffer area are sky
Block sends notice, and data acquisition module starts the original audio data to be played to buffer cache after receiving notice).
Then, the original audio data of preset byte length is obtained from buffer area.For example, when data acquisition module caches number
According to end (that is, original audio data that buffer area has cached preset byte length), preset byte length is obtained from buffer area
Original audio data.Here, data processing module can be determined by receiving the notice of buffer area or data receiver's transmission
The data cached end of data acquisition module.
The application's is provided by the above embodiment for handling the device of data, and the audio by detecting car-mounted terminal plays
Whether state changes, and corresponding data processing method is determined when audio broadcast state changes, then obtain to
The original audio data of broadcasting, and original audio data is smoothed according to determining data processing method, so as to
The abnormal sound occurred when car-mounted terminal abruptly starts to play and stops and playing suddenly is enough avoided, user experience is improved.
Below with reference to Fig. 5, it illustrates the electronic equipment for being suitable for being used to realize the embodiment of the present application (such as the electronics of Fig. 1
The structural schematic diagram of equipment 101,102,103) 500.Electronic equipment 500 shown in Fig. 5 is only an example, should not be to this Shen
Please embodiment function and use scope bring any restrictions.
As shown in figure 5, electronic equipment 500 may include processing unit (such as central processing unit, graphics processor etc.)
501, random access can be loaded into according to the program being stored in read-only memory (ROM) 502 or from storage device 508
Program in memory (RAM) 503 and execute various movements appropriate and processing.In RAM 503, it is also stored with electronic equipment
Various programs and data needed for 500 operations.Processing unit 501, ROM 502 and RAM503 are connected with each other by bus 504.
Input/output (I/O) interface 505 is also connected to bus 504.
Usual following device can connect to I/O interface 505: the input unit 506 including such as keyboard, mouse etc.;Packet
Include the output device 507 such as liquid crystal display (LCD), loudspeaker;Storage device 508 including such as tape, hard disk etc.;
And communication device 509.Communication device 509 can permit electronic equipment 500 wirelessly or non-wirelessly communicated with other equipment with
Exchange data.Although Fig. 5 shows the electronic equipment 500 with various devices, it should be understood that be not required for implement or
Have all devices shown.It can alternatively implement or have more or fewer devices.Each box can shown in Fig. 5
To represent a device, it also can according to need and represent multiple devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communication device 509, or from storage device 508
It is mounted, or is mounted from ROM 502.When the computer program is executed by processing unit 501, the implementation of the disclosure is executed
The above-mentioned function of being limited in the method for example.It should be noted that computer-readable medium described in the disclosure can be computer
Readable signal medium or computer readable storage medium either the two any combination.Computer readable storage medium
Such as may be-but not limited to-system, device or the device of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or
Any above combination.The more specific example of computer readable storage medium can include but is not limited to: have one or more
It is the electrical connection of a conducting wire, portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable
Formula programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), optical storage
Device, magnetic memory device or above-mentioned any appropriate combination.In embodiment of the disclosure, computer-readable storage medium
Matter can be any tangible medium for including or store program, which, which can be commanded execution system, device or device, makes
With or it is in connection.And in embodiment of the disclosure, computer-readable signal media may include in a base band or
The data-signal that person propagates as carrier wave a part, wherein carrying computer-readable program code.The data of this propagation
Signal can take various forms, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer
Readable signal media can also be any computer-readable medium other than computer readable storage medium, this is computer-readable
Medium can send, propagate or transmit for by instruction execution system, device or device use or it is in connection
Program.The program code for including on computer-readable medium can transmit with any suitable medium, including but not limited to: electricity
Line, optical cable, RF (radio frequency) etc. or above-mentioned any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned apparatus;It is also possible to individualism, and it is unassembled
Enter in the device.Above-mentioned computer-readable medium carries one or more program, when said one or multiple program quilts
When the device executes, so that the device: whether the audio broadcast state for detecting car-mounted terminal changes;In response to detecting vehicle
The audio broadcast state of mounted terminal changes, and determines data processing method corresponding with state change;Obtain original to be played
Beginning audio data is smoothed acquired original audio data according to identified data processing method.
The behaviour for executing embodiment of the disclosure can be write with one or more programming languages or combinations thereof
The computer program code of work, described program design language include object oriented program language-such as Java,
Smalltalk, C++ further include conventional procedural programming language-such as " C " language or similar program design language
Speech.Program code can be executed fully on the user computer, partly be executed on the user computer, as an independence
Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or
It is executed on server.In situations involving remote computers, remote computer can pass through the network of any kind --- packet
It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit
It is connected with ISP by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in embodiment of the disclosure can be realized by way of software, can also be passed through
The mode of hardware is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor
Including state detection unit, mode determination unit and data processing unit.Wherein, the title of these units is under certain conditions simultaneously
The restriction to the unit itself is not constituted, for example, state detection unit is also described as, " audio of detection car-mounted terminal is broadcast
Put the unit whether state changes ".
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (12)
1. a kind of method for handling data, which comprises
Whether the audio broadcast state of detection car-mounted terminal changes;
In response to detecting that the audio broadcast state of the car-mounted terminal changes, determine at data corresponding with state change
Reason mode;
Obtain original audio data to be played, according to identified data processing method to acquired original audio data into
Row smoothing processing.
2. according to the method described in claim 1, wherein, the audio broadcast state in response to detecting the car-mounted terminal
It changes, determines data processing method corresponding with state change, comprising:
In response to detecting that the audio broadcast state of the car-mounted terminal is switched to broadcast state by idle state, determine corresponding
Data processing method is audio amplitude from the low processing mode gradually got higher.
3. according to the method described in claim 2, wherein, the audio broadcast state in response to detecting the car-mounted terminal
It changes, determines data processing method corresponding with state change, further includes:
In response to detecting that the audio broadcast state of the car-mounted terminal is switched to idle state by broadcast state, determine corresponding
Data processing method is the processing mode that audio amplitude is gradually lower from height.
4. according to the method described in claim 1, wherein, the car-mounted terminal include for from it is external obtain it is to be played original
The buffer area of the data acquisition module of audio data and the original audio data for caching the data acquisition module acquisition;With
And
It is described to obtain original audio data to be played, comprising:
If being cached with the original audio data of preset byte length in the buffer area, it is long that preset byte is obtained from the buffer area
The original audio data of degree.
5. described to obtain original audio data to be played according to the method described in claim 4, wherein, further includes:
If the data in the buffer area are sky, notify the data acquisition module data cached;
The original audio data of preset byte length is obtained from the buffer area.
6. a kind of for handling the device of data, described device includes:
Whether state detection unit, the audio broadcast state for being configured to detect car-mounted terminal change;
Mode determination unit is configured in response to detect that the audio broadcast state of the car-mounted terminal changes, and determines
Data processing method corresponding with state change;
Data processing unit is configured to obtain original audio data to be played, according to identified data processing method pair
Acquired original audio data is smoothed.
7. device according to claim 6, wherein the mode determination unit includes:
First method determining module is configured in response to detect the audio broadcast state of the car-mounted terminal by idle state
It is switched to broadcast state, determines that corresponding data processing method is audio amplitude from the low processing mode gradually got higher.
8. device according to claim 7, wherein the mode determination unit further include:
Second method determining module is configured in response to detect the audio broadcast state of the car-mounted terminal by broadcast state
It is switched to idle state, determines that corresponding data processing method is the processing mode that audio amplitude is gradually lower from height.
9. device according to claim 6, wherein the car-mounted terminal include for from it is external obtain it is to be played original
The buffer area of the data acquisition module of audio data and the original audio data for caching the data acquisition module acquisition;With
And
It is described to obtain original audio data to be played, comprising:
If being cached with the original audio data of preset byte length in the buffer area, it is long that preset byte is obtained from the buffer area
The original audio data of degree.
10. device according to claim 9, wherein described to obtain original audio data to be played, further includes:
If the data in the buffer area are sky, notify the data acquisition module data cached;
The original audio data of preset byte length is obtained from the buffer area.
11. a kind of electronic equipment, comprising:
One or more processors;
Storage device is stored thereon with one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that the program is executed by processor
Shi Shixian method for example as claimed in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910223981.9A CN109951729A (en) | 2019-03-22 | 2019-03-22 | Method and apparatus for handling data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910223981.9A CN109951729A (en) | 2019-03-22 | 2019-03-22 | Method and apparatus for handling data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109951729A true CN109951729A (en) | 2019-06-28 |
Family
ID=67011375
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910223981.9A Pending CN109951729A (en) | 2019-03-22 | 2019-03-22 | Method and apparatus for handling data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109951729A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111681640A (en) * | 2020-05-29 | 2020-09-18 | 北京百度网讯科技有限公司 | Broadcast text determination method, device, equipment and medium |
CN114121050A (en) * | 2021-11-30 | 2022-03-01 | 云知声智能科技股份有限公司 | Audio playing method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104538047A (en) * | 2015-02-03 | 2015-04-22 | 环旭电子股份有限公司 | Audio control method of portable electronic device |
CN104683920A (en) * | 2015-01-30 | 2015-06-03 | 惠州市德赛西威汽车电子有限公司 | Method and device for realizing smooth rise and fall of sound volume |
CN108449057A (en) * | 2013-09-12 | 2018-08-24 | 意法半导体研发(深圳)有限公司 | The method and circuit of POP noises are removed in audio frequency apparatus |
-
2019
- 2019-03-22 CN CN201910223981.9A patent/CN109951729A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108449057A (en) * | 2013-09-12 | 2018-08-24 | 意法半导体研发(深圳)有限公司 | The method and circuit of POP noises are removed in audio frequency apparatus |
CN104683920A (en) * | 2015-01-30 | 2015-06-03 | 惠州市德赛西威汽车电子有限公司 | Method and device for realizing smooth rise and fall of sound volume |
CN104538047A (en) * | 2015-02-03 | 2015-04-22 | 环旭电子股份有限公司 | Audio control method of portable electronic device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111681640A (en) * | 2020-05-29 | 2020-09-18 | 北京百度网讯科技有限公司 | Broadcast text determination method, device, equipment and medium |
CN111681640B (en) * | 2020-05-29 | 2023-09-15 | 阿波罗智联(北京)科技有限公司 | Method, device, equipment and medium for determining broadcast text |
CN114121050A (en) * | 2021-11-30 | 2022-03-01 | 云知声智能科技股份有限公司 | Audio playing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11935534B2 (en) | Voice recognition system for use with a personal media streaming appliance | |
US20210074289A1 (en) | Voice recognition system for use with a personal media streaming appliance | |
US20190066671A1 (en) | Far-field speech awaking method, device and terminal device | |
EP3614383A1 (en) | Audio data processing method and apparatus, and storage medium | |
JP2021530147A (en) | How to select background music to shoot video, devices, terminals and media | |
CN106910510A (en) | Vehicle-mounted power amplifying device, vehicle and its audio play handling method | |
CN107659637B (en) | Sound effect setting method and device, storage medium and terminal | |
CN109243488B (en) | Audio detection method, device and storage medium | |
CN110097895B (en) | Pure music detection method, pure music detection device and storage medium | |
WO2022042634A1 (en) | Audio data processing method and apparatus, and device and storage medium | |
CN109582274B (en) | Volume adjusting method and device, electronic equipment and computer readable storage medium | |
CN109951729A (en) | Method and apparatus for handling data | |
CN109817214B (en) | Interaction method and device applied to vehicle | |
CN112259076B (en) | Voice interaction method, voice interaction device, electronic equipment and computer readable storage medium | |
CN109639907A (en) | Method and apparatus for handling information | |
CN110138654A (en) | Method and apparatus for handling voice | |
CN108829370A (en) | Sound resource playback method, device, computer equipment and storage medium | |
US20220284914A1 (en) | Method for denoising voice data, device, and storage medium | |
WO2023000778A1 (en) | Audio signal processing method and related electronic device | |
CN113542785B (en) | Switching method for input and output of audio applied to live broadcast and live broadcast equipment | |
JP6339132B2 (en) | Integration of audio content with additional digital content | |
CN113793625A (en) | Audio playing method and device | |
CN113495712A (en) | Automatic volume adjustment method, apparatus, medium, and device | |
CN113593619B (en) | Method, apparatus, device and medium for recording audio | |
CN110289010B (en) | Sound collection method, device, equipment and computer storage medium |
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: 20211009 Address after: 100176 101, floor 1, building 1, yard 7, Ruihe West 2nd Road, economic and Technological Development Zone, Daxing District, Beijing Applicant after: Apollo Zhilian (Beijing) Technology Co., Ltd Address before: 100085 third floor, baidu building, No. 10, Shangdi 10th Street, Haidian District, Beijing Applicant before: Baidu Online Network Technology (Beijing) Co., Ltd |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190628 |