Method and device for controlling loudspeaker to play audio based on image in vehicle
By obtaining the matching of the image display position and the speaker position in the vehicle, and adjusting the pronunciation parameters of the speaker, the problem of inconsistent image and audio position in the head-up display device is solved, and the user's audio-visual experience is improved.
Patent Information
- Application Number
- CN202411463714.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-18
- Publication Date
- 2025-01-14
AI Technical Summary
In a vehicle, the image projected by the head-up display device is inconsistent with the audio position played by the speaker, resulting in a sense of separation between the "visual" and "listening" feelings, affecting the user's experience.
By obtaining the image display position that the projection device needs to be cast, determining the speaker used to play audio, and determining its pronunciation parameters based on the speaker's sound source position and position, the speaker is controlled to match the audio playback position and image display position consistent.
Eliminates the sense of splitting caused by inconsistent image and audio position, and improves the user's audio-visual experience.
Smart Images

Figure CN119316792A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the fields of intelligent driving technology and sound source relocalization technology, and in particular to a method and device for controlling a speaker to play audio in a vehicle based on an image. Background Art
[0002] With the continuous development of intelligent vehicle technology, many vehicles are now equipped with Head Up Display (HUD) to improve the user's driving experience. HUD can project vehicle instrument information, pedestrians outside the vehicle cabin, traffic signs, zebra crossings and other driving assistance information, as well as entertainment information such as videos and games, onto the front windshield of the vehicle for display, and play the audio corresponding to the HUD projected image through the speakers on the vehicle.
[0003] Since the image is projected by the HUD to the outside of the vehicle cabin for display, while the corresponding audio is played inside the vehicle cabin, the display position of the image and the playback position of the audio are inconsistent in space. For example, when the user is watching a movie or playing a game, the corresponding image of the movie or game will be projected by the HUD to the outside of the vehicle cabin for display, while the corresponding audio of the movie or game will be played inside the vehicle cabin, which causes the user to feel a sense of disconnection between "seeing" and "hearing", thus affecting the user experience. Summary of the invention
[0004] In order to solve the above technical problems, the present disclosure provides a method and device for controlling a speaker to play audio based on an image in a vehicle.
[0005] One aspect of the present disclosure provides a method for controlling a speaker to play audio in a vehicle based on an image, comprising: obtaining a display position of a first image that a projection device needs to project outside a vehicle cabin; based on the display position, determining at least one first speaker, the at least one first speaker being used to play audio corresponding to the first image; based on a sound source position corresponding to the at least one first speaker and the position of the at least one first speaker, determining a pronunciation parameter of the at least one first speaker; and controlling the at least one first speaker to play the audio according to the pronunciation parameter.
[0006] Another aspect of the present disclosure provides a device for controlling a speaker to play audio based on an image in a vehicle, comprising: a display position determination module, used to obtain a display position of a first image that a projection device needs to project outside a vehicle cabin; a speaker determination module, used to determine at least one first speaker based on the display position, and the at least one first speaker is used to play audio corresponding to the first image; a pronunciation parameter determination module, used to determine a pronunciation parameter of the at least one first speaker based on a sound source position corresponding to the at least one first speaker and the position of the at least one first speaker; and an audio playback module, used to control the at least one first speaker to play the audio according to the pronunciation parameters.
[0007] According to another aspect of the present disclosure, a playback system is provided, comprising: a plurality of speakers, a projection device and a sound source position adjustment device, the plurality of speakers being deployed inside and outside a vehicle cabin, or deployed outside the vehicle cabin; the projection device being deployed on the vehicle; the sound source position adjustment device being used to: obtain a display position of a first image outside the vehicle cabin from the projection device; based on the display position, determine at least one first speaker among the plurality of speakers, the at least one first speaker being used to play audio corresponding to the first image; determine a pronunciation parameter of the at least one first speaker based on a sound source position corresponding to the at least one first speaker and the position of the at least one first speaker; and control the at least one first speaker to play the audio according to the pronunciation parameter.
[0008] According to another aspect of the present disclosure, a computer-readable storage medium is provided, wherein the storage medium stores a computer program for executing the above-mentioned method of controlling a speaker to play audio based on an image in a vehicle.
[0009] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing executable instructions of the processor; and the processor for reading the executable instructions from the memory and executing the instructions to implement the above-mentioned method of controlling a speaker to play audio in a vehicle based on an image.
[0010] Based on the embodiments of the present disclosure, by acquiring the display position of the first image that the projection device needs to project, and determining at least one first speaker for playing the audio corresponding to the first image based on the display position of the first image, thereafter, determining the pronunciation parameters of the at least one first speaker based on the sound source position corresponding to the at least one first speaker and the position of the at least one first speaker, when the at least one first speaker plays the audio corresponding to the first image under the pronunciation parameters, the sound source position corresponding to the at least one first speaker and the display position of the first image can be consistent in spatial position, thereby eliminating the sense of separation in the user's "visual" and "auditory" perception caused by the inconsistency in spatial position between the display position of the image and the playback position of the audio, and helping to improve the user's audio-visual experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 A schematic diagram of an application scenario of an embodiment of the present disclosure is shown.
[0012] Figure 2 The figure is a flowchart of a method for controlling a speaker to play audio based on an image in a vehicle provided by an exemplary embodiment of the present disclosure.
[0013] Figure 3 It is a flowchart of step S200 provided by an exemplary embodiment of the present disclosure.
[0014] Figure 4 It is a flowchart of step S210 provided by an exemplary embodiment of the present disclosure.
[0015] Figure 5 It is a flowchart of step S220 provided by an exemplary embodiment of the present disclosure.
[0016] Figure 6 It is a flowchart of a method for controlling a speaker to play audio in a vehicle based on an image, provided in an application example of the present disclosure.
[0017] Figure 7 It is a schematic diagram of a sound source position and a display position provided by an exemplary embodiment of the present disclosure.
[0018] Figure 8 It is a flowchart of a method for controlling a speaker to play audio based on an image in a vehicle provided by another exemplary embodiment of the present disclosure.
[0019] Fig. 9 is a schematic diagram of a playback system provided by an exemplary embodiment of the present disclosure.
[0020] Fig.10 It is a structural block diagram of a device for controlling a speaker to play audio based on an image in a vehicle in one embodiment of the present disclosure.
[0021] Fig.11 It is a structural block diagram of a device for controlling a speaker to play audio based on an image in a vehicle in another embodiment of the present disclosure.
[0022] Fig.12 is a structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] To explain the present disclosure, example embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. It should be understood that the present disclosure is not limited to the example embodiments.
[0024] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
[0025] Application Overview
[0026] In the process of realizing the present disclosure, the inventor discovered through research that when multimedia information such as videos and games are played on a vehicle, the projection device (for example, HUD) will project the image of the multimedia information to the outside of the vehicle cabin for display, while the audio of the multimedia information will be played inside the vehicle cabin, that is, the display position of the image and the playback position of the audio are respectively located inside and outside the vehicle cabin, which makes the image display position and the audio playback position inconsistent in spatial position, resulting in a sense of disconnection between the user's "sight" and "hearing", affecting the user's experience.
[0027] Exemplary Systems
[0028] The technical solution disclosed in the present invention can be used to adjust the playback position of the audio and / or the display position of the image when the display position of the image and the playback position of the audio are inconsistent in spatial position, so that the display position of the image and the playback position of the audio are consistent in spatial position, which can be applied to a variety of application scenarios. Exemplarily, when multimedia information (for example, a movie) is played through a projection device and a speaker on a vehicle, the playback position of the audio and / or the display position of the image can be adjusted so that the playback position of the audio and the display position of the image are consistent in spatial position. The application of the technical solution disclosed in the present invention is not limited to driving scenarios. For any device that can play multimedia information, such as a mobile terminal and a multimedia playback device, this solution can be used to adjust the playback position of the audio and the display position of the image so that the playback position and the display position are consistent in spatial position.
[0029] Figure 1 FIG. 1 is a schematic diagram showing an application scenario of an embodiment of the present disclosure. Figure 1As shown, a projection device 2, a computing platform 3 and a plurality of speakers 4 are deployed on the vehicle 1. The projection device 2 is used to project the first image to be projected outside the cabin of the vehicle 1. For example, the projection device 2 may be a HUD, etc. The computing platform 3 is used to determine the pronunciation parameters of the speaker 4 for playing the audio corresponding to the first image according to the display position of the first image. The plurality of speakers 4 may be deployed inside and outside the cabin of the vehicle 1, respectively. The speakers 4 may be separately arranged speakers 4 or speakers 4 in an existing system in the vehicle. For example, the speakers 4 may be speakers in an Acoustic Vehicle Alerting System (AVAS) and / or vehicle audio, etc.
[0030] When the first image and the audio corresponding to the first image are played on the vehicle 1, the display position of the first image can be obtained from the projection device 2, and the display position is transmitted to the computing platform 3. The computing platform 3 determines at least one first speaker for playing the audio based on the display position, and determines the pronunciation parameters of the at least one first speaker based on the sound source position corresponding to the at least one first speaker, and controls the at least one first speaker to play the audio under the pronunciation parameters. The pronunciation parameters may be power, etc.
[0031] In the embodiment of the present disclosure, at least one first speaker for playing audio corresponding to the first image is determined by the display position of the first image projected by the projection device, and then the pronunciation parameters of the at least one first speaker are determined by the sound source position corresponding to the at least one first speaker and the position of the at least one first speaker. When the at least one first speaker plays audio under the pronunciation parameters, the sound source position corresponding to the at least one first speaker is consistent with the display position of the first image in spatial position, thereby eliminating the phenomenon of "seeing" and "hearing" of the user caused by the inconsistency between the display position of the image and the playback position of the audio in spatial position, which helps to improve the user's audio-visual experience.
[0032] Exemplary Methods
[0033] Figure 2 FIG. 1 is a flow chart of a method for controlling a speaker to play audio in a vehicle based on an image, provided by an exemplary embodiment of the present disclosure. This embodiment can be applied to electronic devices such as vehicles or multimedia playback devices, such as Figure 2 As shown, the following steps are included:
[0034] Step S200, obtaining a display position of a first image that needs to be projected by a projection device outside a vehicle cabin.
[0035] Among them, the projection device is used to project the first image, and the projection device can be, for example, a head-up display device. The first image can be an image projected by the projection device, and the first image can include, for example, but is not limited to, at least one of the following: movie images, game images, auxiliary driving images, etc., and the auxiliary driving images can include, for example, but are not limited to, at least one of the following: instrument information, navigation information, map information, etc. of the mobile terminal. The display position of the first image is used to indicate the position in space where the first image is projected by the projection device. For example, the display position of the first image can be the spatial position of the midpoint of the first image, which can be represented by the three-dimensional coordinate value of the midpoint of the first image in the spatial coordinate system. The display position of the first image can be located at a preset position outside the vehicle cabin, and the preset position can be, for example, within a preset area outside the front windshield. In one embodiment, the projection device can be deployed on the vehicle.
[0036] Step S210: determining at least one first speaker based on the display position of the first image.
[0037] Each of the at least one first speaker is used to play the audio corresponding to the first image. For example, the first speaker can be a low-frequency speaker, a mid-frequency speaker, or a high-frequency speaker. In one implementation, the first speaker can be deployed on a vehicle.
[0038] Exemplarily, the first distance between each speaker on the vehicle and the display position may be determined, and the speaker with the shortest first distance may be used as the first speaker, or the speaker with a first distance less than a first preset distance threshold may be used as the first speaker.
[0039] Step S220: determining a pronunciation parameter of the at least one first speaker based on a sound source position corresponding to the at least one first speaker and a position of the at least one first speaker.
[0040] The pronunciation parameters of the speaker may refer to technical parameters used to describe the performance of the speaker, and the pronunciation parameters of the speaker have a direct impact on the characteristics of the audio emitted by the speaker. The pronunciation parameters include, for example, at least one of the following: power, phase, and delay.
[0041] The position of the first speaker is used to indicate the physical position of the first speaker. The physical position of the first speaker may be a preset position of the first speaker on the vehicle. The physical position of the first speaker may also be referred to as a spatial position. In a specific application, the position of the first speaker may be represented by a three-dimensional coordinate value of the first speaker in a spatial coordinate system. The position of the first speaker may be pre-stored in the execution subject of this embodiment, or may be pre-stored in a vehicle-mounted terminal on the vehicle, and the execution subject obtains the position of the first speaker from the vehicle-mounted terminal. The disclosed embodiment does not limit the storage location and acquisition method of the position of the first speaker.
[0042] The sound source position is used to indicate the position of the audio sound source. For example, the sound source position can be represented by the three-dimensional coordinate value of the sound source in the spatial coordinate system. In a specific implementation, when the number of first speakers is 1, the first speaker is the sound source of the audio, and the sound source position corresponding to the first speaker includes the position of the first speaker; when the number of first speakers is at least two, the sound source position corresponding to the first speaker includes the position of the sound source determined by the audio emitted by all the first speakers.
[0043] In one implementation, the display position of the first image may be used as the sound source position corresponding to the first speaker, and the pronunciation parameters of the first speaker may be determined using virtual sound source localization techniques such as Head-Related Transfer Function (HRTF) or Vector Based Amplitude Planning (VBAP).
[0044] Step S230: Control at least one first speaker to play the audio corresponding to the first image according to the pronunciation parameter.
[0045] When the projection device projects the first image, each of the at least one first speaker can be controlled to play the audio corresponding to the first image with the pronunciation parameter, so that the sound source position corresponding to the at least one first speaker is consistent with the display position of the first image in spatial position.
[0046] In the embodiment of the present disclosure, at least one first speaker for playing audio corresponding to the first image is determined by the display position of the first image projected by the projection device, and then the pronunciation parameters of the at least one first speaker are determined using the sound source position corresponding to the at least one first speaker. Therefore, when the at least one first speaker plays audio under the pronunciation parameters, the sound source position corresponding to the at least one first speaker can be consistent with the display position of the first image in spatial position, thereby eliminating the user's "seeing" and "hearing" separation caused by the inconsistency in the spatial position of the playback position of the image and the audio, which helps to improve the user's audio-visual experience.
[0047] Figure 3 FIG. 1 is a flow chart of step S200 provided by an exemplary embodiment of the present disclosure. Figure 3 As shown, in some optional implementations, step S200 may include the following steps:
[0048] Step S201: acquiring a projection angle and a projection distance for projecting a first image from a projection device.
[0049] The projection angle may include: a pitch angle and a yaw angle for projecting the first image. The projection distance may be the distance between the projection device for projecting the first image and the display position of the first image. In one embodiment, the projection device may project the first image at the pitch angle, the yaw angle, and the projection distance.
[0050] In one embodiment, the first image may be an image projected by a head-up display system in the vehicle cabin, the head-up display system including a HUD (projection device) and a related program for image projection. The projection angle and projection distance for projecting the first image may be obtained from the head-up display system.
[0051] Step S202: determining a display position of the first image based on the projection angle and the projection distance.
[0052] The display position of the first image can be determined according to the projection angle and the projection distance using formulas (1)-(3).
[0053]
[0054] Z=Rsinθ formula (3)
[0055] In the above formulas (1)-(3), R is the projection distance, is the pitch angle in the projection angle, θ is the yaw angle in the projection angle, and (X, Y, Z) are the coordinate values (display position) of the first image in the spatial coordinate system.
[0056] In the embodiment of the present disclosure, the display position of the first image can be accurately obtained through the projection angle and projection distance used to project the first image, providing a reliable data basis for subsequently determining the pronunciation parameters through the display position.
[0057] In some other optional implementations, step S200 may also include: acquiring a target position, and then determining a display position of the first image outside the vehicle cabin based on the target position.
[0058] The target location may be a user-defined location and may be located outside the vehicle cabin.
[0059] In one embodiment, it can be determined whether the target position is within the area range that the projection device can project. If the target position is within the area range, the target position is used as the display position of the first image. If the target position is not within the area range, a prompt message can be sent to the user to remind the user to re-select the target position.
[0060] In the embodiment of the present disclosure, the display position of the first image is determined by the target position, so that the user can flexibly control the display position of the first image by setting the target position, thereby improving the user experience.
[0061] In some optional embodiments, after determining the display position of the first image, the method may also include: determining a projection angle and a projection distance for projecting the first image according to the display position of the first image, and then controlling the projection device to project the first image at the projection angle and the projection distance.
[0062] In a specific implementation, before using the head-up display system to project the first image, the projection angle and projection distance for projecting the first image can be determined according to the display position of the first image using formulas (1)-(3), and then the head-up display system is controlled to project the first image at the projection angle and the projection distance so that the first image can be projected to the display position.
[0063] In the embodiment of the present disclosure, the display position of the first image is used to determine the projection angle and projection distance for projecting the first image. When the projection device projects the first image at the projection angle and the projection distance, the first image can be accurately projected and displayed at the display position.
[0064] Figure 4 FIG. 1 is a flow chart of step S210 provided by an exemplary embodiment of the present disclosure. Figure 4 As shown, in some optional implementations, step S210 may include the following steps:
[0065] Step S211, respectively obtaining a position corresponding to each speaker group in a plurality of speaker groups.
[0066] Each speaker group is formed by combining speakers on the vehicle in a preset combination. The position corresponding to the speaker group may include the position of a key point corresponding to the speaker group. Exemplarily, the position of the key point may be represented by a three-dimensional coordinate value of the key point in a spatial coordinate system, and the key point may be the centroid, center or center of gravity of a plane or space body formed by the speakers in the speaker group.
[0067] Exemplarily, multiple speakers on the vehicle are divided into multiple speaker groups in a random grouping manner, and the number of speakers included in each speaker group may be the same or different. For example, each speaker group includes the same number of speakers, and each speaker group includes at least one speaker deployed outside the vehicle cabin.
[0068] Step S212: determining at least one speaker from the plurality of speaker groups based on the positions corresponding to the speaker groups and the display position of the first image.
[0069] In one embodiment, the second distance between the position corresponding to each speaker group and the display position, such as Euclidean distance, Mahalanobis distance, etc., can be calculated, and each speaker in the speaker group with the shortest second distance can be determined as the first speaker, or each speaker in the speaker group with a second distance less than a second preset distance threshold can be determined as the first speaker.
[0070] In the disclosed embodiment, the position corresponding to each speaker group and the display position are used to determine the first speaker for playing the audio corresponding to the first image, so that the sound source position corresponding to the first speaker is closest to the display position, thereby facilitating the subsequent adjustment of the sound source position corresponding to the first speaker to the display position.
[0071] In some optional implementations, the at least one first speaker in the embodiment of the present disclosure may include: a speaker disposed in the vehicle cabin and a speaker disposed outside the vehicle cabin. Alternatively, the at least one first speaker also includes: a speaker disposed outside the vehicle cabin.
[0072] In one embodiment, multiple speakers are deployed inside and outside the vehicle cabin, respectively, and multiple speakers can be selected from multiple speakers deployed inside and outside the vehicle cabin, or deployed outside the vehicle cabin to form a first speaker group.
[0073] In the embodiment of the present disclosure, a speaker arranged inside and outside the vehicle cabin, or a speaker arranged outside the vehicle cabin is used as the first speaker, so that the sound source position corresponding to the first speaker can be located outside the vehicle cabin, which provides a feasible prerequisite for the sound source position corresponding to at least one first speaker to be consistent with the display position of the first image in spatial position.
[0074] In some optional implementations, the step S211 in the embodiment of the present disclosure may also include: acquiring a plurality of speaker groups formed by combining speakers on the vehicle in a preset combination manner.
[0075] The preset combination method includes the number of combination elements used to form the speaker group, and each speaker group includes at least one speaker arranged outside the vehicle cabin. The combination element is a speaker, and the number of combination elements can be an integer greater than or equal to 2, for example, the number of combination elements can be 4.
[0076] Exemplarily, assuming that the preset combination method includes: the number of combination elements is 4, and each speaker group has at least one speaker disposed outside the vehicle cabin. According to the preset combination method, the multiple speakers on the vehicle are divided into multiple speaker groups.
[0077] In the disclosed embodiment, multiple speakers on the vehicle can be efficiently divided into multiple speaker groups according to a preset combination method, and it can also be ensured that the sound source position corresponding to the first speaker group determined by the speaker group can be consistent with the display position of the first image.
[0078] In some optional implementations, the sound source position corresponding to the first speaker may be determined in the following manner: based on display position information of the first image, the sound source position corresponding to the first speaker is determined.
[0079] The display position of the first image may be used as the sound source position corresponding to the at least one first speaker. In one embodiment, the sound source position corresponding to the first speaker may include position information of the sound source determined by the audio emitted by each of the at least one first speaker.
[0080] Figure 5 FIG. 2 is a flow chart of step S220 provided by an exemplary embodiment of the present disclosure. Figure 5 As shown, in some optional implementations, step S220 in this embodiment may include the following steps:
[0081] Step S221: determining a sound weight corresponding to at least one first speaker based on a sound source position corresponding to at least one first speaker and a position of at least one first speaker.
[0082] The pronunciation weight may be used to adjust the size of the pronunciation parameter of the first speaker.
[0083] In one implementation, the sound weight corresponding to each first speaker may be determined according to the position of each first speaker in the at least one first speaker and the sound source position corresponding to the at least one first speaker.
[0084] Exemplarily, assuming that there are four first speakers, and the display position is used as the sound source position corresponding to the four first speakers (i.e., the sound source position corresponding to at least one first speaker), the sound emission weight corresponding to each first speaker can be determined based on the position of each first speaker and the sound source position using formula (4).
[0085]
[0086] In the above formula (4), (x, y, z) is the position of the sound source, (x_1, y-1, z_1), (x_2, y_2, z_2), (x_3, y_3, z_3) and (x_4, y_4, z_4) are the positions of the four first speakers respectively, and g_1, g_2, g_ and g_4 are the sound weights corresponding to the four first speakers respectively.
[0087] Step S222: determining the power of at least one first speaker based on the sound emission weight of at least one first speaker.
[0088] The weight of each first speaker can be determined according to the pronunciation weight of each first speaker in the at least one speaker.
[0089] In one embodiment, the pronunciation parameter includes the power of the first speaker. The initial power of each first speaker in at least one first speaker can be determined according to the volume set by the user, and then the initial power of the corresponding first speaker is adjusted using the sound weight corresponding to each first speaker to determine the power of each first speaker. For example, the power of each first speaker can be determined by multiplying the sound weight of the first speaker by the initial power.
[0090] Step S223: Control at least one first speaker to play the audio corresponding to the first image at the power.
[0091] Among them, for each first speaker among at least one first speaker, the first speaker can be controlled to play the audio corresponding to the first image at a determined power of the first speaker, so that when each first speaker is controlled to work at a corresponding power, the sound source position corresponding to the first speaker is consistent with the display position of the first image in spatial position.
[0092] In the embodiment of the present disclosure, the sound weight is determined by the sound source position corresponding to the first speaker, and then the power of the first speaker is determined using the sound weight, thereby ensuring that when the first speaker works at this power, the sound source position corresponding to the first speaker can be consistent in spatial position with the display position of the first image.
[0093] In some optional embodiments, in the embodiment of the present disclosure, step S222 may include: obtaining an attenuation coefficient corresponding to at least one first speaker, then correcting the sound weight based on the attenuation coefficient corresponding to the at least one first speaker to obtain a corrected sound weight, and determining the power of the at least one first speaker based on the corrected sound weight.
[0094] The attenuation coefficient can be used to indicate the attenuation degree of sound during propagation. For example, a correspondence between each speaker on the vehicle and the attenuation coefficient can be created in advance. The correspondence between each speaker on the vehicle and the attenuation coefficient can be used to determine the attenuation coefficient corresponding to each speaker in the first speaker group.
[0095] In one implementation, the sound weight corresponding to each first speaker may be corrected using formulas (5)-(6) according to the attenuation coefficient of each first speaker in the at least one first speaker.
[0096] g_i′=g_i / α_i Formula (5)
[0097]
[0098] In the above formulas (5)-(6), g_i is the sound weight corresponding to the i-th first speaker in at least one first speaker, α_i is the attenuation coefficient of the i-th first speaker, g_i′ is the middle value of the i-th first speaker, g_i″ is the corrected sound weight corresponding to the i-th first speaker, and n indicates that at least one first speaker includes n first speakers.
[0099] In one implementation, the initial power of the corresponding first speaker may be adjusted based on the corrected sound emission weight corresponding to each first speaker in the at least one first speaker to obtain the power of each first speaker.
[0100] In the embodiment of the present disclosure, the pronunciation weight of each first speaker is corrected using the attenuation coefficient corresponding to each first speaker, so that the pronunciation weight corresponding to the first speaker is more consistent with the propagation of the audio emitted by the first speaker, thereby improving the accuracy of the power of the first speaker determined by the pronunciation weight.
[0101] In some optional implementations, in the embodiments of the present disclosure, the attenuation coefficient corresponding to the first speaker may be determined in the following manner: environmental information corresponding to at least one first speaker is acquired, and then based on the environmental information, the attenuation coefficient corresponding to the at least one first speaker is determined.
[0102] The environmental information includes information corresponding to attenuation factors that affect sound propagation. The attenuation factors may include at least one of the following: air humidity, concentration of particulate matter (PM) in the air, size of vehicle windows, location of speakers, distance between speakers and the driver, direction of sound propagation, etc.
[0103] In a specific implementation, an attenuation coefficient correspondence table may be created, the attenuation coefficient correspondence table including the correspondence between information corresponding to the attenuation factor and the attenuation coefficient. Information corresponding to the attenuation factor corresponding to each first speaker in the first speaker group may be obtained, and then the attenuation coefficient corresponding to each first speaker may be determined using the attenuation coefficient correspondence table.
[0104] For example, Table 1 is a table of attenuation coefficients. The air humidity value (information corresponding to the attenuation factor), the concentration of particulate matter in the air (information corresponding to the attenuation factor), and the distance between each first speaker in the first speaker group and the driver (information corresponding to the attenuation factor) can be obtained, and then the attenuation coefficient of each first speaker is found in Table 1.
[0105] Table 1 Attenuation coefficient correspondence table
[0106]
[0107] In the embodiment of the present disclosure, the attenuation factors (environmental information) in the environment where the first speaker is located that have an impact on sound propagation are comprehensively considered to determine an attenuation coefficient that conforms to the environment where the first speaker is located, so that the attenuation coefficient can accurately adjust the sound weight.
[0108] In an alternative embodiment, Figure 6 The present invention provides a flowchart of a method for controlling a speaker to play audio based on an image in a vehicle provided by an application example of the present invention. In this application example, it is assumed that the vehicle is a vehicle, a HUD for projecting a first image is provided on the vehicle, and a plurality of speakers are deployed inside and outside the vehicle cabin.
[0109] like Figure 6 As shown, the method for controlling a speaker to play audio based on an image in a vehicle comprises the following steps:
[0110] S1, obtaining a projection angle and a projection distance for projecting a first image from the HUD;
[0111] S2, determining a display position of the first image based on the projection angle and the projection distance;
[0112] S3, dividing the plurality of speakers on the vehicle into a plurality of speaker groups according to a preset combination method, wherein the preset combination method includes: a group of four speakers, and each speaker group includes at least one speaker deployed outside the vehicle cabin;
[0113] S4, determining the position of the center of mass of the plane or space formed by each speaker group as the position corresponding to the speaker group, and determining each speaker in a speaker group closest to the display position among the speaker groups as a first speaker;
[0114] S5, determining the display position as the sound source position corresponding to each first speaker;
[0115] S6, determining a sounding weight corresponding to each first speaker according to a sound source position corresponding to each first speaker and a position of each first speaker;
[0116] S7, obtaining the attenuation coefficient corresponding to each first speaker;
[0117] S8, correcting the corresponding sound weight based on the attenuation coefficient corresponding to each first speaker to obtain a corrected sound weight corresponding to each first speaker;
[0118] S9, determining the power of each first speaker based on the corrected sound emission weight corresponding to each first speaker, so as to control each first speaker to operate at a corresponding power.
[0119] Figure 7 FIG. 1 is a schematic diagram of a sound source position and a display position provided by an exemplary embodiment of the present disclosure. Figure 7 As shown, when each first speaker is controlled to operate at the corresponding power determined in step S9, the sound source positions (S) corresponding to the four first speakers are consistent with the display position (I) of the first image in spatial position.
[0120] Figure 8 FIG. 1 is a flow chart of a method for controlling a speaker to play audio in a vehicle based on an image provided by another exemplary embodiment of the present disclosure. Figure 8 As shown, the method for controlling a speaker to play audio in a vehicle based on an image in the embodiment of the present disclosure may also include the following steps:
[0121] Step S300, obtaining a second speaker group.
[0122] The second speaker group includes a plurality of second speakers, and at least one second speaker in the second speaker group is a speaker disposed outside the vehicle cabin. In one embodiment, the second speaker may be a speaker for playing audio corresponding to the second image. The second speaker may be disposed on the vehicle.
[0123] In one embodiment, a plurality of speakers on the vehicle may be divided into a plurality of speaker groups according to a preset combination method, and a group of speakers may be selected from the plurality of speaker groups as the second speaker group. For example, the preset combination method may include: each speaker group includes 4 speakers, and each speaker group includes at least one speaker deployed outside the vehicle cabin.
[0124] Step S310: obtaining the sound weight corresponding to each second speaker in the second speaker group.
[0125] The corresponding relationship between the speakers and the sound weights may be created in advance, and the sound weights corresponding to the second speakers may be determined based on the corresponding relationship between the speakers and the sound weights.
[0126] Step S320: Obtain the attenuation coefficient corresponding to each second speaker.
[0127] The environmental information corresponding to each second speaker may be obtained, and then based on the environmental information corresponding to each second speaker, the attenuation coefficient corresponding to each second speaker may be determined.
[0128] Step S330, correcting the sound weight corresponding to the corresponding second speaker based on the attenuation coefficient corresponding to each second speaker, to obtain the corrected sound weight corresponding to each second speaker;
[0129] Among them, the sound weight corresponding to the second speaker can be corrected in the same way as the sound weight corresponding to the first speaker, which will not be described in detail here.
[0130] Step S340: determining the sound source position corresponding to the second speaker group based on the corrected sound emission weight corresponding to each second speaker and the position of each second speaker.
[0131] The sound source position corresponding to the second speaker group includes the position of the sound source determined by the audio emitted by each second speaker in the second speaker group. The position of the second speaker can be represented by the three-dimensional coordinate value of the second speaker in the space coordinate system.
[0132] Exemplarily, when the second speaker group includes four second speakers, the sound source position corresponding to the second speaker group can be determined using formula (4) based on the corrected sound emission weight corresponding to each second speaker and the position of each second speaker.
[0133] Step S350: determining a display position for projecting the second image based on the sound source position corresponding to the second speaker group, so as to control the projection device to project the second image at the display position of the second image.
[0134] The second image may be an image projected by a projection device, and the second image may be, for example, a movie image, a game image, or an auxiliary driving image.
[0135] In one embodiment, the sound source position corresponding to the second speaker group can be determined as the display position of the second image. Based on the display position, the projection angle and projection distance of the second image can be determined using formulas (1)-(3), and the projection device (e.g., HUD) can be controlled to project the second image at the projection angle and the projection distance, so that the second image can be displayed at the display position.
[0136] Step S360: determining the power of each second speaker based on the sound source position corresponding to each second speaker group, so as to control each second speaker to operate at a corresponding power.
[0137] The power of the second speaker may be determined in the same manner as the power of the first speaker, which will not be described in detail herein.
[0138] In the embodiment of the present disclosure, the sound source position corresponding to the second speaker is determined by utilizing the corrected sound weight corresponding to each second speaker in the second speaker group and the position of each second speaker. Then, the power of the second speaker and the display position of the second image are determined by utilizing the sound source position corresponding to the second speaker. Therefore, when the second speaker plays the audio corresponding to the second image at the corresponding power, the sound source position corresponding to the second speaker and the display position of the second image can be consistent in spatial position, thereby eliminating the audiovisual fragmentation phenomenon caused by the inconsistency in spatial position between the display position of the image and the playback position of the audio, thereby improving the user's audiovisual experience.
[0139] Fig. 9 FIG. 1 is a flow chart of a playback system provided by an exemplary embodiment of the present disclosure. Fig. 9 As shown, the playback system 400 includes: a plurality of speakers 410 , a projection device 420 and a sound source position adjustment device 430 .
[0140] Among them, multiple speakers 410 are deployed inside and outside the vehicle cabin, or deployed outside the vehicle cabin; the projection device 420 is deployed on the vehicle.
[0141] The sound source position adjustment device 430 can be used to: obtain the display position of the first image outside the vehicle cabin from the projection device; based on the display position, determine at least one first speaker among multiple speakers, and the at least one first speaker is used to play the audio corresponding to the first image; based on the sound source position corresponding to the at least one first speaker and the position of the at least one first speaker, determine the pronunciation parameters of the at least one first speaker; control the at least one first speaker to play the audio through the pronunciation parameters.
[0142] The pronunciation parameters include at least one of the following: power, phase and delay.
[0143] The display position may be determined in the following manner: obtaining a projection angle and a projection distance for projecting the first image from a projection device, and determining the display position of the first image based on the projection angle and the projection distance. Alternatively, obtaining a target position, which is located outside the vehicle cabin, and determining the display position of the first image based on the target position, and determining the projection angle and the projection distance for projecting the first image according to the display position, and the projection device projects the first image at the projection angle and the projection distance.
[0144] The first speaker corresponding to the first image may be determined in the following manner: a plurality of speaker groups formed by combining speakers on the vehicle in a preset combination manner are obtained, the positions corresponding to each speaker group in the plurality of speaker groups are obtained respectively, and at least one first speaker is determined from the plurality of speaker groups based on the positions corresponding to each speaker group and the display position. The at least one first speaker may include a speaker disposed in the vehicle cabin and a speaker disposed outside the vehicle cabin; or a speaker disposed outside the vehicle cabin. The preset combination manner includes the number of combination elements used to form the speaker group, and each speaker group includes at least one speaker disposed outside the vehicle cabin, and the number of combination elements is an integer greater than or equal to 2.
[0145] The pronunciation parameter may include power. The pronunciation parameter of the first speaker may be determined in the following manner: based on the sound source position corresponding to the at least one first speaker and the position of the at least one first speaker, determining the pronunciation weight corresponding to the at least one first speaker; based on the pronunciation weight, determining the power of the at least one first speaker, and controlling the first speaker to play the audio corresponding to the first image at the power.
[0146] The pronunciation parameters of the first speaker can also be determined in the following way: obtaining environmental information corresponding to at least one first speaker, determining the attenuation coefficient corresponding to at least one first speaker based on the environmental information corresponding to the at least one first speaker, correcting the sound weight based on the attenuation coefficient corresponding to the at least one first speaker to obtain the corrected sound weight, and determining the power of at least one first speaker based on the corrected sound weight.
[0147] In the playback system 400 of the present disclosure, the various optional embodiments, optional implementation methods and optional examples disclosed above can be flexibly selected and combined as needed to achieve corresponding functions and effects, and the present disclosure does not list them one by one.
[0148] The playback system 400 of the present disclosure corresponds to the embodiment of the method for controlling a speaker to play audio based on an image in a vehicle in the present disclosure, and the relevant contents can be referenced to each other and will not be repeated here.
[0149] The beneficial technical effects corresponding to the exemplary embodiment of the present device can be found in the corresponding beneficial technical effects of the above exemplary method section, which will not be repeated here.
[0150] Exemplary Devices
[0151] Fig.10 FIG. 1 is a structural block diagram of a device for controlling a speaker to play audio based on an image in a vehicle in one embodiment of the present disclosure. Fig.10As shown, the device for controlling a speaker to play audio based on an image in a vehicle includes: a display position determination module 500 , a speaker determination module 510 , a pronunciation parameter determination module 520 and an audio playing module 530 .
[0152] A display position determination module 500 is used to obtain a display position of a first image that needs to be projected by a projection device outside a vehicle cabin;
[0153] A speaker determination module 510, configured to determine at least one first speaker based on the display position, wherein the at least one first speaker is configured to play the audio corresponding to the first image;
[0154] A pronunciation parameter determination module 520, configured to determine a pronunciation parameter of the at least one first speaker based on a sound source position corresponding to the at least one first speaker and a position of the at least one first speaker;
[0155] The audio playing module 530 is used to control the at least one first speaker to play the audio according to the pronunciation parameters.
[0156] Fig.11 is a structural block diagram of an apparatus for controlling a speaker to play audio based on an image in a vehicle in another embodiment of the present disclosure. In some optional examples, such as Fig.11 As shown, the apparatus for controlling a speaker to play audio in a vehicle based on an image provided by an embodiment of the present disclosure further includes:
[0157] In some optional examples, the display position determination module 500 provided by the embodiments of the present disclosure includes:
[0158] A first acquisition submodule 501 is used to acquire a projection angle and a projection distance for projecting the first image from the projection device;
[0159] The first determination submodule 502 is configured to determine the display position based on the projection angle and the projection distance.
[0160] In some optional examples, the display position determination module 500 provided by the embodiments of the present disclosure includes:
[0161] A second acquisition submodule 503 is used to acquire a target position, where the target position is outside the vehicle cabin;
[0162] The second determining submodule 504 is configured to determine the display position based on the target position.
[0163] In some optional examples, the apparatus for controlling a speaker to play audio based on an image in a vehicle in an embodiment of the present disclosure further includes:
[0164] A projection angle determination module 540, configured to determine a projection angle and a projection distance for projecting the first image according to the display position;
[0165] The image display module 550 is used to control the projection device to project the first image at the projection angle and the projection distance.
[0166] In some optional examples, the speaker determination module 510 provided by the embodiment of the present disclosure includes:
[0167] A third determination submodule 511 is used to respectively obtain a position corresponding to each speaker group in a plurality of speaker groups, wherein the plurality of speaker groups are formed by combining speakers on the vehicle in a preset combination manner;
[0168] The fourth determining submodule 512 is configured to determine the at least one first speaker from the plurality of speaker groups based on positions corresponding to the speaker groups and the display position.
[0169] In some optional examples, the apparatus for controlling a speaker to play audio based on an image in a vehicle in an embodiment of the present disclosure further includes:
[0170] The grouping module 560 is used to obtain the multiple speaker groups formed by combining the speakers on the vehicle according to the preset combination method, and the preset combination method includes the number of combination elements used to form the speaker group, and the number of combination elements is an integer greater than or equal to 2, and each of the speaker groups includes at least one speaker arranged outside the vehicle cabin.
[0171] In some optional examples,
[0172] The pronunciation parameter determination module 520 in the embodiment of the present disclosure includes:
[0173] A weight determination submodule 521, configured to determine a sound weight corresponding to the at least one first speaker based on the sound source information corresponding to the at least one first speaker and the position of the first speaker;
[0174] A power determination submodule 522, configured to determine the power of the at least one first speaker based on the sound emission weight;
[0175] The control submodule 523 is configured to control the first speaker to play the audio at the power.
[0176] In some optional examples, the power determination submodule 522 in the embodiments of the present disclosure includes:
[0177] An attenuation coefficient determining unit 5221, configured to obtain an attenuation coefficient corresponding to the first speaker;
[0178] A correction unit 5222, configured to correct the voicing weight based on the attenuation coefficient corresponding to the first speaker to obtain a corrected voicing weight;
[0179] The power determination subunit 5223 is used to determine the power of the at least one first speaker based on the corrected utterance weight.
[0180] In some optional examples, the attenuation coefficient determination unit 5221 in the embodiments of the present disclosure is specifically used to: obtain environmental information corresponding to the first speaker; and determine the attenuation coefficient corresponding to the first speaker based on the environmental information corresponding to the first speaker.
[0181] In the device for controlling the audio playing of the speaker based on the image in the vehicle disclosed in the present invention, the various optional embodiments, optional implementation methods and optional examples disclosed above can be flexibly selected and combined as needed to achieve corresponding functions and effects, and the present disclosure does not list them one by one.
[0182] The device for controlling a speaker to play audio based on an image in a vehicle disclosed in the present invention corresponds to the embodiment of the method for controlling a speaker to play audio based on an image in a vehicle disclosed in the present invention, and the relevant contents can be referenced to each other and will not be repeated here.
[0183] The beneficial technical effects corresponding to the exemplary embodiment of the present device can be found in the corresponding beneficial technical effects of the above exemplary method section, which will not be repeated here.
[0184] Exemplary Electronic Devices
[0185] Fig.12 This is a structural diagram of an electronic device provided in an embodiment of the present disclosure. The electronic device 600 includes at least one processor 610 and a memory 620.
[0186] The processor 610 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 600 to perform desired functions.
[0187] The memory 620 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 610 may execute one or more computer program instructions to implement the method of controlling the speaker to play audio based on an image in a vehicle and / or other desired functions of the various embodiments of the present disclosure described above.
[0188] In one example, the electronic device 600 may further include: an input device 630 and an output device 640 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0189] The input device 630 may include: a keyboard, a mouse, various sensors, etc., wherein the sensors include but are not limited to: a pressure sensor for detecting seat pressure to determine whether there are passengers and the position of the passengers; a temperature sensor for monitoring the temperature in the cabin; a humidity sensor for monitoring the humidity in the cabin to assist in adjusting the interior environment of the vehicle; an air quality sensor for monitoring the air quality in the vehicle, such as carbon dioxide, volatile organic compounds (VOCs), etc.; a light sensor for detecting the light intensity inside and outside the vehicle; an acceleration sensor for detecting changes in the acceleration of the vehicle; a distance sensor for detecting the distance between the vehicle and other objects; a camera for monitoring the driver's facial expressions and line of sight; a touch screen sensor for interaction with the vehicle's infotainment system; biometric sensors, such as fingerprint recognition, facial recognition, etc.; a heart rate monitor for monitoring the driver's heart rate; a sound sensor for voice recognition and interaction to realize voice control functions; a seat sensor for monitoring the use of the seat, such as whether the seat is occupied and the body shape of the passenger; wireless communication sensors, such as Bluetooth, Wi-Fi, etc., for connecting with smart devices to realize data transmission and remote control. In addition to the examples given above, the processor may also include more or fewer sensors, which will not be described in detail here.
[0190] The output device 640 can output various information or signals to other hardware or devices, which may include displays, printers, vehicle audio, seats, windows, steering wheels, and communication networks and remote output devices connected thereto, etc. The display may include a plurality of different display screens such as a main driver's display screen, an accessory display screen, and a rear display screen, and the vehicle audio may include a plurality of speakers arranged at different positions in the vehicle cabin, and different display screens or speakers may work independently.
[0191] Of course, to simplify, Fig.12 Only some of the components related to the present disclosure in the electronic device 12 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 12 may also include any other appropriate components.
[0192] Exemplary computer program products and computer-readable storage media
[0193] In addition to the above-mentioned methods and devices, embodiments of the present disclosure may also provide a computer program product, including computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method of controlling the speaker to play audio in a vehicle based on an image according to various embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section.
[0194] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0195] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the processor executes the steps of the method of controlling the speaker to play audio in a vehicle based on an image according to various embodiments of the present disclosure described in the above “Exemplary Method” section.
[0196] Computer readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium is, for example, but not limited to, a system, device or device including electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable 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.
[0197] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and cannot be considered as necessary for each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, rather than limitation, and the above details do not limit the present disclosure to being implemented by adopting the above specific details.
[0198] Those skilled in the art may make various changes and modifications to the present disclosure without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present disclosure claims and their equivalents, the present disclosure is also intended to include these modifications and variations.
Claims
1. A method for controlling a speaker to play audio based on an image in a vehicle, comprising: Acquire a display position of a first image that needs to be projected by a projection device outside a vehicle cabin; Based on the display position, determining at least one first speaker, where the at least one first speaker is used to play audio corresponding to the first image; Determining a pronunciation parameter of the at least one first speaker based on a sound source position corresponding to the at least one first speaker and a position of the at least one first speaker; The at least one first speaker is controlled to play the audio according to the pronunciation parameter.
2. The method according to claim 1, wherein: The obtaining of a display position where the projection device needs to project the first image outside the vehicle cabin includes: Acquire a projection angle and a projection distance for projecting the first image from the projection device; The display position is determined based on the projection angle and the projection distance.
3. The method according to claim 1, wherein: The obtaining of a display position of a first image to be projected by the projection device outside the vehicle cabin includes: Acquiring a target position, wherein the target position is located outside the vehicle cabin; Based on the target position, the display position is determined.
4. The method according to claim 3, after determining the display position, further comprising: Determining a projection angle and a projection distance for projecting the first image according to the display position; The projection device is controlled to project the first image at the projection angle and the projection distance.
5. The method according to any one of claims 1 to 4, wherein: The determining at least one first speaker based on the display position includes: Respectively obtaining a position corresponding to each speaker group in a plurality of speaker groups, wherein the plurality of speaker groups are formed by combining speakers on the vehicle in a preset combination manner; The at least one first speaker is determined from the plurality of speaker groups based on positions corresponding to the speaker groups and the display position.
6. The method according to claim 5, before respectively obtaining the position corresponding to each speaker group in the plurality of speaker groups, further comprising: Acquire the multiple speaker groups formed by combining the speakers on the vehicle according to the preset combination method, wherein the preset combination method includes the number of combination elements used to form the speaker group, the number of combination elements is an integer greater than or equal to 2, and each of the speaker groups includes at least one speaker arranged outside the vehicle cabin.
7. The method according to claim 1, wherein: The determining, based on the sound source position corresponding to the at least one first speaker and the position of the at least one first speaker, the pronunciation parameter of the at least one first speaker comprises: Determining a sound weight corresponding to the at least one first speaker based on a sound source position corresponding to the at least one first speaker and a position of the at least one first speaker; Determining the power of the at least one first speaker based on the utterance weight; The at least one first speaker is controlled to play the audio at the power.
8. The method according to claim 7, wherein: The determining the power of the at least one first speaker based on the sound emission weight comprises: Obtaining an attenuation coefficient corresponding to the at least one first speaker; Correcting the voicing weight based on the attenuation coefficient corresponding to the at least one first speaker to obtain a corrected voicing weight; Based on the corrected voicing weight, a power of the at least one first speaker is determined.
9. The method according to claim 8, wherein: The obtaining of the attenuation coefficient corresponding to the at least one first speaker includes: Acquire environment information corresponding to the at least one first speaker; Based on the environmental information, an attenuation coefficient corresponding to the at least one first speaker is determined.
10. A device for controlling a speaker to play audio based on an image in a vehicle, comprising: A display position determination module, used to obtain a display position of a first image that needs to be projected by the projection device outside the vehicle cabin; a speaker determination module, configured to determine at least one first speaker based on the display position, wherein the at least one first speaker is configured to play audio corresponding to the first image; a pronunciation parameter determination module, configured to determine a pronunciation parameter of the at least one first speaker based on a sound source position corresponding to the at least one first speaker and a position of the at least one first speaker; The audio playing module is used to control the at least one first speaker to play the audio according to the pronunciation parameters.
11. A playback system, comprising: A plurality of loudspeakers, a projection device and a sound source position adjustment device, wherein the plurality of loudspeakers are arranged inside and outside a vehicle cabin, or arranged outside the vehicle cabin; the projection device is arranged on the vehicle; The sound source position adjustment device is used for: Acquiring a display position of a first image outside the vehicle cabin from the projection device; Based on the display position, determining at least one first speaker from the plurality of speakers, the at least one first speaker being used to play audio corresponding to the first image; Determining a pronunciation parameter of the at least one first speaker based on a sound source position corresponding to the at least one first speaker and a position of the at least one first speaker; The at least one first speaker is controlled to play the audio according to the pronunciation parameter. 12 . A computer-readable storage medium storing a computer program, wherein the computer program is used to execute the method for controlling a speaker to play audio based on an image in a vehicle according to claim 1 .
13. An electronic device, comprising: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method for controlling a speaker to play audio in a vehicle based on an image as described in any one of claims 1 to 9.