CN116419192A - Audio management method and system, vehicle-mounted terminal and storage medium - Google Patents
Audio management method and system, vehicle-mounted terminal and storage medium Download PDFInfo
- Publication number
- CN116419192A CN116419192A CN202111673153.9A CN202111673153A CN116419192A CN 116419192 A CN116419192 A CN 116419192A CN 202111673153 A CN202111673153 A CN 202111673153A CN 116419192 A CN116419192 A CN 116419192A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- focus
- audio
- audio data
- channel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/40—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
- H04W4/48—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/30—Connection release
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种音频管理方法及系统、车载终端及存储介质。其中,音频管理方法包括:响应于建立蓝牙连接,接收通过蓝牙协议传递的通道指令;通道指令表征音频数据的传输通道;若传输通道是HFP通道,则接收音频数据,所述音频数据包括通话音频流和通话状态;根据通话状态,请求蓝牙电话音频焦点;若传输通道是A2DP通道,则接收音频数据,所述音频数据包括多媒体音频流和播放属性;根据播放属性,确定是否请求蓝牙音乐焦点。本发明针对HFP通道传输的音频数据,根据通话状态管理蓝牙电话音频焦点,从而实现通话音频流的管理;针对A2DP通道传输的音频数据,根据播放属性管理蓝牙音乐焦点,从而实现对不同的多媒体音频流进行管理。
The invention discloses an audio management method and system, a vehicle terminal and a storage medium. Wherein, the audio management method includes: in response to establishing a Bluetooth connection, receiving a channel instruction transmitted through the Bluetooth protocol; the channel instruction represents a transmission channel of audio data; if the transmission channel is an HFP channel, then receiving audio data, the audio data includes call audio Stream and call status; according to the call status, request the Bluetooth phone audio focus; if the transmission channel is an A2DP channel, then receive audio data, the audio data includes multimedia audio streams and playback attributes; determine whether to request the Bluetooth music focus according to the playback attributes. For the audio data transmitted by the HFP channel, the present invention manages the audio focus of the Bluetooth phone according to the call state, thereby realizing the management of the call audio stream; for the audio data transmitted by the A2DP channel, manages the focus of the Bluetooth music according to the playback attribute, thereby realizing different multimedia audio flow management.
Description
技术领域technical field
本发明涉及音频技术领域,特别涉及一种音频管理方法及系统、车载终端及存储介质。The invention relates to the field of audio technology, in particular to an audio management method and system, a vehicle-mounted terminal and a storage medium.
背景技术Background technique
目前,绝大多数的车载终端都支持蓝牙功能。当车载终端和手机蓝牙连接成功之后,车载终端相当于手机的蓝牙耳机,可以外放手机播放的音频。如果手机播放的是音乐,还可以通过车载终端控制音乐的播放、暂停、上下曲等功能。At present, the vast majority of vehicle-mounted terminals support the Bluetooth function. When the vehicle-mounted terminal and the mobile phone are successfully connected by Bluetooth, the vehicle-mounted terminal is equivalent to the Bluetooth headset of the mobile phone, which can play the audio played by the mobile phone. If the mobile phone is playing music, functions such as music playback, pause, and song up and down can also be controlled through the vehicle-mounted terminal.
车载终端和手机的蓝牙连接之后,无论车载终端正在播放什么音频,手机通过蓝牙发送的所有音频都会在车载终端进行输出。假如车载终端正在播放FM(调频)广播,可能会被手机发来的消息提示音请求焦点的动作所打断,这样会给正在听FM广播的用户带来不好的体验。After the Bluetooth connection between the vehicle terminal and the mobile phone, no matter what audio is being played by the vehicle terminal, all the audio sent by the mobile phone through Bluetooth will be output on the vehicle terminal. If the vehicle-mounted terminal is playing FM (frequency modulation) radio, it may be interrupted by the action of the message prompt tone requesting focus sent by the mobile phone, which will bring bad experience to the user listening to the FM radio.
发明内容Contents of the invention
本申请的一个目的在于提供一种音频管理方法及系统、车载终端及存储介质,其优势在于,针对不同传输通道通过蓝牙发送的音频数据,进行不同的音频管理,以提升用户体验。具体地,针对HFP(Hands-free Profile,蓝牙设备控制电话的协议)通道传输的音频数据,根据通话状态管理蓝牙电话音频焦点,从而实现通话音频流的管理;针对A2DP(Advanced Audio Distribution Profile,蓝牙音频传输模型协定)通道传输的音频数据,根据播放属性管理蓝牙音乐焦点,从而实现对不同的多媒体音频流进行管理。An object of the present application is to provide an audio management method and system, a vehicle-mounted terminal, and a storage medium, which have the advantage of performing different audio management for audio data sent through Bluetooth through different transmission channels, so as to improve user experience. Specifically, for the audio data transmitted by the HFP (Hands-free Profile, Bluetooth device control phone protocol) channel, manage the audio focus of the Bluetooth phone according to the call state, thereby realizing the management of the call audio stream; for A2DP (Advanced Audio Distribution Profile, Bluetooth Audio transmission model protocol) channel transmits audio data, and manages the Bluetooth music focus according to the playback attribute, so as to realize the management of different multimedia audio streams.
本申请的另一个目的在于提供一种音频管理方法及系统、车载终端及存储介质,其优势在于,根据连续两次获取的播放状态和播放进度确定通过A2DP通道接收的多媒体音频流是否为音乐,从而对音乐和非音乐进行不同的音频管理,具体地,若为音乐,则请求蓝牙音乐焦点,进而可以在获取蓝牙音乐焦点之后播放音乐;若不为音乐,则不请求蓝牙音乐焦点。Another object of the present application is to provide an audio management method and system, a vehicle-mounted terminal, and a storage medium. Its advantage is to determine whether the multimedia audio stream received through the A2DP channel is music according to the playback status and playback progress acquired twice in a row. Therefore, different audio management is performed for music and non-music. Specifically, if it is music, the Bluetooth music focus is requested, and then the music can be played after obtaining the Bluetooth music focus; if it is not music, the Bluetooth music focus is not requested.
本申请的另一个目的在于提供一种音频管理方法及系统、车载终端及存储介质,其优势在于,响应于请求蓝牙音乐焦点且正在播放非蓝牙的多媒体音频数据,请求到蓝牙音乐焦点,释放非蓝牙的多媒体音频焦点,可以实现停止播放非蓝牙的多媒体音频数据,切换为播放接收的音乐。Another object of the present application is to provide an audio management method and system, a vehicle-mounted terminal, and a storage medium. Its advantage is that, in response to requesting Bluetooth music focus and playing non-Bluetooth multimedia audio data, the Bluetooth music focus is requested, and the non-Bluetooth music focus is released. The Bluetooth multimedia audio focus can stop playing non-Bluetooth multimedia audio data and switch to playing received music.
本申请的另一个目的在于提供一种音频管理方法及系统、车载终端及存储介质,其优势在于,响应于请求蓝牙音乐焦点且正在播放非多媒体音频数据,根据不同的预设策略请求蓝牙音乐焦点,可以实现对正在播放的非多媒体音频数据以及通过蓝牙接收的音乐进行不同的管理。Another object of the present application is to provide an audio management method and system, a vehicle-mounted terminal, and a storage medium. Its advantage is that, in response to requesting Bluetooth music focus and non-multimedia audio data is being played, request Bluetooth music focus according to different preset strategies , which can realize different management of non-multimedia audio data being played and music received via Bluetooth.
本申请的另一个目的在于提供一种音频管理方法及系统、车载终端及存储介质,其优势在于,响应于请求蓝牙音乐焦点且未播放任何音频数据,请求蓝牙音乐焦点,以实现播放接收的音乐。Another object of the present application is to provide an audio management method and system, a vehicle-mounted terminal, and a storage medium. Its advantage is that, in response to requesting the Bluetooth music focus and not playing any audio data, request the Bluetooth music focus to realize playing the received music .
本申请的另一个目的在于提供一种音频管理方法及系统、车载终端及存储介质,其优势在于,针对HFP通道传输的音频数据,根据不同的通话状态对其进行不同的管理,具体地,响应于来电状态,请求来电铃声焦点,以实现对来电铃声进行播放;响应于接通状态,请求蓝牙通话焦点,以实现对通话音频流进行播放;响应于挂断状态,在请求到蓝牙通话焦点之后释放所述蓝牙通话焦点。Another object of the present application is to provide an audio management method and system, a vehicle-mounted terminal, and a storage medium. Its advantage is that it can be managed differently according to different call states for the audio data transmitted by the HFP channel. Specifically, the response In the incoming call state, request the ringtone focus of the incoming call to play the ringtone of the incoming call; in response to the connected state, request the Bluetooth call focus to play the audio stream of the call; in response to the hang-up state, after requesting the Bluetooth call focus Release the Bluetooth call focus.
本申请的第一方面提供一种音频管理方法,包括以下步骤:The first aspect of the present application provides an audio management method, comprising the following steps:
响应于建立蓝牙连接,接收通过蓝牙协议传递的通道指令;所述通道指令表征音频数据的传输通道;Responsive to establishing a Bluetooth connection, receiving a channel instruction delivered through the Bluetooth protocol; the channel instruction represents a transmission channel of audio data;
若所述传输通道是HFP通道,则接收音频数据,所述音频数据包括通话音频流和通话状态;根据所述通话状态,请求蓝牙电话音频焦点;If the transmission channel is an HFP channel, audio data is received, and the audio data includes a call audio stream and a call state; according to the call state, a Bluetooth phone audio focus is requested;
若所述传输通道是A2DP通道,则接收音频数据,所述音频数据包括多媒体音频流和播放属性;根据所述播放属性,确定是否请求蓝牙音乐焦点。If the transmission channel is an A2DP channel, audio data is received, and the audio data includes a multimedia audio stream and a playback attribute; according to the playback attribute, it is determined whether to request Bluetooth music focus.
本申请的第二方面提供一种音频管理系统,包括车载终端和移动终端,所述车载终端包括扬声器,所述移动终端与所述车载终端建立蓝牙连接;The second aspect of the present application provides an audio management system, including a vehicle-mounted terminal and a mobile terminal, the vehicle-mounted terminal includes a speaker, and the mobile terminal establishes a Bluetooth connection with the vehicle-mounted terminal;
所述移动终端,通过蓝牙协议向所述车载终端传递通道指令;其中,所述通道指令表征音频数据的传输通道;The mobile terminal transmits a channel instruction to the vehicle-mounted terminal through the Bluetooth protocol; wherein, the channel instruction represents a transmission channel of audio data;
所述车载终端,接收所述通道指令,若所述传输通道是HFP通道,则接收音频数据,所述音频数据包括通话音频流和通话状态;根据所述通话状态,请求蓝牙电话音频焦点;若所述传输通道是A2DP通道,则接收音频数据,所述音频数据包括多媒体音频流和播放属性;根据所述播放属性,确定是否请求蓝牙音乐焦点。The vehicle-mounted terminal receives the channel instruction, if the transmission channel is an HFP channel, then receives audio data, and the audio data includes a call audio stream and a call state; according to the call state, request the Bluetooth phone audio focus; if If the transmission channel is an A2DP channel, audio data is received, and the audio data includes multimedia audio streams and playback attributes; according to the playback attributes, determine whether to request Bluetooth music focus.
本申请的第三方面提供一种车载终端,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现第一方面所述的音频管理方法。A third aspect of the present application provides a vehicle-mounted terminal, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the computer program described in the first aspect when executing the computer program. Audio management methods.
本申请的第四方面提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现第一方面所述的音频管理方法。A fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the audio management method described in the first aspect is implemented.
附图说明Description of drawings
图1为本发明实施例1提供的一种音频管理方法的流程图。FIG. 1 is a flowchart of an audio management method provided by Embodiment 1 of the present invention.
图2为本发明实施例1提供的一种音频管理方法的应用场景图。FIG. 2 is an application scenario diagram of an audio management method provided by
图3为本发明实施例1提供的一种步骤S2的详细流程图。FIG. 3 is a detailed flow chart of step S2 provided by
图4为本发明实施例1提供的一种音频管理方法的局部流程图。FIG. 4 is a partial flow chart of an audio management method provided by Embodiment 1 of the present invention.
图5为本发明实施例1提供的一种步骤S3的详细流程图。FIG. 5 is a detailed flowchart of step S3 provided by
图6为本发明实施例2提供的一种音频管理系统的结构框图。Fig. 6 is a structural block diagram of an audio management system provided by Embodiment 2 of the present invention.
图7为本发明实施例3提供的一种车载终端的结构示意图。FIG. 7 is a schematic structural diagram of a vehicle-mounted terminal provided by
具体实施方式Detailed ways
下面通过实施例的方式进一步说明本发明,但并不因此将本发明限制在所述的实施例范围之中。The present invention is further illustrated below by means of examples, but the present invention is not limited to the scope of the examples.
实施例1Example 1
图1为本实施例提供的一种音频管理方法流程示意图,该音频管理方法可以由音频管理装置执行,该音频管理装置可以通过软件和/或硬件的方式实现,该音频管理装置可以为车载终端的部分或全部。本实施例中的车载终端也可以称为车机,是安装在车辆中的车载信息娱乐产品,能够实现人与车、车与外界的信息通讯。Figure 1 is a schematic flow chart of an audio management method provided in this embodiment, the audio management method can be executed by an audio management device, the audio management device can be implemented by software and/or hardware, and the audio management device can be a vehicle-mounted terminal part or all of . The vehicle-mounted terminal in this embodiment may also be referred to as a vehicle-mounted terminal, which is a vehicle-mounted infotainment product installed in a vehicle, and can realize information communication between people and the vehicle, and between the vehicle and the outside world.
下面以车载终端为执行主体介绍本实施例提供的音频管理方法。如图1所示,本实施例提供的音频管理方法可以包括以下步骤S1~S3:The audio management method provided by this embodiment is introduced below with the vehicle-mounted terminal as the execution subject. As shown in Figure 1, the audio management method provided by this embodiment may include the following steps S1-S3:
步骤S1、响应于建立蓝牙连接,接收通过蓝牙协议传递的通道指令;所述通道指令表征音频数据的传输通道。Step S1. In response to establishing a Bluetooth connection, receive a channel instruction transmitted through the Bluetooth protocol; the channel instruction represents a transmission channel of audio data.
图2用于示出一种音频管理方法的应用场景图。如图2所示,车载终端与移动终端之间建立蓝牙连接,车载终端接收移动终端通过蓝牙协议传递的通道指令。Fig. 2 is a diagram illustrating an application scenario of an audio management method. As shown in FIG. 2 , a Bluetooth connection is established between the vehicle-mounted terminal and the mobile terminal, and the vehicle-mounted terminal receives channel instructions transmitted by the mobile terminal through the Bluetooth protocol.
步骤S2、若所述传输通道是HFP通道,则接收音频数据,所述音频数据包括通话音频流和通话状态;根据所述通话状态,请求蓝牙电话音频焦点。针对HFP通道传输的音频数据,根据通话状态管理蓝牙电话音频焦点,从而实现通话音频流的管理。Step S2. If the transmission channel is an HFP channel, receive audio data, the audio data includes call audio stream and call status; request Bluetooth phone audio focus according to the call status. For the audio data transmitted by the HFP channel, manage the audio focus of the Bluetooth phone according to the call state, so as to realize the management of the call audio stream.
在可选的一种实施方式中,如图3所示,步骤S2具体包括以下步骤S21~S22:In an optional implementation manner, as shown in FIG. 3, step S2 specifically includes the following steps S21-S22:
步骤S21、响应于来电状态,请求来电铃声焦点。在具体实施中,若通话状态为来电状态,则在请求来电铃声焦点之后可以直接获取到来电铃声焦点,从而对来电铃声进行播放。Step S21, in response to the incoming call status, requesting the ringtone focus of the incoming call. In a specific implementation, if the call state is an incoming call state, the incoming ringtone focus may be obtained directly after requesting the incoming ringtone focus, so as to play the incoming call ringtone.
步骤S22、响应于接通状态,请求蓝牙通话焦点。在具体实施中,若通话状态为接通状态,则在请求蓝牙通话焦点之后可以直接获取到蓝牙通话焦点,从而对通话音频流进行播放。Step S22, in response to the connected state, requesting the Bluetooth call focus. In a specific implementation, if the call state is connected, the Bluetooth call focus can be obtained directly after the Bluetooth call focus is requested, so as to play the call audio stream.
在可选的一种实施方式中,如图4所示,在上述步骤S22之后还包括以下步骤S23:In an optional implementation manner, as shown in FIG. 4, the following step S23 is further included after the above step S22:
步骤S23、响应于挂断状态,在请求到蓝牙通话焦点之后释放所述蓝牙通话焦点。在具体实施中,若通话状态从接通状态切换为挂断状态,则将请求到的蓝牙通话焦点进行释放。Step S23 , in response to the hang-up state, releasing the Bluetooth call focus after the Bluetooth call focus is requested. In a specific implementation, if the call state is switched from the connected state to the hung up state, the requested Bluetooth call focus is released.
步骤S3、接收音频数据,所述音频数据包括多媒体音频流和播放属性;根据所述播放属性,确定是否请求蓝牙音乐焦点。针对A2DP通道传输的音频数据,根据播放属性管理蓝牙音乐焦点,从而实现对不同的多媒体音频流进行管理。Step S3: Receive audio data, the audio data includes multimedia audio stream and play attribute; according to the play attribute, determine whether to request Bluetooth music focus. For the audio data transmitted by the A2DP channel, the Bluetooth music focus is managed according to the playback attributes, so as to realize the management of different multimedia audio streams.
其中,所述多媒体音频流可以包括音乐、录音、语音消息、提示音等。所述播放属性可以包括播放状态、播放进度等。具体地,播放状态包括播放、暂停、停止等。Wherein, the multimedia audio stream may include music, recording, voice message, prompt tone and so on. The playback attributes may include playback status, playback progress, and the like. Specifically, the playing state includes playing, pausing, stopping and so on.
在可选的一种实施方式中,如图5所示,步骤S3具体包括以下步骤S31~S33:In an optional implementation manner, as shown in FIG. 5, step S3 specifically includes the following steps S31-S33:
步骤S31、判断是否连续两次获取的播放状态均为播放且连续两次获取的播放进度发生变化;若是,则执行步骤S32,若否,则执行步骤S33。Step S31 , judging whether the playback states acquired twice in a row are both playing and the playback progress acquired twice in a row changes; if yes, execute step S32 , and if not, execute step S33 .
步骤S32、请求蓝牙音乐焦点。若连续两次获取的播放状态均为播放且连续两次获取的播放进度发生变化,则可以确定接收的多媒体音频流的类型为音乐,此时请求蓝牙音乐焦点,进而可以在获取蓝牙音乐焦点之后播放接收的多媒体音频流。Step S32, request Bluetooth music focus. If the playback state acquired twice in a row is playing and the playback progress of the two consecutive acquisitions changes, it can be determined that the type of the received multimedia audio stream is music. At this time, the Bluetooth music focus is requested, and then the Bluetooth music focus can be obtained. Play the received multimedia audio stream.
步骤S33、不请求蓝牙音乐焦点。若连续两次获取的播放状态不均为播放或者连续两次获取的播放进度未发生变化,则可以确定接收的多媒体音频流的类型不为音乐,此时不请求蓝牙音乐焦点,这样接收的多媒体音频流则无法进行播放。本方案中通过A2DP通道接收的多媒体音频流为非音乐类型,具体可以包括录音、语音消息、提示音等。Step S33, do not request the Bluetooth music focus. If the playback status of the two consecutive acquisitions is not playing or the playback progress of the two consecutive acquisitions does not change, it can be determined that the type of the received multimedia audio stream is not music, and the Bluetooth music focus is not requested at this time. Audio streams cannot be played. In this solution, the multimedia audio stream received through the A2DP channel is of a non-music type, and may specifically include recording, voice message, prompt tone, and the like.
在步骤S32具体实施的一个实施例中,响应于请求蓝牙音乐焦点且正在播放非蓝牙的多媒体音频数据,请求到蓝牙音乐焦点,释放非蓝牙的多媒体音频焦点。其中,非蓝牙的多媒体音频数据是指不是通过蓝牙接收的多媒体音频数据,具体可以包括FM广播、本地音乐等车载终端自身的多媒体音频数据。In an embodiment of step S32, in response to requesting the Bluetooth music focus and the non-Bluetooth multimedia audio data is being played, the Bluetooth music focus is requested, and the non-Bluetooth multimedia audio focus is released. Wherein, non-Bluetooth multimedia audio data refers to multimedia audio data not received through Bluetooth, and specifically may include FM radio, local music and other multimedia audio data of the vehicle terminal itself.
本实施例中,若车载终端正在播放非蓝牙的多媒体音频数据,则通过请求蓝牙音乐焦点并释放非蓝牙的多媒体音频焦点,可以实现停止播放非蓝牙的多媒体音频数据,切换为播放接收的音乐。In this embodiment, if the vehicle-mounted terminal is playing non-Bluetooth multimedia audio data, then by requesting Bluetooth music focus and releasing the non-Bluetooth multimedia audio focus, it can be realized to stop playing non-Bluetooth multimedia audio data and switch to playing received music.
在步骤S32具体实施的另一个实施例中,响应于请求蓝牙音乐焦点且正在播放非多媒体音频数据,根据预设策略请求蓝牙音乐焦点。其中,非多媒体音频数据可以包括喇叭声音、报警声音、转向提示声音等。报警声音可以包括安全带报警声音、油量报警声音、胎压报警声音等。In another embodiment specifically implemented in step S32, in response to requesting the Bluetooth music focus and non-multimedia audio data is being played, the Bluetooth music focus is requested according to a preset policy. Wherein, the non-multimedia audio data may include a horn sound, an alarm sound, a steering prompt sound, and the like. The alarm sound may include a seat belt alarm sound, an oil level alarm sound, a tire pressure alarm sound, and the like.
本实施例中,通过蓝牙接收的多媒体音频流为音乐。在具体实施中,上述预设策略可以为直接请求蓝牙音乐焦点,以实现同时播放非多媒体音频数据以及通过蓝牙接收的音乐。上述预设策略还可以为请求到蓝牙音乐焦点并释放非多媒体音频焦点,以实现停止播放非多媒体音频数据,切换为播放接收的音乐。上述预设策略还可以为不请求蓝牙音乐焦点,以实现继续播放非多媒体音频数据,且不播放通过蓝牙接收的音乐。In this embodiment, the multimedia audio stream received through Bluetooth is music. In a specific implementation, the above-mentioned preset strategy may be to directly request Bluetooth music focus, so as to simultaneously play non-multimedia audio data and music received through Bluetooth. The above preset strategy can also be to request the Bluetooth music focus and release the non-multimedia audio focus, so as to stop playing the non-multimedia audio data and switch to playing the received music. The above preset policy may also be not requesting Bluetooth music focus, so as to continue playing non-multimedia audio data and not playing music received through Bluetooth.
本实施例中,若车载终端正在播放非多媒体音频数据,则根据不同的预设策略请求蓝牙音乐焦点,可以实现对正在播放的非多媒体音频数据以及通过蓝牙接收的音乐进行不同的管理。In this embodiment, if the vehicle-mounted terminal is playing non-multimedia audio data, it requests the Bluetooth music focus according to different preset policies, which can realize different management of the non-multimedia audio data being played and the music received through Bluetooth.
在步骤S32具体实施的又一个实施例中,响应于请求蓝牙音乐焦点且未播放任何音频数据,请求到蓝牙音乐焦点。本实施例中,若车载终端未播放任何音频数据,则直接可以请求到蓝牙音乐焦点,以实现播放接收的音乐。In yet another embodiment of step S32, in response to requesting the Bluetooth music focus and no audio data is played, the Bluetooth music focus is requested. In this embodiment, if the vehicle-mounted terminal does not play any audio data, it can directly request the Bluetooth music focus to play the received music.
实施例2Example 2
如图6所示,本实施例提供一种音频管理系统400,包括车载终端401和移动终端402。所述车载终端包括扬声器,所述移动终端与所述车载终端建立蓝牙连接。As shown in FIG. 6 , this embodiment provides an
移动终端402,通过蓝牙协议向所述车载终端传递通道指令;其中,所述通道指令表征音频数据的传输通道。The
车载终端401,接收所述通道指令;若所述传输通道是HFP通道,则接收音频数据,所述音频数据包括通话音频流和通话状态;根据所述通话状态,请求蓝牙电话音频焦点;若所述传输通道是A2DP通道,则接收音频数据,所述音频数据包括多媒体音频流和播放属性;根据所述播放属性,确定是否请求蓝牙音乐焦点。The vehicle-mounted
本实施例提供的音频管理系统中,移动终端通过蓝牙协议向车载终端发送音频数据,车载终端可以根据不同传输通道接收的音频数据进行不同的管理,以提升用户体验。具体地,针对HFP通道传输的音频数据,根据通话状态管理蓝牙电话音频焦点,从而实现通话音频流的管理;针对A2DP通道传输的音频数据,根据播放属性管理蓝牙音乐焦点,从而实现对不同的多媒体音频流进行管理。In the audio management system provided in this embodiment, the mobile terminal sends audio data to the vehicle-mounted terminal through the Bluetooth protocol, and the vehicle-mounted terminal can perform different management according to the audio data received by different transmission channels, so as to improve user experience. Specifically, for the audio data transmitted by the HFP channel, the audio focus of the Bluetooth phone is managed according to the call state, thereby realizing the management of the audio stream of the call; for the audio data transmitted by the A2DP channel, the Bluetooth music focus is managed according to the playback attribute, so as to realize the control of different multimedia Audio streams are managed.
在可选的一种实施方式中,上述车载终端判断是否连续两次获取的播放状态均为播放且连续两次获取的播放进度发生变化;若是,则请求蓝牙音乐焦点;若否,则不请求蓝牙音乐焦点。In an optional implementation manner, the vehicle-mounted terminal judges whether the playback status acquired twice in a row is playing and the playback progress acquired twice in a row changes; if so, then request the bluetooth music focus; if not, then do not request Bluetooth music focus.
本实施方式中,车载终端根据连续两次获取的播放状态和播放进度确定通过A2DP通道接收的多媒体音频流是否为音乐,从而对音乐和非音乐进行不同的音频管理,具体地,若为音乐,则请求蓝牙音乐焦点,进而可以在获取蓝牙音乐焦点之后播放音乐;若不为音乐,则不请求蓝牙音乐焦点。In this embodiment, the vehicle-mounted terminal determines whether the multimedia audio stream received through the A2DP channel is music according to the playback status and playback progress obtained twice in a row, so as to perform different audio management for music and non-music. Specifically, if it is music, Then request the Bluetooth music focus, and then play music after obtaining the Bluetooth music focus; if it is not music, then do not request the Bluetooth music focus.
在可选的一种实施方式中,上述车载终端响应于请求蓝牙音乐焦点且正在播放非蓝牙的多媒体音频数据,请求到蓝牙音乐焦点,释放非蓝牙的多媒体音频焦点,以实现停止播放非蓝牙的多媒体音频数据,切换为播放接收的音乐。In an optional implementation manner, the vehicle-mounted terminal requests Bluetooth music focus in response to requesting Bluetooth music focus and is playing non-Bluetooth multimedia audio data, and releases non-Bluetooth multimedia audio focus to stop playing non-Bluetooth audio data. Multimedia audio data, switch to playing received music.
在可选的一种实施方式中,上述车载终端响应于请求蓝牙音乐焦点且正在播放非多媒体音频数据,根据预设策略请求蓝牙音乐焦点,可以实现对正在播放的非多媒体音频数据以及通过蓝牙接收的音乐进行不同的管理。In an optional implementation manner, the vehicle-mounted terminal responds to requesting Bluetooth music focus and is playing non-multimedia audio data, requests Bluetooth music focus according to a preset strategy, and can realize the non-multimedia audio data being played and receive via Bluetooth Music is managed differently.
在可选的一种实施方式中,上述车载终端响应于请求蓝牙音乐焦点且未播放任何音频数据,请求到蓝牙音乐焦点,以实现播放接收的音乐。In an optional implementation manner, the vehicle-mounted terminal requests the Bluetooth music focus in response to requesting the Bluetooth music focus and no audio data is played, so as to play the received music.
在可选的一种实施方式中,上述车载终端响应于来电状态,请求来电铃声焦点,以实现对来电铃声进行播放;以及响应于接通状态,请求蓝牙通话焦点,以实现对通话音频流进行播放。In an optional implementation manner, the vehicle-mounted terminal requests the ringtone focus of the incoming call in response to the incoming call state, so as to realize playing the ringtone of the incoming call; and in response to the connected state, requests the Bluetooth call focus to realize the call audio stream play.
在可选的一种实施方式中,上述车载终端响应于挂断状态,在请求到蓝牙通话焦点之后释放所述蓝牙通话焦点,以方便根据后续的接通状态重新请求蓝牙通话焦点。In an optional implementation manner, the vehicle-mounted terminal releases the Bluetooth call focus after requesting the Bluetooth call focus in response to the hang-up state, so as to re-request the Bluetooth call focus according to the subsequent connected state.
实施例3Example 3
图7为本实施例提供的一种车载终端的结构示意图。所述车载终端包括用于与其它设备通信的通信模块、至少一个处理器以及与所述至少一个处理器通信连接的存储器。其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行实施例1的音频管理方法。本实施例提供的车载终端也可以称为车机,是安装在车辆中的车载信息娱乐产品,能够实现人与车、车与外界的信息通讯。图7显示的车载终端3仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG. 7 is a schematic structural diagram of a vehicle-mounted terminal provided in this embodiment. The vehicle-mounted terminal includes a communication module for communicating with other devices, at least one processor, and a memory communicatively connected with the at least one processor. Wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the audio management method of
车载终端3的组件可以包括但不限于:上述至少一个处理器4、上述至少一个存储器5、连接不同系统组件(包括存储器5和处理器4)的总线6、通信模块7。The components of the
总线6包括数据总线、地址总线和控制总线。The bus 6 includes a data bus, an address bus and a control bus.
存储器5可以包括易失性存储器,例如随机存取存储器(RAM)51和/或高速缓存存储器52,还可以进一步包括只读存储器(ROM)53。The memory 5 may include a volatile memory, such as a random access memory (RAM) 51 and/or a
存储器5还可以包括具有一组(至少一个)程序模块54的程序/实用工具55,这样的程序模块54包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。Memory 5 may also include a program/
通信模块7可以包括天线、移动通信单元、无线通信单元、调制解调处理器以及基带处理器等。天线用于发射和接收电磁波信号。移动通信单元可以提供应用在车载终端上的包括2G/3G/4G/5G等无线通信的解决方案。在一些实施例中,移动通信单元的至少部分功能模块可以被设置于处理器4中。在一些实施例中,移动通信单元的至少部分功能模块可以与处理器4的至少部分模块被设置在同一个器件中。无线通信单元可以提供应用在车载终端上的包括无线局域网WLAN,如Wi-Fi网络、蓝牙,全球导航卫星系统、调频FM、近距离无线通信技术NFC、红外技术等无线通信的解决方案。如图7所示,通信模块7通过总线与车载终端3的其它模块通信。The
处理器4通过运行存储在存储器5中的计算机程序,从而执行各种功能应用以及数据处理,例如上述音频管理方法。The
车载终端3也可以与一个或多个外部设备8(例如键盘、指向设备、显示器等)通信。这种通信可以通过输入/输出(I/O)接口9进行。应当明白,尽管图5中未示出,还可以结合车载终端3使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理器、外部磁盘驱动阵列、RAID(磁盘阵列)系统、磁带驱动器以及数据备份存储系统等。The
应当注意,尽管在上文详细描述中提及了车载终端的若干单元/模块或子单元/模块,但是这种划分仅仅是示例性的并非强制性的。实际上,根据本发明的实施方式,上文描述的两个或更多单元/模块的特征和功能可以在一个单元/模块中具体化。反之,上文描述的一个单元/模块的特征和功能可以进一步划分为由多个单元/模块来具体化。It should be noted that although several units/modules or subunits/modules of the vehicle-mounted terminal are mentioned in the above detailed description, this division is only exemplary and not mandatory. Actually, according to the embodiment of the present invention, the features and functions of two or more units/modules described above may be embodied in one unit/module. Conversely, the features and functions of one unit/module described above can be further divided to be embodied by a plurality of units/modules.
实施例4Example 4
本实施例提供一种存储有计算机指令的非瞬时计算机可读存储介质,所述计算机指令用于使所述计算机执行实施例1中的音频管理方法。This embodiment provides a non-transitory computer-readable storage medium storing computer instructions, the computer instructions are used to make the computer execute the audio management method in
其中,可读存储介质可以采用的更具体可以包括但不限于:便携式盘、硬盘、随机存取存储器、只读存储器、可擦拭可编程只读存储器、光存储器件、磁存储器件或上述的任意合适的组合。Wherein, the readable storage medium may more specifically include but not limited to: portable disk, hard disk, random access memory, read-only memory, erasable programmable read-only memory, optical storage device, magnetic storage device or any of the above-mentioned the right combination.
在可能的实施方式中,本发明还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在车载终端上运行时,所述程序代码用于使所述车载终端执行实现实施例1中的音频管理方法。In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes program code, and when the program product runs on the vehicle-mounted terminal, the program code is used to make the vehicle-mounted terminal execute The audio management method in
其中,可以以一种或多种程序设计语言的任意组合来编写用于执行本发明的程序代码,所述程序代码可以完全地在车载终端上执行、部分地在车载终端上执行、作为一个独立的软件包执行、部分在车载终端上部分在远程设备上执行或完全在远程设备上执行。Wherein, the program code for executing the present invention can be written in any combination of one or more programming languages, and the program code can be completely executed on the vehicle-mounted terminal, partially executed on the vehicle-mounted terminal, or used as an independent Execution of the software package, partly on the vehicle terminal and partly on the remote device, or completely on the remote device.
虽然以上描述了本发明的具体实施方式,但是本领域的技术人员应当理解,这仅是举例说明,本发明的保护范围是由所附权利要求书限定的。本领域的技术人员在不背离本发明的原理和实质的前提下,可以对这些实施方式做出多种变更或修改,但这些变更和修改均落入本发明的保护范围。Although the specific implementation of the present invention has been described above, those skilled in the art should understand that this is only an example, and the protection scope of the present invention is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principle and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111673153.9A CN116419192A (en) | 2021-12-31 | 2021-12-31 | Audio management method and system, vehicle-mounted terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111673153.9A CN116419192A (en) | 2021-12-31 | 2021-12-31 | Audio management method and system, vehicle-mounted terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116419192A true CN116419192A (en) | 2023-07-11 |
Family
ID=87053580
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111673153.9A Pending CN116419192A (en) | 2021-12-31 | 2021-12-31 | Audio management method and system, vehicle-mounted terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116419192A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116744244A (en) * | 2023-08-15 | 2023-09-12 | 荣耀终端有限公司 | Communication method, storage medium and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20020080557A (en) * | 2001-04-16 | 2002-10-26 | 주식회사 엠피맨닷컴 | portable audio player having a bluetooth communication function, and signal processing method for portable telephone communication by using the same |
US20090326949A1 (en) * | 2006-04-04 | 2009-12-31 | Johnson Controls Technology Company | System and method for extraction of meta data from a digital media storage device for media selection in a vehicle |
CN108024128A (en) * | 2017-11-30 | 2018-05-11 | 广东欧珀移动通信有限公司 | Control method and device for Bluetooth music playing, terminal equipment and storage medium |
CN112153600A (en) * | 2020-09-23 | 2020-12-29 | 博泰车联网(南京)有限公司 | Audio management method, device and system and computer storage medium |
CN112637412A (en) * | 2019-10-09 | 2021-04-09 | 上海博泰悦臻电子设备制造有限公司 | Audio management method and device and computer storage medium |
-
2021
- 2021-12-31 CN CN202111673153.9A patent/CN116419192A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20020080557A (en) * | 2001-04-16 | 2002-10-26 | 주식회사 엠피맨닷컴 | portable audio player having a bluetooth communication function, and signal processing method for portable telephone communication by using the same |
US20090326949A1 (en) * | 2006-04-04 | 2009-12-31 | Johnson Controls Technology Company | System and method for extraction of meta data from a digital media storage device for media selection in a vehicle |
CN108024128A (en) * | 2017-11-30 | 2018-05-11 | 广东欧珀移动通信有限公司 | Control method and device for Bluetooth music playing, terminal equipment and storage medium |
CN112637412A (en) * | 2019-10-09 | 2021-04-09 | 上海博泰悦臻电子设备制造有限公司 | Audio management method and device and computer storage medium |
CN112153600A (en) * | 2020-09-23 | 2020-12-29 | 博泰车联网(南京)有限公司 | Audio management method, device and system and computer storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116744244A (en) * | 2023-08-15 | 2023-09-12 | 荣耀终端有限公司 | Communication method, storage medium and electronic equipment |
CN116744244B (en) * | 2023-08-15 | 2023-10-31 | 荣耀终端有限公司 | A communication method, storage medium and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9306983B2 (en) | Method and apparatus for communication between a vehicle based computing system and a remote application | |
KR101531924B1 (en) | Method and apparatus for controlling bluetooth load | |
CN106303933B (en) | Bluetooth power adjustment method and device | |
CN108062215A (en) | Vehicle source of sound control method and system, vehicle and its car-mounted terminal | |
CN106452512A (en) | A method and device for role switching based on Bluetooth connection | |
CN106095387B (en) | Sound effect setting method of terminal and terminal | |
US20210166697A1 (en) | Bluetooth speaker base, method and system for controlling thereof | |
WO2023087793A1 (en) | Audio service processing method and apparatus, electronic device, and storage medium | |
WO2021143631A1 (en) | Audio information transmission system, method, device, corresponding two-wheeled vehicle, and helmet | |
WO2020063069A1 (en) | Audio playing method and apparatus, electronic device and computer-readable medium | |
CN110087215A (en) | Information broadcasting method, device, terminal and storage medium based on Bluetooth connection | |
CN113840269B (en) | Multimedia data transmission method and device, electronic equipment and storage medium | |
CN115086473A (en) | Sound channel selection system, method and related device | |
CN103338317A (en) | Method and system for controlling sound and imaging equipment according to incoming telegrams | |
CN108848410A (en) | Bluetooth audio frequency transmission method, device and computer readable storage medium | |
CN116419192A (en) | Audio management method and system, vehicle-mounted terminal and storage medium | |
CN115022773B (en) | Bluetooth device audio control method, device, equipment and storage medium | |
CN108184193B (en) | Play control method of Bluetooth play terminal, Bluetooth device and computer storage medium | |
CN114422710A (en) | Video recording control method of electronic device, electronic device and readable medium | |
JP2015002394A (en) | Information processing apparatus and computer program | |
CN105682010B (en) | Bluetooth connection control method and device in audio playing system and playing equipment | |
CN105049468A (en) | Vehicle proxy lifecycle management | |
CN106649484A (en) | Method and device for storing audio logs | |
KR102044523B1 (en) | Apparatus and method for providing short-range wireless communication | |
CN113746517B (en) | A beam training method, terminal device and computer-readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |