Search

CN-122018846-A - Sound zone switching method and device, electronic equipment and storage medium

CN122018846ACN 122018846 ACN122018846 ACN 122018846ACN-122018846-A

Abstract

The application relates to a voice zone switching method, a voice zone switching device, electronic equipment and a storage medium, wherein the voice zone switching method comprises the steps of determining whether a voice zone switching event is detected, wherein the voice zone switching event is used for switching an audio stream of a first application from a first voice zone to a second voice zone, acquiring a first application identifier of the first application and a first voice zone identifier of the second voice zone if the voice zone switching event is detected, determining a target voice track according to the first voice zone identifier and the first application identifier, and controlling the audio stream from the first application to play by utilizing the target voice track. The embodiment of the application can ensure that only the target audio track corresponding to the first application mark and the first audio zone mark plays the audio stream of the first application, the audio stream playing of other audio tracks can not be influenced, the playing abnormality such as playing pause and interruption of other audio tracks is avoided, and the consistency of the audio stream playing of other audio tracks is ensured.

Inventors

  • Ming Mengchun
  • ZHONG CHENGJIN
  • WANG HONGBO

Assignees

  • 北京梧桐车联科技有限责任公司

Dates

Publication Date
20260512
Application Date
20251225

Claims (10)

  1. 1. A method for voice zone switching, comprising: Determining whether a soundfield switching event is detected, the soundfield switching event being for switching an audio stream of a first application from a first soundfield to a second soundfield; if a voice zone switching event is detected, a first application identifier of the first application and a first voice zone identifier of the second voice zone are obtained; determining a target sound track according to the first sound zone identifier and the first application identifier; And controlling the audio stream from the first application to play by utilizing the target audio track.
  2. 2. The method of claim 1, wherein determining a target track from the first soundtrack identification and the first application identification comprises: Determining a plurality of candidate tracks corresponding to the first soundtrack identification; And determining a candidate track corresponding to the first application identifier from the plurality of candidate tracks as the target track.
  3. 3. The method of claim 1, wherein controlling the audio stream from the first application to be played using the target audio track comprises: Triggering the target audio track to execute audio stream refreshing operation corresponding to the first application identifier; and controlling the playing equipment of the second sound zone by using the target sound track to play the audio stream corresponding to the first application identifier.
  4. 4. A method of voice zone switching according to claim 3, the method further comprising: Determining whether a third soundtrack exists that is playing an audio stream from the second application; If a third sound zone for playing the audio stream from the second application exists, acquiring a second sound zone identifier of the third sound zone and a second application identifier of the second application; determining a first audio track corresponding to the second audio zone identifier and the second application identifier; And when the target audio track is triggered to execute the audio stream refreshing operation corresponding to the first application identifier, the first audio track is not triggered to execute the audio stream refreshing operation corresponding to the first application identifier, so that the first audio track keeps playing the audio stream from the second application without interruption.
  5. 5. The method of claim 3, wherein controlling a playback device of the second soundtrack with the target soundtrack to play an audio stream corresponding to the first application identifier comprises: And controlling the playing equipment of the second sound zone by using the target sound track, and playing the audio stream from the first application according to a preset fade-in mode.
  6. 6. The soundtrack switching method according to claim 1, wherein prior to playing the audio stream of the first application with the target soundtrack, the method further comprises: Determining a second soundtrack corresponding to a first soundfield identification of the first soundfield; and notifying the second audio track to end playing the audio stream from the first application in a preset fade-out mode in the playing device of the first audio zone.
  7. 7. The method of voice zone switching of claim 1, wherein determining whether a voice zone switching event is detected comprises: Determining whether a fly-screen operation for switching an audio stream of the first application from a first soundfield to the second soundfield is received; And if the screen flying operation is received, triggering the voice zone switching event, wherein the voice zone switching event is used for switching the audio stream of the first application from the first voice zone to the second voice zone.
  8. 8. A soundtrack switching apparatus, comprising: A first determining module configured to determine whether a soundfield switching event is detected, the soundfield switching event being configured to switch an audio stream of a first application from a first soundfield to a second soundfield; the acquisition module is used for acquiring a first application identifier of the first application and a first voice zone identifier of the second voice zone if a voice zone switching event is detected; the second determining module is used for determining a target sound track according to the first sound zone identifier and the first application identifier; and the control module is used for controlling the audio stream from the first application to play by utilizing the target audio track.
  9. 9. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; a memory for storing a computer program; A processor, configured to implement the voice zone switching method according to any one of claims 1 to 7 when executing a program stored in the memory.
  10. 10. A computer readable storage medium, characterized in that a program of a soundtrack switching method is stored on the computer readable storage medium, which program, when being executed by a processor, implements the steps of the soundtrack switching method according to any one of claims 1 to 7.

Description

Sound zone switching method and device, electronic equipment and storage medium Technical Field The application relates to the technical field of audio processing in a vehicle-mounted multi-screen interaction scene, in particular to a voice zone switching method, a device, electronic equipment and a storage medium. Background Along with the acceleration of the intelligent and networking processes of the automobile, the vehicle-mounted interior decoration function is continuously upgraded, the carrying rate and popularity of multi-screen equipment are greatly improved, and the multi-screen collaborative interaction scene is more and more abundant. As a core application mode of multi-screen linkage, the flying screen technology becomes a key configuration for improving in-vehicle interaction convenience and driving safety by virtue of characteristics of gesture control, seamless information circulation and the like, and is widely applied to cross-screen migration scenes of contents such as navigation, entertainment and the like. However, in practical use, the experience of the fly-screen technology still has room for optimization. Especially in the operation stage of equipment pairing connection or cross-screen content migration, abnormal problems such as playing pause, interruption and other playing abnormality easily occur in the application in the audio playing state, and the problems directly destroy the continuity of audio experience and seriously influence the driving feeling and interaction satisfaction of users. Disclosure of Invention In order to solve the technical problems described above or at least partially solve the technical problems described above, the present application provides a method, an apparatus, an electronic device, and a storage medium for voice zone switching. In a first aspect, the present application provides a method for switching a voice zone, including: Determining whether a soundfield switching event is detected, the soundfield switching event being for switching an audio stream of a first application from a first soundfield to a second soundfield; if a voice zone switching event is detected, a first application identifier of the first application and a first voice zone identifier of the second voice zone are obtained; determining a target sound track according to the first sound zone identifier and the first application identifier; And controlling the audio stream from the first application to play by utilizing the target audio track. Optionally, determining the target track according to the first soundfield identifier and the first application identifier includes: Determining a plurality of candidate tracks corresponding to the first soundtrack identification; And determining a candidate track corresponding to the first application identifier from the plurality of candidate tracks as the target track. Optionally, controlling the audio stream from the first application to play by using the target audio track includes: Triggering the target audio track to execute audio stream refreshing operation corresponding to the first application identifier; and controlling the playing equipment of the second sound zone by using the target sound track to play the audio stream corresponding to the first application identifier. Optionally, the method further comprises: Determining whether a third soundtrack exists that is playing an audio stream from the second application; If a third sound zone for playing the audio stream from the second application exists, acquiring a second sound zone identifier of the third sound zone and a second application identifier of the second application; determining a first audio track corresponding to the second audio zone identifier and the second application identifier; And when the target audio track is triggered to execute the audio stream refreshing operation corresponding to the first application identifier, the first audio track is not triggered to execute the audio stream refreshing operation corresponding to the first application identifier, so that the first audio track keeps playing the audio stream from the second application without interruption. Optionally, controlling a playing device of the second audio zone by using the target audio track, playing an audio stream corresponding to the first application identifier, including: And controlling the playing equipment of the second sound zone by using the target sound track, and playing the audio stream from the first application according to a preset fade-in mode. Optionally, before playing the audio stream of the first application with the target audio track, the method further comprises: Determining a second soundtrack corresponding to a first soundfield identification of the first soundfield; and notifying the second audio track to end playing the audio stream from the first application in a preset fade-out mode in the playing device of the first audio zone. Optionally, determining whether a