Volume adjustment method and device, electronic equipment and computer readable storage medium

By monitoring and recording the difference between the timestamp when the short sound source stops playing and the current timestamp, it is possible to conveniently adjust the volume of the short sound source during driving, solving the problem of users being unable to adjust the played volume, improving the car experience and ensuring safety. Driving safety.

CN118796146AInactive Publication Date: 2024-10-18HOZON NEW ENERGY AUTOMOBILE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410968669.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

During driving, users cannot conveniently adjust the volume of the played short audio source, and adjusting the volume through the central control screen poses safety risks and cumbersome operations.

Method used

By monitoring and recording the timestamp when the short sound source stops playing while the vehicle is driving, and recording the current timestamp when receiving a volume adjustment instruction, if the difference between the two is not greater than the preset time difference threshold, the volume of the short sound source is adjusted to avoid Complex operations and ensuring driving safety.

Benefits of technology

It realizes convenient volume adjustment after the short sound source broadcast ends, reduces operational complexity and safety risks, improves the car experience, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796146A_ABST
    Figure CN118796146A_ABST
Patent Text Reader

Abstract

The invention discloses a volume adjusting method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: monitoring and recording a first timestamp at the moment when a short sound source stops playing when the broadcast of the short sound source is started in a vehicle driving process; recording a second timestamp at the current moment in response to a volume adjustment instruction received by the vehicle; and if the difference value between the second timestamp and the first timestamp is not greater than a preset time difference threshold value, adjusting the volume of the short sound source based on the volume adjustment instruction. By means of the method, the volume of the short sound source can be adjusted within a short time after the short sound source is broadcasted, so that complex operation in the driving process is avoided, and the cost is reduced while the driving safety is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of automobile technology and relates to a volume adjustment method, device, electronic equipment and computer-readable storage medium. Background Art

[0002] Voice announcement technology is highly mature in new energy vehicles currently on the market, and is commonly used in various applications, such as intelligent navigation, vehicle fault alerts, and driving regulations, meeting various user needs. Within the smart cockpit, audio sources interact frequently, typically including media, navigation, voice, phone calls, and system notifications. When no audio source is currently playing, the volume buttons on the vehicle's central control typically default to adjusting the media volume. However, in driving scenarios involving voice and navigation announcements, these are short audio sources that end quickly. If the driver attempts to adjust the volume using the vehicle's central control buttons, the system volume will default to adjusting the system volume, as these short audio sources have already finished playing. This prevents the user from conveniently adjusting the volume of the already playing short audio source, degrading the driving experience. Furthermore, accessing the system settings on the central control screen to change the volume of a specific short audio source while driving is not only cumbersome but also poses a significant safety hazard.

[0003] Therefore, it is necessary to provide an improved technical solution to overcome the above technical problems existing in the prior art. Summary of the Invention

[0004] The purpose of this application is to provide a volume adjustment method, device, electronic device and computer-readable storage medium, which can adjust the volume of a short sound source within a short time after the short sound source broadcast ends, thereby avoiding complex operations during driving, ensuring driving safety and reducing costs.

[0005] To achieve the above objectives:

[0006] In a first aspect, the present invention provides a volume adjustment method, comprising:

[0007] When a short sound source is played while the vehicle is moving, monitoring and recording the first timestamp of the moment when the short sound source stops playing;

[0008] In response to the vehicle receiving a volume adjustment instruction, recording a second timestamp of the current moment;

[0009] If the difference between the second timestamp and the first timestamp is not greater than a preset time difference threshold, the volume of the short sound source is adjusted based on the volume adjustment instruction.

[0010] In one embodiment, monitoring and recording the first timestamp of the time when the short sound source stops playing includes:

[0011] Monitor the audio stream of the short sound source through a preset callback function;

[0012] When the audio stream of the short sound source stops playing, the first timestamp of the stop playing moment is recorded.

[0013] In one embodiment, monitoring the audio stream of the short sound source through a preset callback function includes:

[0014] Initialize and register the callback function for monitoring the audio streams of various sound sources of the vehicle;

[0015] When the short sound source is turned on during the driving of the vehicle, the callback function is executed to monitor the audio stream of the short sound source.

[0016] In one embodiment, the first timestamp recording the moment when playback stops includes:

[0017] Determine whether the audio stream of the short sound source stops playing by the callback function;

[0018] If so, record the first timestamp of the moment when playback stops.

[0019] In one embodiment, the second timestamp recording the current moment includes:

[0020] In response to the vehicle receiving a volume adjustment instruction, the second timestamp is obtained through a preset processing function.

[0021] In one embodiment, after adjusting the volume of the short sound source based on the volume adjustment instruction, the method further includes:

[0022] If the difference between the second timestamp and the first timestamp is greater than a preset time difference threshold, the volume of the currently broadcasting sound source is adjusted based on the volume adjustment instruction.

[0023] In one embodiment, after adjusting the volume of the currently broadcasting sound source based on the volume adjustment instruction, the method further includes:

[0024] If there is no currently broadcasting sound source, the media volume of the vehicle is adjusted based on the volume adjustment instruction.

[0025] In a second aspect, the present invention provides a volume adjustment device, comprising:

[0026] A first timestamp recording module is used to monitor and record the first timestamp of the moment when the short sound source stops playing when the short sound source is started during the vehicle driving;

[0027] a second timestamp recording module, configured to record a second timestamp at a current moment in response to the vehicle receiving a volume adjustment instruction;

[0028] The volume adjustment execution module is configured to adjust the volume of the short sound source based on the volume adjustment instruction if the difference between the second timestamp and the first timestamp is not greater than a preset time difference threshold.

[0029] In one embodiment, the first timestamp recording module specifically includes:

[0030] Monitor the audio stream of the short sound source through a preset callback function;

[0031] When the audio stream of the short sound source stops playing, the first timestamp of the stop playing moment is recorded.

[0032] In one embodiment, the first timestamp recording module specifically includes:

[0033] Initialize and register the callback function for monitoring the audio streams of various sound sources of the vehicle;

[0034] When the short sound source is turned on during the driving of the vehicle, the callback function is executed to monitor the audio stream of the short sound source.

[0035] In one embodiment, the first timestamp recording module specifically includes:

[0036] Determine whether the audio stream of the short sound source stops playing by the callback function;

[0037] If so, record the first timestamp of the moment when playback stops.

[0038] In one embodiment, the second timestamp recording module specifically includes:

[0039] In response to the vehicle receiving a volume adjustment instruction, the second timestamp is obtained through a preset processing function.

[0040] In a third aspect, the present application provides an electronic device, comprising:

[0041] processor;

[0042] a memory for storing executable instructions;

[0043] The processor is configured to execute the instructions to implement the volume adjustment method as described in the first aspect.

[0044] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the instructions in the computer-readable storage medium are executed by a processor, the volume adjustment method as described in the first aspect is implemented.

[0045] The present application provides a volume adjustment method, device, electronic device, and computer-readable storage medium. The method includes: when a short sound source is broadcast while a vehicle is driving, monitoring and recording a first timestamp of the moment when the short sound source stops playing; in response to the vehicle receiving a volume adjustment command, recording a second timestamp of the current moment; if the difference between the second timestamp and the first timestamp is not greater than a preset time difference threshold, adjusting the volume of the short sound source based on the volume adjustment command. Through the above method, the volume of the short sound source can be adjusted within a short period of time after the short sound source broadcast ends, thereby avoiding complex operations during driving, ensuring driving safety, and reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.

[0047] Figure 1 A flow chart of a volume adjustment method provided in an embodiment of the present invention;

[0048] Figure 2 A schematic structural diagram of a volume adjustment system provided by an embodiment of the present invention;

[0049] Figure 3 A schematic structural diagram of a volume adjustment device provided in an embodiment of the present invention;

[0050] Figure 4 A schematic diagram of an interactive application scenario of the volume adjustment device provided by an embodiment of the present invention;

[0051] Figure 5 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0052] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of systems and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0053] It should be noted that in this article, step codes such as S110 and S120 are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial limitation on the order. Those skilled in the art may execute S120 first and then S110 during specific implementation, but these should all be within the scope of protection of this application.

[0054] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] like Figure 1 As shown, an embodiment of the present application provides a volume adjustment method, including:

[0056] Step S110 , when a short sound source is started to be broadcasted while the vehicle is traveling, a first timestamp of when the short sound source stops playing is monitored and recorded.

[0057] As you can understand, short audio sources are relatively short-duration audio sources, typically appearing in smart vehicles in the form of voice prompts, voice navigation, etc. Because of their short duration and irregular broadcasting times, short audio sources in vehicles are highly timely, serving as reminders to vehicle users.

[0058] In one embodiment, monitoring and recording the first timestamp of the time when the short sound source stops playing includes:

[0059] The audio stream of the short sound source is monitored through a preset callback function; when the audio stream of the short sound source stops playing, the first timestamp of the stop playing moment is recorded.

[0060] In one embodiment, monitoring the audio stream of the short sound source through a preset callback function includes:

[0061] Initialize and register the callback function for monitoring the audio streams of various sound sources of the vehicle; when the short sound source broadcast is turned on during the driving of the vehicle, execute the callback function to monitor the audio stream of the short sound source.

[0062] In one embodiment, the first timestamp recording the moment when playback stops includes:

[0063] Determine whether the audio stream of the short sound source stops playing through the callback function; if so, record the first timestamp of the stop playing moment.

[0064] It is understood that the vehicle audio module initializes and registers a preset callback function to monitor the state changes of the audio streams of various audio sources in the audio system. When the vehicle starts playing a short sound source, the registered callback function is executed to check whether the audio stream of the short sound source has stopped playing and record the first timestamp of the stop.

[0065] Step S120 : In response to the vehicle receiving the volume adjustment instruction, recording a second timestamp of the current moment.

[0066] In one embodiment, the second timestamp recording the current moment includes:

[0067] In response to the vehicle receiving a volume adjustment instruction, the second timestamp is obtained through a preset processing function.

[0068] It can be understood that when the user inputs the volume adjustment command, the car audio module obtains the second timestamp of the current system time through a preset processing function, and calculates the difference between the second timestamp and the first timestamp. The obtained time difference is the length of time from the end of the short sound source broadcast to the current time.

[0069] Preferably, when a user needs to conveniently adjust the volume of a short sound source within a short period of time after the short sound source has finished playing, they can do so using the volume button on the vehicle's central control panel. A pre-set processing function, in response to the volume button being pressed, records a second timestamp of the current system time. Compared to the traditional method of accessing the system volume settings through the vehicle's central control panel and then finding a specific short sound source to adjust the volume, the method provided in this application is more convenient and can adjust the volume of a short sound source through simple button operations during driving, which requires the driver's high concentration. This not only ensures driving safety but also improves the user's driving experience.

[0070] Step S130: If the difference between the second timestamp and the first timestamp is not greater than a preset time difference threshold, the volume of the short sound source is adjusted based on the volume adjustment instruction.

[0071] In one embodiment, after adjusting the volume of the short sound source based on the volume adjustment instruction, the method further includes:

[0072] If the difference between the second timestamp and the first timestamp is greater than a preset time difference threshold, the volume of the currently broadcasting sound source is adjusted based on the volume adjustment instruction.

[0073] In one embodiment, after adjusting the volume of the currently broadcasting sound source based on the volume adjustment instruction, the method further includes:

[0074] If there is no currently broadcasting sound source, the media volume of the vehicle is adjusted based on the volume adjustment instruction.

[0075] It can be understood that a time difference threshold is defined through the vehicle audio module and combined with product requirements. If the calculated difference between the second timestamp and the first timestamp is not greater than the time difference threshold, the system determines that the user wants to adjust the volume of the short sound source that has been played; if the difference between the second timestamp and the first timestamp is greater than the time difference threshold, the volume of the system media is adjusted directly according to the volume adjustment instruction.

[0076] Optionally, the present application can set the time difference threshold through configurability, so that the configuration parameters can be directly modified according to different products and user preferences, thereby effectively reducing costs.

[0077] Through the above method, when a short sound source is turned on during vehicle driving, by monitoring the sound source stream of the short sound source, the time from the end of the short sound source broadcast to the current moment when the user inputs the volume adjustment command can be accurately calculated, and combined with the preset time difference threshold, it can be determined whether to continue to adjust the volume of the short sound source that has stopped broadcasting, thereby avoiding complex operations during driving, ensuring driving safety and reducing costs.

[0078] Based on the aforementioned inventive concept, the present application provides a volume adjustment system, such as Figure 2 As shown, the system includes a volume button 210, an audio module 220, a processing function 221, a short sound source 230 and a medium 240, and the volume adjustment method includes:

[0079] First, when the short sound source 230 starts to broadcast, the preset processing function 221 in the audio module 220 starts to monitor the audio stream of the short sound source 230; when the audio stream of the short sound source 230 stops, the processing function 221 records the first timestamp when it stops.

[0080] Secondly, in response to the user inputting a volume adjustment instruction through the volume button 210, the processing function 221 records a second timestamp of the current system time.

[0081] Finally, if the difference between the second timestamp and the first timestamp is not greater than the preset time difference threshold, the volume of the short sound source 230 is adjusted through the audio module 220 in combination with the volume adjustment instruction; if the difference between the second timestamp and the first timestamp is greater than the preset time difference threshold, the volume of the media 240 is adjusted through the audio module 220 in combination with the volume adjustment instruction.

[0082] Based on the same inventive concept as the above embodiments, the present application provides a volume adjustment device. Figure 3 , is a volume adjustment device provided in an embodiment of the present application. The volume adjustment device can be implemented in software and / or hardware, such as electronic devices and components such as vehicle terminals and electronic control units. The device includes:

[0083] The first timestamp recording module 31 is configured to monitor and record a first timestamp of when a short sound source stops playing when the short sound source is started during vehicle driving.

[0084] The second timestamp recording module 32 is configured to record a second timestamp at a current moment in response to the vehicle receiving a volume adjustment instruction.

[0085] The volume adjustment execution module 33 is configured to adjust the volume of the short sound source based on the volume adjustment instruction if the difference between the second timestamp and the first timestamp is not greater than a preset time difference threshold.

[0086] In one embodiment, the first timestamp recording module 31 specifically includes:

[0087] The audio stream of the short sound source is monitored through a preset callback function; when the audio stream of the short sound source stops playing, the first timestamp of the stop playing moment is recorded.

[0088] In one embodiment, the first timestamp recording module 31 specifically includes:

[0089] Initialize and register the callback function for monitoring the audio streams of various sound sources of the vehicle; when the short sound source broadcast is turned on during the driving of the vehicle, execute the callback function to monitor the audio stream of the short sound source.

[0090] In one embodiment, the first timestamp recording module 31 specifically includes:

[0091] Determine whether the audio stream of the short sound source stops playing through the callback function; if so, record the first timestamp of the stop playing moment.

[0092] In one embodiment, the second timestamp recording module 32 specifically includes:

[0093] In response to the vehicle receiving a volume adjustment instruction, the second timestamp is obtained through a preset processing function.

[0094] Based on the above invention concept, the following is a detailed description of the application scenario interaction diagram of the device, see Figure 4 , which is a schematic diagram of an application scenario interaction of the volume adjustment device provided by an embodiment of the present invention.

[0095] like Figure 4 As shown, in step S401, the vehicle starts a short sound source broadcast, and then executes step S402; in step S402, the audio stream playback state change callback is monitored through a preset callback function, and then step S403 is executed; in step S403, the first timestamp when the short sound source broadcast ends is recorded; in step S404, the user adjusts the volume through the volume button, and then step S405 is executed; in step S405, the volume button processing is monitored and the input instruction of the volume button is transmitted, and then step S406 is executed; in step S406, the second timestamp when the volume button is pressed is recorded, and then Execute step S407; in step S407, adjust the volume through the vehicle audio service, and then execute step S408; in step S408, determine whether the time difference between the second timestamp and the first timestamp is greater than the preset time difference threshold, if not, execute step S409, if so, execute step S410; in step S409, adjust the volume of the short sound source; in step S410, determine whether there is a sound source currently being broadcast, if not, execute step S411, if so, execute step S412; in step S411, adjust the media volume; in step S412, adjust the volume of the currently broadcast sound source.

[0096] Based on the same inventive concept as the above embodiments, the present embodiment provides an electronic device, such as Figure 5 As shown, the device includes: a processor 51 and a memory 52 storing a computer program; wherein, Figure 5 The processor 51 shown in the figure is not used to indicate that the number of processors 51 is one, but is only used to indicate the positional relationship of the processor 51 relative to other devices. In actual applications, the number of processors 51 may be one or more; similarly, Figure 5 The memory 52 shown in the figure has the same meaning, that is, it is only used to refer to the position relationship of the memory 52 relative to other components. In actual application, the number of memories 52 can be one or more. When the processor 51 runs the computer program, the volume adjustment method applied to the above device is implemented.

[0097] The device may also include: at least one network interface 53. The various components in the device are coupled together via a bus system 54. It is understood that the bus system 54 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 54 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 5 Various buses are labeled as bus system 54 .

[0098] The memory 52 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a ferromagnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory may be a magnetic disk or a magnetic tape. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).The memory 52 described in the embodiments of the present application is intended to include, but is not limited to, these and any other suitable types of memory.

[0099] Based on the same inventive concept as the above-mentioned embodiment, this embodiment further provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium. The computer-readable storage medium may be a magnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disc, or a read-only optical disc (CD-ROM) or other memory; or it may be various devices including one or any combination of the above-mentioned memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc. When the computer program stored in the computer-readable storage medium is executed by the processor, the above-mentioned method is implemented. For the specific steps implemented when the computer program is executed by the processor, please refer to Figure 1 The description of the illustrated embodiment will not be repeated here.

[0100] In this application, the same or similar terminology, technical solutions and / or application scenario descriptions are generally only described in detail the first time they appear. When they appear again later, they are generally not repeated for the sake of brevity. When understanding the technical solutions and other contents of this application, for the same or similar terminology, technical solutions and / or application scenario descriptions that are not described in detail later, you can refer to the previous relevant detailed descriptions.

[0101] In this application, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0102] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0103] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.

Claims

1. A volume adjustment method, It is characterized in that The method comprises: When a short sound source is broadcasted during vehicle driving, a first timestamp of when the short sound source stops playing is monitored and recorded; In response to the vehicle receiving a volume adjustment instruction, recording a second timestamp of the current moment; If the difference between the second timestamp and the first timestamp is not greater than a preset time difference threshold, the volume of the short sound source is adjusted based on the volume adjustment instruction.

2. The method according to claim 1, It is characterized in that The monitoring and recording of the first timestamp of the moment when the short sound source stops playing comprises: Monitor the audio stream of the short sound source through a preset callback function; When the audio stream of the short sound source stops playing, a first timestamp of the stop playing moment is recorded.

3. The method according to claim 2, It is characterized in that The step of monitoring the audio stream of the short sound source through a preset callback function includes: Initialize and register the callback function for monitoring the audio streams of various sound sources of the vehicle; When the short sound source is broadcasted during the driving of the vehicle, the callback function is executed to monitor the audio stream of the short sound source.

4. The method according to claim 3, It is characterized in that The first timestamp of recording the moment when playback stops includes: Determine whether the audio stream of the short sound source stops playing by the callback function; If so, record the first timestamp of the moment when playback stops.

5. The method according to claim 1, It is characterized in that The second timestamp recording the current time includes: In response to the vehicle receiving a volume adjustment instruction, the second timestamp is acquired through a preset processing function.

6. The method according to claim 1, It is characterized in that After adjusting the volume of the short sound source based on the volume adjustment instruction, the method further includes: If the difference between the second timestamp and the first timestamp is greater than a preset time difference threshold, the volume of the currently broadcasting sound source is adjusted based on the volume adjustment instruction.

7. The method according to claim 6, It is characterized in that After adjusting the volume of the currently broadcasting sound source based on the volume adjustment instruction, the method further includes: If there is no audio source currently being broadcast, the media volume of the vehicle is adjusted based on the volume adjustment instruction.

8. A volume adjustment device, It is characterized in that The device comprises: A first timestamp recording module, used for monitoring and recording a first timestamp of when the short sound source stops playing when the short sound source is started during the driving of the vehicle; A second timestamp recording module, configured to record a second timestamp at a current moment in response to the vehicle receiving a volume adjustment instruction; The volume adjustment execution module is used to adjust the volume of the short sound source based on the volume adjustment instruction if the difference between the second timestamp and the first timestamp is not greater than a preset time difference threshold.

9. An electronic device, It is characterized in that include: A processor and a memory for storing executable instructions; wherein the processor is configured to execute the instructions to implement the volume adjustment method according to any one of claims 1-7.

10. A computer-readable storage medium, It is characterized in that When the instructions in the computer-readable storage medium are executed by a processor, the volume adjustment method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and apparatus for playing audio data

    CN104112459A

  • Volume adjustment method, volume adjustment device and terminal

    CN106714035A

  • Vehicle control method and device, vehicle and storage medium

    CN117922456A

  • Sound volume adjustment method and electronic device

    WO2023087874A1