Vehicle audio source switching method, device, equipment and storage medium
By detecting state changes in the vehicle, obtaining the sound source switching strategy, prioritizing and switching the sound source, the problem of the selection of sound source in the prior art does not meet the user's preferences and improving the user experience.
Patent Information
- Application Number
- CN202411993379.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-08
AI Technical Summary
Existing vehicles fail to select based on user preferences when selecting sound sources, resulting in the selection of sound sources that do not meet the actual usage needs of users, reducing the user's user experience.
By detecting the change in the vehicle state, obtain the sound source switching strategy, prioritize the car's audio sources according to the policy, determine the target sound source, and switch the sound source. This strategy can be combined with factors such as driving scenarios, signal status, device connection status and user preferences.
Ensure that the selected sound source is as consistent with the user's actual usage habits as possible, improves the user's car experience, and avoids the user's manual adjustment of the sound source frequency.
Smart Images

Figure CN119781727A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular to a vehicle-mounted audio source switching method, device, equipment and storage medium. Background Art
[0002] Nowadays, with the development of vehicle technology, when playing music, audio, etc. in a vehicle, multiple sound sources can be used, such as music player software, online radio stations, radios, Bluetooth music, USB music, etc., and currently vehicles generally use the last sound source used in memory as the current sound source.
[0003] However, simply determining the sound source in this way of memory cannot actually ensure that the sound source currently used is the sound source that the user actually wants to use, and the user is required to manually adjust it, which will reduce the user's actual usage experience. Summary of the invention
[0004] The main purpose of this application is to provide a method, device, equipment and storage medium for switching vehicle audio sources, aiming to solve the technical problem that the vehicle audio source selection in the related art is not based on the user's preferences and is difficult to meet the user's actual usage needs.
[0005] To achieve the above purpose, the present application proposes a method for switching vehicle audio sources, the method comprising:
[0006] When a change in vehicle status is detected, obtaining a sound source switching strategy, wherein the vehicle status includes at least one of a driving status, a signal status, and a device connection status;
[0007] Prioritize each vehicle-mounted sound source in the vehicle according to the sound source switching strategy, and generate a sound source sorting result;
[0008] Determine the target sound source according to the sound source sorting result;
[0009] The sound source used in the vehicle is switched to the target sound source.
[0010] Optionally, the prioritizing each vehicle-mounted sound source in the vehicle according to the sound source switching strategy to generate a sound source sorting result includes:
[0011] Determine at least one audio source sorting dimension according to the state matching strategy;
[0012] Prioritize each vehicle-mounted sound source in the vehicle based on at least one sound source sorting dimension to generate at least one dimensional sorting result, wherein the sound source sorting dimension includes at least one of a driving scene, a signal state, a device connection state, and a user preference;
[0013] The sorting results of each dimension are integrated to generate the sound source sorting results.
[0014] Optionally, the audio source sorting dimension is user preference;
[0015] The prioritizing of each vehicle-mounted sound source in the vehicle based on at least one sound source sorting dimension to generate at least one dimensional sorting result includes:
[0016] Obtain the historical audio source usage records of vehicle users;
[0017] Determine the audio source usage information corresponding to each vehicle audio source according to the historical audio source usage record, wherein the audio source usage information includes at least one of the audio source usage frequency, the audio source usage duration, the volume adjustment times, and the content switching times;
[0018] Generate a frequency ranking score, a duration usage score, an adjustment frequency score and / or a switching frequency score corresponding to each vehicle-mounted audio source based on the audio source usage information;
[0019] Constructing a total ranking score corresponding to each vehicle audio source according to the frequency ranking score, the duration usage score, the adjustment frequency score and / or the switching frequency score;
[0020] According to the total ranking scores corresponding to each in-vehicle audio source, each in-vehicle audio source is sorted from high to low to generate a dimensional sorting result corresponding to the user preference.
[0021] Optionally, constructing a total ranking score corresponding to each vehicle audio source according to the frequency ranking score, the duration usage score, the adjustment frequency score and / or the switching frequency score includes:
[0022] Match the current time with each preset usage period to determine the target usage period;
[0023] Finding the ranking weight information of the target usage period;
[0024] Based on the ranking weight information, the frequency ranking score, the duration usage score, the adjustment frequency score and / or the switching frequency score are weighted and summed to generate a total ranking score corresponding to each vehicle audio source.
[0025] Optionally, the step of fusing the sorting results of each dimension to generate a sound source sorting result includes:
[0026] Determine the dimension sorting score rules corresponding to the dimensional sorting results based on the sound source sorting dimensions corresponding to the dimensional sorting results;
[0027] Determine the dimension result score corresponding to each vehicle-mounted sound source according to the dimension sorting score rule and the dimension sorting result;
[0028] Generate a total result score corresponding to each vehicle-mounted sound source according to the dimension result score;
[0029] Based on the total result scores corresponding to each vehicle-mounted sound source, each vehicle-mounted sound source is sorted from high to low to generate a sound source sorting result.
[0030] Optionally, the switching the sound source used in the vehicle to the target sound source includes:
[0031] Obtaining the current audio source playback volume of the vehicle;
[0032] Determine the volume step value according to the playback volume of the sound source and the preset volume adjustment duration;
[0033] gradually reducing the volume of the current sound source according to the volume step value, and loading the playback data of the target sound source;
[0034] When the playback volume of the current sound source is reduced to a preset value, the sound source used in the vehicle is switched to the target sound source, and the playback data is played;
[0035] The volume of the target sound source is gradually increased according to the volume step value to the sound source playback volume.
[0036] Optionally, the step of gradually reducing the volume of the current sound source according to the volume step value and loading the playback data of the target sound source includes:
[0037] Detecting whether there is a weak signal area in front of the vehicle;
[0038] If so, detecting whether the current sound source is a cached sound source;
[0039] If it is a cached sound source, the cache playback time of the current sound source is determined, and the area passing time corresponding to the weak signal area is determined according to the current speed of the vehicle;
[0040] If the buffered playback duration is less than the area passing duration, the volume of the current sound source is gradually reduced by the volume step value, and the playback data of the target sound source is loaded.
[0041] In addition, to achieve the above-mentioned purpose, the present application also provides a vehicle-mounted audio source switching device, the device comprising:
[0042] A detection module, used to obtain a sound source switching strategy when a change in vehicle status is detected;
[0043] A sorting module, used to prioritize the vehicle-mounted sound sources in the vehicle according to the sound source switching strategy and generate a sound source sorting result;
[0044] A determination module, used to determine a target sound source according to the sound source sorting result;
[0045] A switching module is used to switch the sound source used in the vehicle to the target sound source.
[0046] In addition, to achieve the above-mentioned purpose, the present application also provides a vehicle-mounted audio source switching device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle-mounted audio source switching method as described above.
[0047] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the vehicle audio source switching method as described above are implemented.
[0048] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the vehicle audio source switching method described above are implemented.
[0049] One or more technical solutions proposed in this application have at least the following technical effects:
[0050] Since it does not directly remember the audio source used by the user last time, it analyzes whether each audio source is available based on the audio source switching strategy, and prioritizes each in-vehicle audio source based on the user's usage preferences. Then, it selects the target audio source for source switching based on the sorting results, ensuring that the audio source used is as close to the user's actual usage habits as possible, thereby improving the user's car experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0052] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0053] Figure 1 A flowchart of the first embodiment of the vehicle audio source switching method of the present application is provided;
[0054] Figure 2 A flowchart of the second embodiment of the vehicle audio source switching method of the present application is provided;
[0055] Figure 3A flowchart of the third embodiment of the vehicle audio source switching method of the present application is provided;
[0056] Figure 4 This is a schematic diagram of the module structure of the vehicle-mounted audio source switching device according to an embodiment of the present application;
[0057] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the vehicle audio source switching method in the embodiment of the present application.
[0058] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0059] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0060] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0061] Based on this, the embodiment of the present application provides a method for switching a vehicle audio source, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the vehicle audio source switching method of the present application.
[0062] In this embodiment, the vehicle audio source switching method includes steps S10 to S40:
[0063] Step S10: When a change in the vehicle state is detected, an audio source switching strategy is obtained.
[0064] It should be noted that the executor of this embodiment can be the vehicle itself, or it can be a vehicle-mounted audio source switching device that is arranged in the vehicle and can control the vehicle. The vehicle-mounted audio source switching device can be a controller arranged in the vehicle, such as an ECU controller, or other devices that can achieve the same or similar functions. This embodiment is not limited to this. In this embodiment and the following embodiments, the vehicle-mounted audio source switching method of this application is explained by taking the vehicle-mounted audio source switching device as an example.
[0065] It should be noted that the audio source switching strategy can be pre-set by the manager of the vehicle-mounted audio source switching device or the vehicle user to specify the strategy for switching the audio source. The strategy can be set based on at least one audio source sorting dimension, and the audio source sorting dimension can include at least one of the driving scene, signal status, device connection status, and user preference.
[0066] In a specific implementation, since each audio source switch requires corresponding resources to be consumed for calculation and sorting, in order to avoid unnecessary calculations, step S10 of this embodiment and subsequent steps may be executed only when the state of the vehicle changes.
[0067] The vehicle status may include at least one of a driving status, a signal status, and a device connection status;
[0068] The change in vehicle status may be a change in the driving status of the vehicle, such as a change in the type of the driving section, a change in speed from a preset range to another speed range, etc.;
[0069] Of course, the signal state of the vehicle may also change, such as the network signal strength changes from one interval to another interval, such as the network signal strength changes from the 60%-80% interval to the 20%-40% interval;
[0070] Alternatively, the state of the connected device may change, such as Bluetooth changing from a connected state to an unconnected state, or from an unconnected state to a connected state; or a USB device changing from a connected state to an unconnected state, or from an unconnected state to a connected state.
[0071] Step S20: Prioritizing each vehicle-mounted audio source in the vehicle according to the audio source switching strategy to generate an audio source ranking result.
[0072] In actual use, the vehicle user's usage habits of each vehicle-mounted audio source can be determined according to the audio source switching strategy to determine the vehicle user's preferences for each vehicle-mounted audio source, and the vehicle-mounted audio sources can be prioritized based on the preference to generate an audio source sorting result.
[0073] And / or, the availability of each audio source is evaluated according to the audio source switching strategy, and each vehicle audio source is prioritized according to the availability, thereby generating an audio source ranking result.
[0074] Step S30: determining a target sound source according to the sound source sorting result.
[0075] Step S40: Switch the sound source used in the vehicle to the target sound source.
[0076] In actual use, the vehicle-mounted sound source ranked first in the sound source sorting result can be used as the target sound source.
[0077] It is understandable that after determining the target sound source, the sound source used in the vehicle can be switched to the target sound source, for example, the sound source previously used in the vehicle is turned off and the target sound source is turned on.
[0078] In a specific implementation, in order to avoid reducing the user experience, before switching the audio source, a pop-up window or voice prompt may be provided to remind the user that the audio source is about to be switched. If necessary, the user may be prompted to confirm, and after confirmation, the audio source is switched to the target audio source.
[0079] In actual use, each time the sound source is switched for the user, it can also record whether the user manually adjusts the sound source, to ensure that the user frequently manually adjusts the sound source after switching, and the relevant record data of the user's preferences can be updated in time.
[0080] This embodiment provides a method for switching in-vehicle audio sources. Instead of directly memorizing the audio source used by the user last time, the method analyzes whether each audio source is available based on the audio source switching strategy, and prioritizes each in-vehicle audio source based on the user's usage preferences. Then, the target audio source is selected for audio source switching based on the sorting result, thereby ensuring that the audio source used is as close to the user's actual usage habits as possible, thereby improving the user's car experience.
[0081] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 2 , step S20 includes steps S201 to S203:
[0082] Step S201: determining at least one audio source sorting dimension according to the state matching strategy.
[0083] Step S202: Prioritize each vehicle-mounted sound source in the vehicle based on at least one sound source sorting dimension, and generate at least one dimensional sorting result.
[0084] It should be noted that in some cases, some sound sources cannot be used or the effect is poor (for example, in underground garages or tunnels, some sound sources are difficult to obtain playback data, which may result in failure to play or noise during playback). At this time, more sound source sorting dimensions need to be introduced to avoid selecting inappropriate sound sources and reducing the user's actual usage experience.
[0085] Different driving scenarios may require different sound sources. The signal status may cause some sound sources to be unstable. At the same time, the device connection status may make some sound sources unavailable. For example, if Bluetooth is not connected, the Bluetooth sound source cannot be used. Therefore, the sound source sorting dimension may include at least one of the driving scenario, signal status, and device connection status.
[0086] In actual use, each vehicle-mounted sound source in the vehicle can be prioritized based on the sound source sorting dimension to generate a dimensional sorting result. Among them, if there are multiple sound source sorting dimensions, each vehicle-mounted sound source in the vehicle can be prioritized based on each sound source sorting dimension to generate a dimensional sorting result corresponding to each sound source sorting dimension.
[0087] In a specific implementation, if the audio source sorting dimension is user preference, in order to reasonably calculate the corresponding audio source sorting result, step S202 in this embodiment may include:
[0088] Obtain the historical audio source usage records of vehicle users;
[0089] Determining the audio source usage information corresponding to each vehicle audio source according to the historical audio source usage record;
[0090] Generate a frequency ranking score, a duration usage score, an adjustment frequency score and / or a switching frequency score corresponding to each vehicle-mounted audio source based on the audio source usage information;
[0091] Constructing a total ranking score corresponding to each vehicle audio source according to the frequency ranking score, the duration usage score, the adjustment frequency score and / or the switching frequency score;
[0092] According to the total ranking scores corresponding to each in-vehicle audio source, each in-vehicle audio source is sorted from high to low to generate a dimensional sorting result corresponding to the user preference.
[0093] It should be noted that the audio source usage information includes at least one of the audio source usage frequency, the audio source usage duration, the volume adjustment times, and the content switching times.
[0094] In actual use, the frequency ranking score may be a ratio of the frequency of use of the audio source to the total frequency of use, wherein the total frequency of use may be the sum of the frequency of use of the audio source of each vehicle-mounted audio source;
[0095] The duration usage score may be a ratio of the audio source usage time to the total usage time, wherein the total usage time may be the sum of the audio source usage time of each vehicle audio source;
[0096] The adjustment frequency score may be a ratio of the number of volume increase times to the total number of adjustment times, wherein the number of volume increase times may be the number of times the volume is increased when adjusting the volume of the vehicle audio source, and the total number of adjustment times may be the sum of the number of volume adjustment times of each vehicle audio source;
[0097] The more times the user switches content under the audio source, the less the user likes the audio source, so the switching frequency score is lower. The switching frequency score can be the difference between 1 and the ratio of the number of content switching times of the car audio source to the duration of the audio source use, that is, the switching frequency score of the car audio source W cont=1-t / T, where t is the number of times the content of the vehicle audio source is switched, and T is the duration of use of the vehicle audio source;
[0098] However, if the user switches the audio source too many times, the calculated value of the switching frequency score will become negative, which is not conducive to the overall calculation of the subsequent scores. To avoid this situation, the lower limit of the switching frequency score can be set to 0. At this time, the switching frequency score of the vehicle audio source Wcont = max(0, 1-t / T).
[0099] In a specific implementation, the frequency ranking score, duration usage score, adjustment frequency score and / or switching frequency score corresponding to each vehicle audio source can be weighted and summed, and the obtained sum can be used as the total ranking score corresponding to each vehicle audio source. The weight coefficient used in the weighting can be pre-set by the manager of the vehicle audio source switching device, and the sum of the weight coefficients can be equal to 1.
[0100] In a specific implementation, in order to reasonably determine the total ranking score, the step of constructing the total ranking score corresponding to each vehicle audio source according to the frequency ranking score, the duration usage score, the adjustment frequency score and / or the switching frequency score in this embodiment may include:
[0101] Match the current time with each preset usage period to determine the target usage period;
[0102] Finding the ranking weight information of the target usage period;
[0103] Based on the ranking weight information, the frequency ranking score, the duration usage score, the adjustment frequency score and / or the switching frequency score are weighted and summed to generate a total ranking score corresponding to each vehicle audio source.
[0104] It should be noted that the vehicle user may be the driver currently driving the vehicle, and the historical audio source usage record may be the recorded data of the use of various vehicle audio sources in the vehicle over a period of time before, such as turning on the audio source, turning off the audio source, adjusting the volume, switching the content, and other recorded data.
[0105] Among them, the on-board audio source can be supported by the vehicle and can obtain the source of audio, music and other data; when obtaining the historical audio source usage records, the collection period can be pre-set by the manager of the on-board audio source switching device, for example: the recorded data of the audio source usage in the previous month, three months or six months can be used as the historical audio source usage record.
[0106] At the same time, the vehicle can also be equipped with relevant functions for user identification, such as face recognition, fingerprint recognition, etc., to distinguish each user of the vehicle and isolate the recorded data of each user from each other. When obtaining the historical sound source usage records, the identity of the vehicle user can be determined first, and then the historical sound source usage records of the vehicle user can be obtained to ensure that the recorded data of each vehicle sound source by different vehicle users are independent of each other to avoid data confusion.
[0107] The sorting weight information may include the weight coefficient corresponding to each score during weighted summation.
[0108] In actual use, when the vehicle audio source is used at different time periods, there will generally be certain differences in importance. Based on this, the whole day can be divided into different preset usage time periods, and different sorting weight information can be set for each preset usage time period. Therefore, after determining the frequency sorting score, duration usage score, adjustment frequency score and / or switching frequency score corresponding to each vehicle audio source, the current time can be matched with each preset usage time period to determine the target usage time period, and then the sorting weight information corresponding to the target usage time period is searched, and then the frequency sorting score, duration usage score, adjustment frequency score and / or switching frequency score are weighted and summed according to the sorting weight information to generate a total sorting score corresponding to each vehicle audio source.
[0109] For example, the whole day can be divided into morning, daytime, nighttime and midnight. In the morning, news consultation is generally the main focus, and frequency and volume are more important; in the daytime, music or radio is generally the main focus, and frequency and duration are balanced; at night, the focus tends to be on long-term playback, so that the driver can concentrate, so the duration of the sound source is more important; and at midnight, relaxing music is more popular, at this time, frequency and duration are balanced, and the frequency of content switching can better reflect user preferences. Based on this, the setting of the sorting weight information can be shown in Table 1:
[0110] Table 1
[0111]
[0112]
[0113] At this time, if we assume that the frequency ranking score is W freq , the duration usage score is W time , adjust the frequency score to W vol , the switching frequency score is W cont ;
[0114] Then the total ranking score of each car audio source Sscore=a*W freq +b*W time +c*W vol +d*W cont, and a+b+c+d=1.
[0115] Step S203: merge the sorting results of each dimension to generate a sound source sorting result.
[0116] In actual use, the dimension sorting results corresponding to each sound source sorting dimension can be integrated, and the sorting of the vehicle sound sources under each dimension can be comprehensively considered to generate the final sound source sorting result.
[0117] After the sound source ranking result is determined, the vehicle-mounted sound source ranked first in the sound source ranking result can be used as the target sound source.
[0118] In actual use, for reasonable integration, step S203 in this embodiment may include:
[0119] Determine the dimension sorting score rules corresponding to the dimensional sorting results based on the sound source sorting dimensions corresponding to the dimensional sorting results;
[0120] Determine the dimension result score corresponding to each vehicle-mounted sound source according to the dimension sorting score rule and the dimension sorting result;
[0121] Generate a total result score corresponding to each vehicle-mounted sound source according to the dimension result score;
[0122] Based on the total result scores corresponding to each vehicle-mounted sound source, each vehicle-mounted sound source is sorted from high to low to generate a sound source sorting result.
[0123] It should be noted that different dimension ranking results actually represent different dimensions, such as the availability of the sound source (such as whether it is available, whether it is easy to use, etc.) or user preferences;
[0124] Based on this, different dimensional sorting results play different roles during fusion. Therefore, different dimensional sorting score rules can be set for the sound source sorting results corresponding to different sound source sorting dimensions. During fusion, the dimensional result scores corresponding to each vehicle sound source can be determined based on the dimensional sorting score rules and the dimensional sorting results.
[0125] For example: If the audio source sorting dimension is user preference, then the dimension sorting result actually represents the user's preference. Compared with other audio source sorting dimensions, user preference actually only represents the user's preference. Compared with whether the audio source is available represented by other audio source sorting dimensions, its overall weight should be lower. Therefore, the dimension result score can be set lower. For example: assuming there are 5 types of in-car audio sources, according to the order of the dimension sorting results, the dimension result scores corresponding to each in-car audio source at the user preference level are set to 5, 4, 3, 2, and 1.
[0126] In actual use, different audio source sorting dimensions have corresponding dimension sorting score rules that are actually different. The dimension sorting score rules can be pre-set by the administrator of the vehicle audio source switching device.
[0127] For example, the dimension ranking and scoring rules other than the user preference level can be set as shown in Table 2:
[0128] Table 2
[0129]
[0130] In actual use, for example, assuming that the audio source sorting dimensions include driving scene, signal status, and device connection status, and the vehicle is on a highway, the network signal and the radio signal are normal, the Bluetooth is not connected, and the USB is not connected, then according to Table 2 above, it can be determined that, in addition to user preferences, the dimension result score of the music playback software is 3+0+0=3, the dimension result score of the online radio station is 3+0+0=3, the dimension result score of the radio is 0+0+0=0, the dimension result score of the Bluetooth music is 5+0-10=-5, and the dimension result score of the USB music is 5+0-10=-5;
[0131] If it is determined based on user preferences, the dimensional result score of the music player software is 4, the dimensional result score of the online radio station is 3, the dimensional result score of the radio is 2, the dimensional result score of the Bluetooth music is 5, and the dimensional result score of the USB music is 1. At this time, the total result score of the music player software is 3+4=7, the total result score of the online radio station is 3+3=6, the total result score of the radio is 0+2=2, the total result score of the Bluetooth music is -5+5=0, and the total result score of the USB music is -5+1=-4. The sound source sorting result obtained by the fusion is: music player software-online radio station-radio-Bluetooth music-USB music. At this time, the target sound source is the music player software.
[0132] In actual use, when the user controls the vehicle to connect to a USB audio source or a Bluetooth audio source, the user generally wants to use the connected audio source for playback. At this time, in order to meet the user's actual usage needs as much as possible, if it is detected that the device connection status has changed from unconnected to connected, the connected audio source can be directly used as the target audio source.
[0133] Of course, the above-mentioned method of prioritizing the audio sources may also be continued. For example, in Table 2 above, the score corresponding to the device connection status is set higher. Then, when the device connection status changes, the total result score corresponding to the audio source may be raised by its corresponding score, thereby ensuring that this audio source is selected as the target audio source as much as possible.
[0134] In the specific implementation, whether the sound source selected by the user has locally stored playable music or audio will also affect whether the sound source is available (for example, even if there is no network, the locally stored music or audio can still support the normal use of the sound source). At this time, when giving the corresponding dimension score according to the device connection status, the relevant music or audio data stored locally in the connected sound source can also be considered.
[0135] On this basis, the playback time of the music or audio stored locally in the device can also be considered, and an additional score correction coefficient can be set according to the playback time. Then, the score determined by the dimension sorting score rule is further corrected according to the score correction coefficient, wherein the score correction coefficient can be a value greater than 1 and is positively correlated with the playback time of the locally stored music or audio.
[0136] For example: assuming that the change in the device connection status is that the USB changes from an unconnected state to a connected state, then at this time, according to the dimension sorting score rules corresponding to the device connection status of this audio source sorting dimension in the above Table 2, it can be determined that the dimension result score of the USB audio source is 5. At this time, the playback time of the music or audio locally stored in the USB audio source can be further calculated. If the score correction coefficient determined based on the playback time is 1.2, then at this time, the USB audio source under the device connection status change audio source sorting dimension, the corresponding final dimension result score is 5*1.2=6.
[0137] This embodiment provides a method for switching in-vehicle audio sources. Based on user preferences, the in-vehicle audio sources are sorted in combination with other audio source sorting dimensions, and the sorting results determined in multiple ways are fused. Finally, the target audio source is determined according to the fused audio source sorting results, thereby ensuring that an audio source with higher availability can be selected as the target audio source on the basis of satisfying user preferences, thereby avoiding the phenomenon of being unable to play due to incorrect audio source selection.
[0138] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. Figure 3 , step S40 includes steps S401 to S405:
[0139] Step S401: Acquire the sound source playback volume of the current sound source in the vehicle.
[0140] It should be noted that the current sound source may be the sound source currently used in the vehicle before the sound source is switched, and the sound source playback volume may be the volume used when playing the music or audio of the current sound source. The sound source playback volume may be expressed in percentage.
[0141] Step S402: determining a volume step value according to the sound source playback volume and a preset volume adjustment duration.
[0142] It should be noted that the preset volume adjustment time can be set in advance by the administrator of the vehicle audio source switching device, for example: the preset volume adjustment time is set to 2 seconds.
[0143] In actual use, the volume step value can be determined according to the adjustment frequency supported by the vehicle, the sound source playback volume and the preset volume adjustment time. For example: the vehicle supports 10 volume adjustments per second, and the preset volume adjustment time is 2 seconds, and the sound source playback volume is 80%, then the step value is 4%.
[0144] Step S403: gradually reducing the volume of the current sound source according to the volume step value, and loading the playback data of the target sound source.
[0145] In actual use, after determining the volume step value, the volume of the current sound source can be gradually reduced according to the adjustment frequency and the volume step value to ensure that when the preset volume adjustment time is reached, the volume of the current sound source is reduced to 0, thereby fading out the sound source and gradually reducing the volume to ensure smooth switching of the sound source. At the same time, in the process of gradually reducing the volume, the playback data of the target sound source can be loaded.
[0146] Of course, in some cases, the volume adjustment in the vehicle can be intelligently adjusted, and support curve adjustment through function setting. At this time, the volume of the current sound source at time t Volume(t) = V_inital*(1-t / Tc), where t is the current time, Tc is the preset volume adjustment duration, and V_inital is the sound source playback volume of the current sound source.
[0147] Step S404: When the playback volume of the current sound source is reduced to a preset value, the sound source used in the vehicle is switched to the target sound source, and the playback data is played.
[0148] In actual use, if the volume of the current sound source is reduced to a preset value (the preset value can be 0, or a smaller volume, such as 1%), it means that the volume of the current sound source has been reduced to an almost imperceptible level. At this time, the sound source used in the vehicle can be switched to the target sound source, and the loaded playback data can be played.
[0149] Among them, when switching, the sound source used in the vehicle can be stopped and the target sound source can be started; and when the volume of the current sound source is reduced to a preset value, a prompt can be given, such as playing a "ding" prompt sound, to remind the user that the sound source is about to be switched.
[0150] Step S405: gradually increasing the volume of the target sound source to the sound source playback volume according to the volume step value.
[0151] In actual use, a sudden increase in volume will lead to a decrease in user experience. In order to avoid this situation, after playing the data of the target sound source, the volume of the target sound source can be gradually increased to the sound source playback volume according to the volume step value to ensure that after switching the sound source, the volume can be maintained consistent with that before switching, which is as consistent as possible with the user's usage habits and avoids the user making further adjustments.
[0152] In a specific implementation, in order to ensure reasonable switching of the audio source, step S403 shown in this embodiment may include:
[0153] Detecting whether there is a weak signal area in front of the vehicle;
[0154] If so, detecting whether the current sound source is a cached sound source;
[0155] If it is a cached sound source, the cache playback time of the current sound source is determined, and the area passing time corresponding to the weak signal area is determined according to the current speed of the vehicle;
[0156] If the buffered playback duration is less than the area passing duration, the volume of the current sound source is gradually reduced by the volume step value, and the playback data of the target sound source is loaded.
[0157] It should be noted that the area passing time can be the time required for the vehicle to drive out of the weak signal area. During driving, the vehicle may enter a weak signal area, and a weak signal area may make it difficult to load the playback data of the target sound source. If in this case, direct switching may cause the playback to be interrupted and wait after switching the sound source. In order to avoid this situation, you can first detect whether there is a weak signal area in front of the vehicle. Among them, you can confirm whether there is a weak signal area in front of the vehicle through network maps, navigation information, etc.
[0158] In actual use, if there is no weak signal area in front of the vehicle, step S403 and subsequent steps can be directly executed without additional processing;
[0159] If there is a weak signal area in front of the vehicle, in order to avoid the situation where the playback is interrupted due to direct switching, it is possible to detect whether the current sound source is a cached sound source, that is, to determine whether the current sound source can cache part of the playback data locally for playback by preloading. If the current sound source is not a cached sound source, it is actually impossible to use the cache to avoid the weak signal area at this time, and step S403 and subsequent steps can be directly executed at this time;
[0160] However, if the current sound source is a cached sound source, the cached playback time of the current sound source (i.e., the time during which the cached playback data can be played) can be determined. If the cached playback time is less than the area passing time, it means that the cache is used for playback at this time, and the playback time is actually insufficient to support the vehicle passing through the weak signal area. Therefore, step S403 and subsequent steps can also be directly executed.
[0161] If the buffered playback time is longer than the area passing time, the playback of the current audio source can be maintained until the vehicle exits the weak signal area, and then step S403 and subsequent steps are executed.
[0162] Among them, in order to ensure user experience, when it is determined that the cached playback time is less than the area passing time, it can be further detected whether the cached playback time is greater than the remaining playback time of the song played by the current audio source. If it is greater, the current audio source can use the cache to play until the song is played, and then execute S403 and subsequent steps.
[0163] This embodiment provides a method for switching vehicle audio sources. When switching audio sources, the audio sources are not switched directly, but fade-in and fade-out are used to gradually adjust the volume, thereby avoiding the abrupt feeling of suddenly switching the audio sources and further improving the actual user experience.
[0164] This application also provides a vehicle-mounted audio source switching device, please refer to Figure 4 , the vehicle-mounted sound source switching device comprises:
[0165] The detection module 10 is used to obtain the sound source switching strategy when a change in the vehicle state is detected;
[0166] A sorting module 20, used to prioritize the vehicle-mounted sound sources in the vehicle according to the sound source switching strategy and generate a sound source sorting result;
[0167] A determination module 30, configured to determine a target sound source according to the sound source sorting result;
[0168] The switching module 40 is used to switch the sound source used in the vehicle to the target sound source.
[0169] The vehicle-mounted sound source switching device provided by the present application adopts the vehicle-mounted sound source switching method in the above embodiment, which can solve the technical problem that the vehicle selection sound source in the related art is not selected according to the user's preferences and is difficult to meet the user's actual use needs. Compared with the prior art, the beneficial effects of the vehicle-mounted sound source switching device provided by the present application are the same as the beneficial effects of the vehicle-mounted sound source switching method provided by the above embodiment, and the other technical features of the vehicle-mounted sound source switching device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0170] The present application provides a vehicle-mounted audio source switching device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the vehicle-mounted audio source switching method in the above-mentioned embodiment 1.
[0171] Reference below Figure 5 , which shows a schematic diagram of the structure of a vehicle-mounted audio source switching device suitable for implementing an embodiment of the present application. The vehicle-mounted audio source switching device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The vehicle-mounted audio source switching device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0172] like Figure 5As shown, the vehicle-mounted audio source switching device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM: Read Only Memory) 1002 or the program loaded from the storage device 1003 to the random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the xxx device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the vehicle audio source switching device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a vehicle audio source switching device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0173] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0174] The vehicle-mounted audio source switching device provided by the present application adopts the vehicle-mounted audio source switching method in the above embodiment, which can solve the technical problem that the vehicle selection of audio source in the related art is not based on the user's preferences and is difficult to meet the user's actual use needs. Compared with the prior art, the beneficial effects of the vehicle-mounted audio source switching device provided by the present application are the same as the beneficial effects of the vehicle-mounted audio source switching method provided by the above embodiment, and the other technical features of the vehicle-mounted audio source switching device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0175] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0176] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0177] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the vehicle-mounted audio source switching method in the above-mentioned embodiment.
[0178] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0179] The computer-readable storage medium may be included in the vehicle-mounted audio source switching device; or may exist independently without being assembled into the vehicle-mounted audio source switching device.
[0180] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the vehicle-mounted sound source switching device, the vehicle-mounted sound source switching device: obtains the historical sound source usage record of the vehicle user; prioritizes each vehicle-mounted sound source in the vehicle according to the historical sound source usage record, and generates a sound source sorting result; determines the target sound source according to the sound source sorting result; and switches the sound source used in the vehicle to the target sound source.
[0181] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0182] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0183] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0184] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned vehicle audio source switching method, and can solve the technical problem that the vehicle audio source selection in the related art is not selected according to the user's preferences and is difficult to meet the user's actual use needs. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the vehicle audio source switching method provided by the above-mentioned embodiment, and will not be repeated here.
[0185] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned vehicle audio source switching method when executed by a processor.
[0186] The computer program product provided by this application can solve the technical problem that the vehicle audio source selection in the related art is not based on the user's preferences and is difficult to meet the user's actual use needs. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the vehicle audio source switching method provided by the above embodiment, which will not be repeated here.
[0187] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for switching a vehicle audio source, characterized in that: The method comprises: When a change in vehicle status is detected, obtaining a sound source switching strategy, wherein the vehicle status includes at least one of a driving status, a signal status, and a device connection status; Prioritize each vehicle-mounted sound source in the vehicle according to the sound source switching strategy, and generate a sound source sorting result; Determine the target sound source according to the sound source sorting result; The sound source used in the vehicle is switched to the target sound source.
2. The vehicle-mounted audio source switching method according to claim 1, characterized in that: The step of prioritizing each vehicle-mounted sound source in the vehicle according to the sound source switching strategy and generating a sound source sorting result includes: Determine at least one audio source sorting dimension according to the state matching strategy; Prioritize each vehicle-mounted sound source in the vehicle based on at least one sound source sorting dimension to generate at least one dimensional sorting result, wherein the sound source sorting dimension includes at least one of a driving scene, a signal state, a device connection state, and a user preference; The sorting results of each dimension are integrated to generate the sound source sorting results.
3. The vehicle-mounted audio source switching method according to claim 2, characterized in that: The audio source sorting dimension is user preference; The prioritizing of each vehicle-mounted sound source in the vehicle based on at least one sound source sorting dimension to generate at least one dimensional sorting result includes: Obtain the historical audio source usage records of vehicle users; Determine the audio source usage information corresponding to each vehicle audio source according to the historical audio source usage record, wherein the audio source usage information includes at least one of the audio source usage frequency, the audio source usage duration, the volume adjustment times, and the content switching times; Generate a frequency ranking score, a duration usage score, an adjustment frequency score and / or a switching frequency score corresponding to each vehicle-mounted audio source based on the audio source usage information; Constructing a total ranking score corresponding to each vehicle audio source according to the frequency ranking score, the duration usage score, the adjustment frequency score and / or the switching frequency score; According to the total ranking scores corresponding to each in-vehicle audio source, each in-vehicle audio source is sorted from high to low to generate a dimensional sorting result corresponding to the user preference.
4. The vehicle-mounted audio source switching method according to claim 3, characterized in that: The constructing the total ranking score corresponding to each vehicle audio source according to the frequency ranking score, the duration usage score, the adjustment frequency score and / or the switching frequency score includes: Match the current time with each preset usage period to determine the target usage period; Finding the ranking weight information of the target usage period; Based on the ranking weight information, the frequency ranking score, the duration usage score, the adjustment frequency score and / or the switching frequency score are weighted and summed to generate a total ranking score corresponding to each vehicle audio source.
5. The vehicle-mounted audio source switching method according to claim 2, characterized in that: The step of fusing the sorting results of each dimension to generate a sound source sorting result includes: Determine the dimension sorting score rules corresponding to the dimensional sorting results based on the sound source sorting dimensions corresponding to the dimensional sorting results; Determine the dimension result score corresponding to each vehicle-mounted sound source according to the dimension sorting score rule and the dimension sorting result; Generate a total result score corresponding to each vehicle-mounted sound source according to the dimension result score; Based on the total result scores corresponding to each vehicle-mounted sound source, each vehicle-mounted sound source is sorted from high to low to generate a sound source sorting result.
6. The vehicle-mounted audio source switching method according to any one of claims 1 to 5, characterized in that: The switching of the sound source used in the vehicle to the target sound source comprises: Obtaining the current audio source playback volume of the vehicle; Determine the volume step value according to the playback volume of the sound source and the preset volume adjustment duration; gradually reducing the volume of the current sound source according to the volume step value, and loading the playback data of the target sound source; When the playback volume of the current sound source is reduced to a preset value, the sound source used in the vehicle is switched to the target sound source, and the playback data is played; The volume of the target sound source is gradually increased according to the volume step value to the sound source playback volume.
7. The vehicle-mounted audio source switching method according to claim 6, characterized in that: The step of gradually reducing the volume of the current sound source according to the volume step value and loading the playback data of the target sound source includes: Detecting whether there is a weak signal area in front of the vehicle; If so, detecting whether the current sound source is a cached sound source; If it is a cached sound source, the cache playback time of the current sound source is determined, and the area passing time corresponding to the weak signal area is determined according to the current speed of the vehicle; If the buffered playback duration is less than the area passing duration, the volume of the current sound source is gradually reduced by the volume step value, and the playback data of the target sound source is loaded.
8. A vehicle-mounted sound source switching device, characterized in that: The device comprises: A detection module, used to obtain a sound source switching strategy when a change in vehicle status is detected; A sorting module, used to prioritize the vehicle-mounted sound sources in the vehicle according to the sound source switching strategy and generate a sound source sorting result; A determination module, used to determine a target sound source according to the sound source sorting result; A switching module is used to switch the sound source used in the vehicle to the target sound source.
9. A vehicle-mounted audio source switching device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle audio source switching method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle-mounted audio source switching method according to any one of claims 1 to 7 are implemented.