Automobile audio playing method, computer readable storage medium and system

文档序号:1186369 发布日期:2020-09-22 浏览:18次 中文

阅读说明:本技术 汽车音频播放方法、计算机可读存储介质和系统 (Automobile audio playing method, computer readable storage medium and system ) 是由 曾永刚 于 2019-03-14 设计创作,主要内容包括:本发明提供的汽车音频播放方法、计算机可读存储介质和系统,其中的方法包括:为不同音区内的显示屏分配不同的显示屏编号,为不同音区内的扬声器分配不同的扬声器编号;为同一音区内的显示屏和扬声器创建音频传输线路,每一音频传输线路与显示屏编号和扬声器编号相对应;获取到当前显示屏发送的音频信号后,确定当前显示屏的显示屏编号;选择与当前显示屏的显示屏编号对应的音频传输线路作为目标传输线路,与目标传输线路对应的扬声器编号作为目标扬声器编号;将音频信号发送至与目标扬声器编号对应的扬声器播放。由此可以实现每一音区内的扬声器仅播放同一音区内的音频信号,不同音区之间不会相互干扰,提升了用户体验。(The invention provides an automobile audio playing method, a computer readable storage medium and a system, wherein the method comprises the following steps: allocating different display screen numbers to the display screens in different sound zones, and allocating different loudspeaker numbers to the loudspeakers in different sound zones; audio transmission lines are established for a display screen and a loudspeaker in the same sound zone, and each audio transmission line corresponds to the display screen number and the loudspeaker number; after an audio signal sent by a current display screen is acquired, determining the display screen number of the current display screen; selecting an audio transmission line corresponding to the display screen number of the current display screen as a target transmission line, and selecting a loudspeaker number corresponding to the target transmission line as a target loudspeaker number; and sending the audio signal to the loudspeaker corresponding to the target loudspeaker number for playing. Therefore, the loudspeaker in each sound zone can only play the audio signals in the same sound zone, the different sound zones cannot interfere with each other, and the user experience is improved.)

1. An automobile audio playing method is characterized by comprising the following steps:

allocating different display screen numbers to the display screens in different sound zones, and allocating different loudspeaker numbers to the loudspeakers in different sound zones; different sound zones correspond to different spatial ranges within the vehicle cabin;

audio transmission lines are established for a display screen and a loudspeaker in the same sound zone, and each audio transmission line corresponds to the display screen number and the loudspeaker number;

after an audio signal sent by a current display screen is acquired, determining the display screen number of the current display screen;

selecting an audio transmission line corresponding to the display screen number of the current display screen as a target transmission line, and selecting a loudspeaker number corresponding to the target transmission line as a target loudspeaker number;

and sending the audio signal to a loudspeaker corresponding to the target loudspeaker number for playing.

2. The car audio playback method according to claim 1, wherein the step of creating audio transmission lines for a display screen and a speaker in the same sound zone, each audio transmission line corresponding to the display screen number and the speaker number comprises:

setting the audio stream attribute of each display screen, and associating the audio stream attribute of each display screen with the display screen number;

setting the corresponding relation between the thread of each sound mixing module and the attribute of the audio stream so as to realize that each sound mixing module is only used for carrying out sound mixing processing on the audio signal sent by one display screen;

and determining the corresponding relation between the output end of each sound mixing module and the input end of the time division multiplexing interface according to the loudspeaker number connected with the output end of the time division multiplexing interface.

3. The car audio playing method according to claim 2, further comprising the steps of:

responding to an audio sharing request sent by a current display screen, and acquiring a sharing display screen number in the audio sharing request;

selecting an audio transmission line corresponding to the shared display screen number as a shared transmission line, and selecting a loudspeaker number corresponding to the shared transmission line as a shared loudspeaker number;

and sending the audio signal to the loudspeaker corresponding to the shared loudspeaker number according to the shared transmission line for playing.

4. The car audio playing method according to claim 3, wherein the step of sending the audio signal to the speaker corresponding to the shared speaker number for playing according to the shared transmission line comprises:

adjusting the corresponding relation between the thread of the audio mixing module and the attribute of the audio stream: establishing a connection relation between a sound mixing module corresponding to the shared display screen and the current display screen; or the like, or, alternatively,

adjusting the corresponding relation between the output end of the sound mixing module and the input end of the time division multiplexing interface: and establishing the connection relation between the sound mixing module corresponding to the current display screen and the input end of the time division multiplexing interface according to the corresponding relation between the shared loudspeaker serial number and the output end of the time division multiplexing interface.

5. The automobile audio playing method according to any one of claims 1 to 4, wherein the step of determining the display screen number of the current display screen after acquiring the audio signal sent by the current display screen further comprises:

and acquiring the current user number sent by the current display screen, and searching the display screen number of the current display screen by adopting the current user number according to the corresponding relation between the pre-stored user number and the display screen number.

6. The automobile audio playing method according to claim 5, wherein the step of determining the display screen number of the current display screen after the audio signal sent by the current display screen is acquired further comprises:

and distributing different user numbers for the display screens in different sound zones, wherein the user numbers correspond to the display screen numbers.

7. The car audio playback method according to any one of claims 1 to 4, further comprising the steps of:

in response to a volume adjustment request sent by a current display screen, resolving the volume adjustment request into a volume adjustment signal suitable for being responded by a loudspeaker;

and sending the volume adjusting signal to a loudspeaker corresponding to the target loudspeaker number to adjust the loudspeaker volume.

8. A computer-readable storage medium, wherein the storage medium stores program instructions, and the computer reads the program instructions and executes the car audio playing method according to any one of claims 1 to 7.

9. An electronic device, comprising a processor and a memory, wherein the memory stores program instructions, and the processor reads the program instructions and executes the car audio playing method according to any one of claims 1 to 7.

10. An automobile audio playing system is characterized by comprising a processor, a plurality of display screens, a plurality of sound mixing modules, a time division multiplexing interface and a plurality of vehicle-mounted speakers; wherein:

the display screens are arranged in different sound areas, and the loudspeakers are arranged in the different sound areas;

the processor executes the car audio playing method of any one of claims 1 to 7 to control the speakers in each sound zone to play only the audio signals of the display screen in the same sound zone; or the loudspeaker in each sound zone only plays the audio signal of the display screen of the audio sharing request end.

Technical Field

The invention relates to the technical field of internet automobile audio processing, in particular to an automobile audio playing method, a computer readable storage medium and electronic equipment.

Background

In order to provide more and better experience for users, automobiles produced by the current internet vehicle enterprises are all provided with a plurality of Display screens, such as a central control screen, an instrument screen, a HUD (Head Up Display), a front-Up screen, a rear row screen and the like. Currently, a central control screen is configured with a CPU and a set of sound system for one display screen. The copilot screen and the rear row screen are three independent display screens which are respectively arranged in front of the copilot, behind the seat in the driving position and the copilot. The control of the secondary driving screen and the rear row screen is independent of the control of the central control screen, namely the secondary driving screen and the rear row screen are independently provided with a CPU. Although the control of the secondary driving screen and the rear row screen is independent from the control of the central control screen, the same sound system is adopted for the secondary driving screen, the rear row screen and the central control screen. The audio playing principle of each display screen on the vehicle is shown in fig. 1, each display screen corresponds to one user, the audio streams of n display screens are all sent to the audio mixing module to be mixed together, the audio mixing module outputs audio signals corresponding to different display screens after audio mixing to a vehicle-mounted power amplifier in sequence, and then the audio signals are played through 7-8 loudspeakers on the vehicle, so that each passenger on the vehicle can hear the sound played by each display screen, and the user experience is poor.

Disclosure of Invention

The invention aims to provide an automobile audio playing method, a computer readable storage medium and electronic equipment, which can realize that an audio signal generated by each display screen in a vehicle-mounted system is only played by a loudspeaker of a sound zone where the display screen is located, and avoid influencing other passengers.

Therefore, the invention provides an automobile audio playing method, which comprises the following steps:

allocating different display screen numbers to the display screens in different sound zones, and allocating different loudspeaker numbers to the loudspeakers in different sound zones; different sound zones correspond to different spatial ranges within the vehicle cabin;

audio transmission lines are established for a display screen and a loudspeaker in the same sound zone, and each audio transmission line corresponds to the display screen number and the loudspeaker number;

after an audio signal sent by a current display screen is acquired, determining the display screen number of the current display screen;

selecting an audio transmission line corresponding to the display screen number of the current display screen as a target transmission line, and selecting a loudspeaker number corresponding to the target transmission line as a target loudspeaker number;

and sending the audio signal to a loudspeaker corresponding to the target loudspeaker number for playing.

Optionally, in the above method for playing car audio, audio transmission lines are created for a display screen and a speaker in the same sound zone, and the step of each audio transmission line corresponding to the display screen number and the speaker number includes:

setting the audio stream attribute of each display screen, and associating the audio stream attribute of each display screen with the display screen number;

setting the corresponding relation between the thread of each sound mixing module and the attribute of the audio stream so as to realize that each sound mixing module is only used for carrying out sound mixing processing on the audio signal sent by one display screen;

and determining the corresponding relation between the output end of each sound mixing module and the input end of the time division multiplexing interface according to the loudspeaker number connected with the output end of the time division multiplexing interface.

Optionally, the above car audio playing method further includes the following steps:

responding to an audio sharing request sent by a current display screen, and acquiring a sharing display screen number in the audio sharing request;

selecting an audio transmission line corresponding to the shared display screen number as a shared transmission line, and selecting a loudspeaker number corresponding to the shared transmission line as a shared loudspeaker number;

and sending the audio signal to the loudspeaker corresponding to the shared loudspeaker number according to the shared transmission line for playing.

Optionally, in the automobile audio playing method, the step of sending the audio signal to the speaker corresponding to the shared speaker number for playing according to the shared transmission line includes:

adjusting the corresponding relation between the thread of the audio mixing module and the attribute of the audio stream: establishing a connection relation between a sound mixing module corresponding to the shared display screen and the current display screen; or the like, or, alternatively,

adjusting the corresponding relation between the output end of the sound mixing module and the input end of the time division multiplexing interface: and establishing the connection relation between the sound mixing module corresponding to the current display screen and the input end of the time division multiplexing interface according to the corresponding relation between the shared loudspeaker serial number and the output end of the time division multiplexing interface.

Optionally, in the method for playing the car audio, after the audio signal sent by the current display screen is acquired, the step of determining the display screen number of the current display screen further includes:

and acquiring the current user number sent by the current display screen, and searching the display screen number of the current display screen by adopting the current user number according to the corresponding relation between the pre-stored user number and the display screen number.

Optionally, after the audio signal sent by the current display screen is acquired, the step of determining the display screen number of the current display screen further includes:

and distributing different user numbers for the display screens in different sound zones, wherein the user numbers correspond to the display screen numbers.

Optionally, the above car audio playing method further includes the following steps:

in response to a volume adjustment request sent by a current display screen, resolving the volume adjustment request into a volume adjustment signal suitable for being responded by a loudspeaker;

and sending the volume adjusting signal to a loudspeaker corresponding to the target loudspeaker number to adjust the loudspeaker volume.

The invention also provides a computer-readable storage medium, wherein program instructions are stored in the storage medium, and the computer reads the program instructions and then executes the automobile audio playing method.

The invention also provides electronic equipment which comprises a processor and a memory, wherein the memory is internally stored with program instructions, and the processor reads the program instructions and then executes the automobile audio playing method.

Based on the same invention concept, the invention also provides an automobile audio playing system, which comprises a processor, a plurality of display screens, a plurality of sound mixing modules, a time division multiplexing interface and a plurality of vehicle-mounted speakers, wherein the audio mixing modules are connected with the vehicle-mounted speakers; wherein:

the display screens are arranged in different sound areas, and the loudspeakers are arranged in the different sound areas;

the processor executes the automobile audio playing method to control the loudspeaker in each sound zone to only play the audio signal of the display screen in the same sound zone; or the loudspeaker in each sound zone only plays the audio signal of the display screen of the audio sharing request end.

Compared with the prior art, the technical scheme provided by the invention at least has the following beneficial effects:

the invention provides an automobile audio playing method, a computer readable storage medium and a system, wherein the method comprises the following steps: allocating different display screen numbers to the display screens in different sound zones, and allocating different loudspeaker numbers to the loudspeakers in different sound zones; different sound zones correspond to different spatial ranges within the vehicle cabin; audio transmission lines are established for a display screen and a loudspeaker in the same sound zone, and each audio transmission line corresponds to the display screen number and the loudspeaker number; after an audio signal sent by a current display screen is acquired, determining the display screen number of the current display screen; selecting an audio transmission line corresponding to the display screen number of the current display screen as a target transmission line, and selecting a loudspeaker number corresponding to the target transmission line as a target loudspeaker number; and sending the audio signal to a loudspeaker corresponding to the target loudspeaker number for playing. Therefore, the effect that the loudspeaker in each sound zone only plays the audio signal in the same sound zone is reduced to the minimum for passengers in other sound zones, and meanwhile, the passengers in each sound zone are not interfered by the sound of other sound zones, so that the user experience is improved.

Drawings

FIG. 1 is a schematic block diagram of audio signal processing of multiple display screens in an automotive audio playback system according to the prior art;

FIG. 2 is a flowchart illustrating a method for playing car audio according to an embodiment of the present invention;

FIG. 3 is a schematic block diagram of an audio playback system for a vehicle according to an embodiment of the present invention;

fig. 4 is a schematic diagram of a hardware connection relationship of an electronic device according to an embodiment of the present invention;

fig. 5 is a block diagram of an automotive audio playback system according to an embodiment of the present invention.

Detailed Description

In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.

In the following description, specific details are set forth in order to provide a thorough understanding of the present invention. The invention can be implemented in a number of ways different from those described herein and similar generalizations can be made by those skilled in the art without departing from the spirit of the invention. The invention is therefore not limited to the specific implementations disclosed below.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种云手机音频数据处理方法和系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!