Audio playback method, device, equipment and medium
By acquiring and analyzing audio information, dynamically determining the sound orientation of the audio, the problem of single audio playback form in the prior art is solved, and the user's auditory experience is improved.
Patent Information
- Application Number
- CN202411963411.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-04
AI Technical Summary
When existing electronic devices play audio, they cannot adjust the sound orientation of the audio, resulting in a single audio playback form and poor user's hearing experience.
By obtaining the audio information of the first audio in the electronic device, including the audio type, audio identifier and the associated application, the sound orientation of the audio is dynamically determined, and the corresponding audio is played according to the sound orientation.
It enriches the audio playback format, improves users' auditory experience of audio, and makes audio playback more flexible and diversified.
Smart Images

Figure CN119759310A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of audio processing technology, and specifically relates to an audio playback method, device, equipment and medium. Background Art
[0002] With the development of communication technology, electronic devices such as mobile phones and tablet computers have become indispensable devices in people's daily life and work. In addition, electronic devices support more and more functions. For example, electronic devices can play multiple audios at the same time. For example, users can listen to music and play games at the same time.
[0003] However, current electronic devices have the problem of a single playback format when playing the first audio, resulting in a poor auditory experience for users. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an audio playback method, device, equipment and medium, which can enrich the audio playback format and enhance the user's auditory experience.
[0005] In a first aspect, an embodiment of the present application provides an audio playback method, comprising:
[0006] Acquire audio information of a first audio in the electronic device, where the audio information includes at least one of the following: an audio type of the first audio, an audio identifier of the first audio, and an application to which the first audio belongs;
[0007] Determine the sound direction of the first audio according to the audio information;
[0008] Play the first audio according to the sound direction.
[0009] In a second aspect, an embodiment of the present application provides an audio playback device, comprising:
[0010] An acquisition module, configured to acquire audio information of a first audio in an electronic device, wherein the audio information includes at least one of the following: an audio type of the first audio, an audio identifier of the first audio, and an application to which the first audio belongs;
[0011] A determination module, used to determine the sound direction of the first audio according to the audio information;
[0012] The playing module is used to play the first audio according to the sound direction.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the method described in the first aspect.
[0016] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the method described in the first aspect.
[0017] In an embodiment of the present application, the audio information of the first audio in the electronic device is obtained, and the audio information includes at least one of the following: the audio type of the first audio, the audio identifier of the first audio, and the application to which the first audio belongs; the sound direction of the first audio is determined according to the audio information; and the first audio is played according to the sound direction. That is, the embodiment of the present application can dynamically determine the sound direction of the first audio according to the audio type, audio identifier, application to which the first audio belongs, and other information, and play the corresponding first audio according to the sound direction, which enriches the audio playback form and improves the user's auditory experience of the audio. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A flowchart of an audio playback method provided in an embodiment of the present application;
[0019] Figure 2 A flowchart of another audio playback method provided in an embodiment of the present application;
[0020] Figure 3 A schematic diagram of a setting interface provided in an embodiment of the present application;
[0021] Figure 4 A flowchart of another audio playback method provided in an embodiment of the present application;
[0022] Figure 5 A flowchart of another audio playback method provided in an embodiment of the present application;
[0023] Figure 6 A schematic diagram of a screen coordinate system and a voice position coordinate system provided in an embodiment of the present application;
[0024] Figure 7 A flowchart of another audio playback method provided in an embodiment of the present application;
[0025] Figure 8 A flowchart of another audio playback method provided in an embodiment of the present application;
[0026] Fig. 9 A schematic diagram of the structure of an audio playback device provided in an embodiment of the present application;
[0027] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0028] Fig.11 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0030] The terms "first", "second", etc. in the specification of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are usually a class, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0031] With the development of electronic technology, electronic devices support more and more functions, such as supporting multiple audio playbacks at the same time to meet the diverse needs of users. For example, users can listen to music while playing games.
[0032] However, current electronic devices cannot adjust the sound direction of the audio when playing audio, which makes the audio playing form relatively simple and the user's auditory experience is poor.
[0033] To this end, the embodiments of the present application provide an audio playback method, device, equipment and medium, which can enrich the audio playback form and enhance the user's auditory experience. For example, the sound orientation of the audio can be dynamically adjusted, and it is no longer limited to a single playback form, thereby enhancing the user's experience of the orientation of different audio.
[0034] The audio playback method and device provided in the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0035] Figure 1The flowchart of an audio playback method provided in an embodiment of the present application can be applied to electronic devices such as mobile phones, tablet computers, and laptop computers. Figure 1 As shown, the audio playing method may include the following steps:
[0036] S110: Acquire audio information of a first audio in an electronic device.
[0037] The audio information includes at least one of the following: an audio type of the first audio, an audio identifier of the first audio, and an application to which the first audio belongs.
[0038] S120: Determine a sound direction of the first audio according to the audio information.
[0039] S130: Play the first audio according to the sound direction.
[0040] The embodiments of the present application can dynamically determine the sound direction of the first audio according to the audio type, audio identification, application and other information of the first audio, and play the corresponding first audio according to the sound direction, thereby enriching the audio playback format and improving the user's auditory experience of the audio.
[0041] The above steps are described in detail below:
[0042] In S110, the first audio here may be the audio being played by the electronic device. Exemplarily, the electronic device may play one or more audios at the same time. When the electronic device plays multiple audios at the same time, the multiple audios may belong to the same application or different applications. That is, the electronic device may play audios in different applications at the same time, or may play different audios in the same application at the same time. The application here may be an application that includes audio, such as a video application, a music application, a call application, etc. For example, the electronic device may play the call audio in the call application and a video in the video application at the same time. For another example, the electronic device may also play different videos in the same video application at the same time.
[0043] Exemplarily, the first audio can be played in the form of a full screen or in the form of a window. Exemplarily, the first audio can be played in the foreground or in the background, which can improve the flexibility and diversity of the audio playback form.
[0044] The audio information here is used to characterize the features of the first audio. For example, the audio information may include at least one of the audio type, audio identifier, and application to which the first audio belongs.
[0045] The audio type may include, but is not limited to, calls, incoming ringtones, alarms, notifications, videos, audiobooks, music, navigation, voice, game ambient sound, etc. Exemplarily, the first audio may be classified by an audio classification model, application classification in an application store of an electronic device, and a whitelist to obtain an audio type corresponding to the first audio.
[0046] The audio identifier is used to uniquely identify the first audio. Exemplarily, the audio identifier may include the name, digital identifier, text identifier, etc. of the first audio. When an electronic device plays an audio, it may simultaneously display the audio identifier of the audio. Exemplarily, when an electronic device plays an audio, it may also hide the audio identifier of the audio first, and the user may display the audio identifier of the audio through touch, voice, gesture, and other inputs. Different first audios correspond to different audio identifiers.
[0047] The electronic device can adaptively determine the sound direction of the first audio according to the audio type, audio identifier and application of the first audio, so that different first audio can have different sound directions, thereby improving the flexibility of audio playback.
[0048] Exemplarily, the audio information may also include the sound device of the first audio, the content of the first audio, the location information of the user associated with the first audio, etc.
[0049] The sound device of the first audio may include, for example, an external speaker of an electronic device, a wired headset, a Bluetooth headset, etc. If different sound devices are used for the same audio, the corresponding sound orientation is also different, thereby providing users with different auditory experiences. The relationship between different sound devices and sound orientations can be defined according to product requirements.
[0050] The content of the first audio may include position information, for example, in a navigation scenario, the electronic device may identify the position information in the navigation voice, and provide a basis for subsequently determining the sound position of the navigation voice. For another example, in a storytelling scenario, the electronic device may identify the position information in the storytelling content, and provide a basis for subsequently determining the sound position of the storytelling content.
[0051] The location information of the user associated with the first audio may be the location information of the participants in the online conference scenario, that is, the electronic device may match the appropriate sound position for different participants according to the location information of the participants, so that other participants can accurately identify the identity of the person making the sound. Exemplarily, the location information of the user associated with the first audio may also be the location information of the game character in the game voice scenario, that is, the electronic device may match the appropriate sound position for different game characters according to the location information of the game character, thereby improving the user's gaming experience.
[0052] In S120, the embodiment of the present application can dynamically determine the sound orientation of the first audio according to the audio information, so that different audios can be output according to different sound orientations, thus enriching the audio playback form and improving the user's auditory experience. The specific determination process can be referred to in the following embodiment.
[0053] In S130, after the sound direction is determined, the electronic device can play the audio according to the sound direction, providing the user with a more novel and unique audio-visual entertainment experience.
[0054] Figure 2 Taking the audio information including the audio type of the first audio as an example, a flowchart of another audio playing method is provided. Figure 2 and Figure 1 The difference is that Figure 1 The S120 in can be refined into Figure 2 The S210 in the.
[0055] S210: Determine a sound direction of the first audio according to the audio type and the mapping relationship of the first audio.
[0056] The mapping relationship here is used to characterize the relationship between different audio types and sound directions. The mapping relationship between audio type and sound direction can be in a tabular form, an index form, or other forms. The mapping relationship between audio type and sound direction can be set by the user according to needs, or it can be obtained by the electronic device through big data analysis. The audio type and the sound direction can be a one-to-one relationship, that is, one audio type corresponds to one sound direction, and different audio types correspond to different sound directions. Exemplarily, the audio type and the sound direction can also be a many-to-one relationship, that is, multiple audio types correspond to one sound direction, which is specifically related to the needs of the user and the analysis results of big data.
[0057] Taking the mapping relationship between the user-defined audio type and the sound direction as an example, for example, Figure 3 As shown, the electronic device can display a setting interface 300, through which the user can set a suitable sound orientation for each audio type.
[0058] The rectangular area 301 in the setting interface 300 represents the voice position coordinate system, which can be a three-dimensional coordinate system. In some embodiments, the Z axis can always be 0. For example, when the user is the center, the Z axis can be defaulted to always be 0. Therefore, the voice position coordinate system can be equivalent to a two-dimensional coordinate system. Figure 3Taking the sound position coordinate system as a two-dimensional coordinate system as an example, in this coordinate system, the user can move the coordinates of the sound position according to a certain position change granularity. In some embodiments, the position change granularity can be set to 1, that is, the minimum movement unit of the sound position is 1, so that the user can experience a more obvious position change effect.
[0059] Exemplarily, the center of the rectangular area 301 may be the center of the XY coordinate system, and the user may set a suitable sound orientation for each audio type as required. The sound orientation set by the user here may be a sound orientation that provides a better experience for the user, or may be an optimal sound orientation. The electronic device may store a mapping relationship between each audio type and the sound orientation in association.
[0060] In practical applications, the range of the XY coordinate system can also be agreed upon, for example, the horizontal and vertical coordinates can move between -10 and 10.
[0061] Taking the mapping relationship between audio type and sound orientation obtained through big data analysis as an example, the electronic device can analyze different users' preferences for sound orientation of different audio types through big data, and set a suitable sound orientation for each audio type according to the preference. The sound orientation is the best sound orientation that meets the needs of the public.
[0062] After determining the audio type of the first audio, the electronic device can search for the above mapping relationship, obtain the sound direction of the first audio, and play the first audio according to the sound direction.
[0063] The embodiment of the present application can identify the audio type of the current first audio, and determine the sound direction of the current first audio in combination with the pre-configured mapping relationship between the audio type and the sound direction, so that the sound direction of the first audio can dynamically change with the audio type, thereby improving the diversity and flexibility of audio playback formats.
[0064] For example, the first audio includes multiple audios, and the audio information includes the audio type of the first audio. Figure 4 A flowchart of an audio playback method is exemplarily provided. Figure 4 and Figure 1 The difference is that Figure 1 The S120 in can be refined into Figure 4 The S410 in.
[0065] S410: Determine the sound direction of each first audio according to the priority information of the audio type to which each first audio belongs.
[0066] When the electronic device plays multiple audios simultaneously, the audio types of the multiple audios may be the same or different. When the multiple audios belong to at least two audio types, the priorities of the audio types may be the same or different.
[0067] In some embodiments, the priority of calls and game environment sounds > the priority of music, videos, audiobooks, and game voices > the priority of navigation voices > the priority of notifications, alarms, and incoming call ringtones.
[0068] That is, the embodiment of the present application can divide audio types into four priorities, among which calls and game environment sounds belong to the first priority, that is, the highest priority. Music, video, audiobooks, and game voice belong to the second priority, navigation voice belongs to the third priority, and notifications, alarms, and incoming call ringtones belong to the fourth priority. Of course, different audio types can also correspond to other priorities, which can be dynamically adjusted according to user needs or big data analysis.
[0069] Audios of different priorities may correspond to different sound directions. The mapping relationship between priority and sound direction may be set by the user according to needs, or may be obtained through big data analysis of the preferences of multiple users.
[0070] In this embodiment, for each type of audio played by the electronic device, the sound direction of the audio can be adaptively determined according to the priority of the audio type to which the audio belongs, and the audio can be played according to the sound direction, so that audios with different priorities can be output according to different sound directions, thereby improving the flexibility of the audio playback format.
[0071] Taking the case where the audio currently played by the electronic device belongs to two audio types, namely the first audio type and the second audio type, for example, the above S120 may include the following steps:
[0072] In the case where the priorities of the first audio type and the second audio type are the same, determining the sound direction of each first audio according to the foreground and background information of each first audio, where the foreground and background information is used to indicate whether the first audio is a foreground audio or a background audio;
[0073] When the priorities of the first audio type and the second audio type are different, the sound direction of the first audio corresponding to the audio type with higher priority is determined as the first sound direction, and the sound direction of the first audio corresponding to the audio type with lower priority is determined as the second sound direction; wherein, the auditory experience in the first sound direction is better than the auditory experience in the second sound direction.
[0074] Exemplarily, if the first audio type and the second audio type have the same priority, the sound orientation of each first audio can be further determined in combination with the foreground and background information of the first audio. For example, if audio A is played in the foreground and audio B is played in the background, the sound orientation of audio A can be determined to be directly in front, and the sound orientation of audio B can be determined to be the left rear, and the volume of audio A can be greater than the volume of audio B. The front and the left rear here can be directly in front of the eyes and the left rear. When the sound orientation of the audio is directly in front, the user's auditory experience is best.
[0075] That is, for multiple audios of the same priority, the audio played in the foreground can be played according to the best sound orientation, and the audio played in the background can be played according to other sound orientations. Other sound orientations are non-optimal sound orientations. The best sound orientation can be the sound orientation with the best auditory experience for the user, and the best sound orientation can be preset by the user.
[0076] Continuing with the above example, assuming that the electronic device is currently playing call audio and game environment audio, and the call audio is playing in the foreground and the game environment audio is playing in the background, the call audio can be played according to the best sound direction, and the game environment audio can be played according to other sound directions.
[0077] In some embodiments, for audio of the same priority, when multiple audios are playing in the background at the same time, the last audio switched to the background can be played using the best sound orientation, and other audios can be played using other sound orientations. If the last audio switched to the background stops playing, the sound orientations of other audios in the background can remain unchanged.
[0078] Continuing with the above example, the electronic device plays music, video and audiobook at the same time. The video plays in the foreground, and the music and audiobook play in the background. Then the video is switched from the foreground to the background. At this point, the music, video and audiobook are all playing in the background. However, since the video is the last audio to switch to the background, the video can be played in the best sound orientation, and the music and audiobook are played in other sound orientations. If the video stops playing, the sound orientations of the music and audiobook remain unchanged.
[0079] For example, if the priorities of the first audio type and the second audio type are different, the audio with a higher priority is played according to the first sound orientation, and the audio with a lower priority is played according to the second sound orientation, wherein the user's auditory experience at the first sound orientation is better than the user's auditory experience at the second sound orientation, that is, when high-priority and low-priority audio coexist, the sound orientation of the high-priority audio can be the best sound orientation, and the sound orientation of the low-priority audio can be other sound orientations. In this way, the user's auditory experience of the high-priority audio is better than the auditory experience of the low-priority audio.
[0080] Exemplarily, for high-priority audio, even if the audio is played in the background, its sound orientation can be the best sound orientation, that is, the priority of the audio type is higher than the foreground priority.
[0081] Continuing with the above example, the electronic device is currently playing call audio and music, and the call audio is playing in the background and the music is playing in the foreground. However, since the priority of the call audio is higher than the priority of the music, even if the call audio is playing in the background, its sound direction can still be the optimal sound direction, and the music can adopt other sound directions, that is, the user's auditory experience of the call audio is still better than the auditory experience of the music.
[0082] In the embodiment of the present application, when the priorities of audio types are different, different audios can be played according to the strategy of adopting the best sound direction for high priority and other sound directions for low priority. When the priorities of audio types are the same, the sound direction of the audio can be further determined in combination with the foreground and background information of the audio. In this way, the audio playback format is enriched and the user's auditory experience of different audios is enhanced.
[0083] For example, the first audio includes multiple audios, and the audio information includes the audio identifier of the first audio. Figure 5 A flowchart of an audio playback method is exemplarily provided. Figure 5 and Figure 1 The difference is that Figure 1 The S120 in can be refined into Figure 5 S510-S530 in.
[0084] S510: Receive a first input of a target audio identifier.
[0085] The target audio identifier is any one of the audio identifiers. The first input is used to select the target audio identifier. Exemplarily, the first input may include but is not limited to a user's touch input, voice input, gesture input, etc. for the target audio identifier. The touch input may include, for example, a click input, a long press input, a sliding input, etc. In some embodiments, the first input may be a user's click input for the target audio identifier.
[0086] In some embodiments, the electronic device can directly display the audio identifiers of multiple first audios currently being played, or can hide the audio identifiers of multiple first audios. For example, the audio identifiers of each first audio can be hidden through a side hidden bar of the electronic device, and the user can make the electronic device display the side bar through sliding, voice, gesture, etc., so that the audio identifiers of each first audio can be displayed. At this time, the user can select a suitable audio identifier from each audio identifier as the target audio identifier.
[0087] S520: In response to the first input, display a first control corresponding to the target audio.
[0088] The target audio is the first audio corresponding to the target audio identifier. After receiving the first input, the electronic device can display the first control corresponding to the target audio. The user can dynamically adjust the position, size, shape and other information of the first control according to needs. In some embodiments, the first control can be circular in shape and can present different animation effects following the signal of the target audio.
[0089] Displaying the first control corresponding to the target audio indicates that the audio-level sound position control function is turned on, that is, the user can dynamically adjust the sound direction of a single first audio.
[0090] S530: Determine the sound direction of the target audio according to the attribute information of the first control.
[0091] The attribute information of the first control may include, for example, the position information of the first control on the screen, the package name of the first control, etc. The package name of the first control corresponds to the application package name to which the target audio belongs. According to the package name of the first control and the application package name to which the target audio belongs, the matching relationship between the first control and the target audio can be verified, so that the sound direction of the target audio can be accurately determined.
[0092] Exemplarily, if the package name of the first control is the same as the application package name to which the target audio belongs, it can be determined that the first control matches the target audio, and the sound direction of the target audio can be dynamically determined subsequently based on the attribute information of the first control.
[0093] Taking the example that the attribute information of the first control includes the first position information of the first control in the screen coordinate system, illustratively, the above S530 may include the following steps:
[0094] Determine second position information of the first control in the voice position coordinate system according to the mapping relationship between the screen coordinate system and the voice position coordinate system and the first position information;
[0095] The sound direction of the target audio corresponding to the first control is determined according to the second position information.
[0096] The screen coordinate system is the coordinate system where the screen of the electronic device is located. For example, Figure 6 As shown, the screen coordinate system can be centered at the upper left corner 601 of the screen 600 (0, 0), the side along the horizontal direction is the x-axis, and the side along the vertical direction is the y-axis. Of course, the screen coordinate system can also be centered at other points of the screen, such as the upper right corner, lower left corner, or lower right corner of the screen, or at a point other than a corner point.
[0097] The sound position coordinate system may be a coordinate system where the sound position is located. Since the screen coordinate system is a two-dimensional coordinate system, the height Z of the sound position coordinate system is always 0. Figure 6 As shown, the sound position coordinate system can take the center of the screen 600 as the origin (0, 0), the horizontal direction as the x-axis, and the vertical direction as the y-axis.
[0098] The first position information is the position information of the first control in the screen coordinate system, and the second position information is the position information of the first control in the voice coordinate system. According to the mapping relationship between the screen coordinate system and the voice coordinate system, and the first position information, the first control can be converted from the screen coordinate system to the voice coordinate system to obtain the second position information of the first control in the voice coordinate system.
[0099] Take the first control as a rectangular box as an example, Figure 6 As shown, the position of the first control 602 in the screen 600 can be represented by left, top, right, and bottom. Assume that the first position information of the first control 602 is Rect(147,574,1025,2037), that is, left=147, top=574, right=1025, bottom=2037. When the screen is in portrait orientation, its width and height are respectively: widthX=1440, heightY=2560.
[0100] Thus, the horizontal and vertical coordinates of the center point A of the first control 602 can be determined:
[0101] centerX=rect.left+(rect.right-rect.left) / 2, centerY=rect.top+(rect.bottom-rect.top) / 2, where centerX and centerY are the horizontal and vertical coordinates of the center point A respectively.
[0102] The offset from the center point of the screen 600 to the center point A of the first control 602 can be determined by combining the horizontal and vertical coordinates of the center point of the screen 600:
[0103] offsetX=(float)(centerX-screenCenterX), offsetY=(float)(screenCenterY-centerY), wherein offsetX and offsetY are the offsets from the center point of the screen 600 to the center point A of the first control 602, respectively, and screenCenterX and screenCenterY are the horizontal and vertical coordinates of the center point of the screen 600, respectively. For example, screenCenterX=widthX / 2, screenCenterY=hegihtY / 2.
[0104] According to the offset, the first control 602 can be mapped to the voice coordinate system to obtain the second position information of the first control 602 in the voice coordinate system.
[0105] Exemplarily, X0=10.0*offsetX / screenCenterX, Y0=10.0*offsetY / screenCenterY. X0 and Y0 are the horizontal and vertical coordinates of the second position information, respectively. It is assumed that the horizontal and vertical coordinates of the voice position coordinate system are in the range of -10 to 10. This realizes the coordinate system transformation of the first control 602.
[0106] The sound position of the target audio corresponding to the first control 602 can be determined according to the second position information. For example, the second position information can be directly used as the sound position of the target audio, that is, the electronic device can output the target audio from the second position information. For example, the second position information can also be transformed in other ways, and the transformed position can be used as the sound position of the target audio, which can be set according to actual needs.
[0107] Through the above method, the user can adjust the sound direction of a certain audio individually from the audio level, which meets the user's personalized playback needs for different audios, enriches the audio playback format, and improves the user's listening experience.
[0108] Taking the audio information including the application to which the first audio belongs as an example, illustratively, Figure 7 As shown, Figure 7 A flowchart of an audio playback method is exemplarily provided. Figure 7 and Figure 1 The difference is that Figure 1 The S120 in can be refined into Figure 7 S710-S730 in.
[0109] S710: Determine a display mode of an application to which the first audio belongs.
[0110] The display mode may include a window mode or a non-window mode. The window mode indicates that the application to which the first audio belongs is displayed in the form of a window. For example, the window mode may include but is not limited to split screen, floating frame, picture-in-picture, small window and other modes. The non-window mode indicates that the application to which the first audio belongs is displayed in the form of a full screen.
[0111] The display mode of the application to which the first audio belongs is different, and the method of determining the sound direction can be different. In this way, the sound direction can change dynamically with the application display mode, enriching the audio playback form.
[0112] Exemplarily, the display mode of the application to which the first audio belongs can be monitored by a processor of the electronic device.
[0113] S720: When the display mode is the window mode, determine the window information of the window where the application is located.
[0114] The window information here is used to characterize the window features of the window where the application is located, and may include, for example, the package name of the window and the position information of the window in the screen coordinate system.
[0115] Exemplarily, the electronic device may match the package name of the window with the application package name of the application to obtain a matching relationship between the window and the application. When the window matches the application, the sound direction corresponding to the first audio may be further determined based on the position information of the window.
[0116] S730: Determine the sound direction of the first audio according to the window information.
[0117] Taking the case where the window information includes the third position information of the window in the screen coordinate system as an example, illustratively, the above S730 may include the following steps:
[0118] Determine fourth position information of the window in the voice position coordinate system according to the mapping relationship between the screen coordinate system and the voice position coordinate system and the third position information;
[0119] The sound position of the first audio in the window is determined according to the fourth position information.
[0120] The third position information is the position information of the window where the application to which the first audio belongs is located in the screen coordinate system. In actual application, the user can dynamically adjust the third position information. The fourth position information is the position information of the window where the application to which the first audio belongs is located in the voice position coordinate system. The fourth position information can change dynamically with the third position information.
[0121] The process of determining the fourth position information and the process of determining the sound direction of the first audio based on the fourth position information can refer to the process of determining the second position information and the process of determining the sound direction of the first audio based on the second position information in the above embodiment. For the sake of brevity, they will not be repeated here.
[0122] When the application plays multiple audios simultaneously, the sound directions of the multiple audios may be the same according to the above determination method.
[0123] The embodiments of the present application can dynamically determine the sound direction of the first audio according to the display mode of the application to which the first audio belongs, and can further dynamically determine the sound direction of the first audio according to the information of the window when the application to which the first audio belongs is displayed in the form of a window, so that the user can participate in the control process of the sound direction in real time, thereby increasing the interesting interactive mode of the audio.
[0124] Taking the first audio including multiple, the audio information including the application to which the first audio belongs, and the application including multiple as an example, illustratively, Figure 8 As shown, Figure 8 A flowchart of an audio playback method is exemplarily provided. Figure 8 and Figure 1 The difference is that Figure 1 The S120 in can be refined into Figure 8 S810-S830 in.
[0125] S810: Receive a second input of a target application identifier.
[0126] The target application identifier is any one of the application identifiers of the applications to which the first audio belongs. The second input is used to select the target application identifier. Exemplarily, the second input may include but is not limited to a user's touch input, voice input, gesture input, etc. for the target application identifier. The touch input may include, for example, a click input, a long press input, a sliding input, etc. In some embodiments, the second input may be a user's click input for the target application identifier.
[0127] In some embodiments, the electronic device can directly display the application identifiers of the applications to which the multiple audios currently being played belong, or can hide the application identifiers. For example, the application identifiers of the applications to which the first audios belong can be hidden by a side hidden bar of the electronic device, and the user can make the electronic device display the side bar by sliding, voice, gesture, etc., so that the application identifiers of the applications to which the first audios belong can be displayed. At this time, the user can select a suitable application identifier from the application identifiers as the target application identifier.
[0128] S820. In response to the second input, display a second control corresponding to the target application.
[0129] The target application is an application corresponding to the target application identifier. After receiving the second input, the electronic device can display a second control corresponding to the target application. The user can dynamically adjust the position, size, shape and other information of the second control according to needs.
[0130] Displaying the second control corresponding to the target application indicates that the application-level sound position control function is enabled, that is, the user can dynamically adjust the sound position of a single application.
[0131] S830. Determine a sound direction of a first audio signal belonging to a target application according to the attribute information of the second control.
[0132] The attribute information of the second control may include, for example, the position information of the second control on the screen, the package name of the second control, etc. The process of determining the sound orientation of the target application according to the attribute information of the second control can refer to the process of determining the sound orientation of the target audio according to the attribute information of the first control in the above embodiment, which will not be repeated here for the sake of brevity.
[0133] Through the above method, users can adjust the sound direction of a certain audio application individually at the application level, which meets the user's personalized playback needs for different audio applications, enriches the audio playback format, and improves the user's listening experience.
[0134] The embodiment of the present application provides a new audio interaction method, which can determine the appropriate sound direction for each first audio played by the electronic device according to the audio type, audio identification, display mode of the corresponding application, etc., thereby enriching the audio playback format and improving the user's experience of audio and video entertainment.
[0135] It should be noted that the audio playback method provided in the embodiment of the present application can be executed by an audio playback device or a processing module in the audio playback device for executing the audio playback method. In the embodiment of the present application, the audio playback device provided in the embodiment of the present application is described by taking the audio playback device executing the audio playback method as an example.
[0136] Fig. 9 A schematic diagram of the structure of an audio playback device provided in an embodiment of the present application.
[0137] like Fig. 9 As shown, the audio playback device 900 may include:
[0138] The acquisition module 901 is used to acquire audio information of a first audio in the electronic device, where the audio information includes at least one of the following: an audio type of the first audio, an audio identifier of the first audio, and an application to which the first audio belongs;
[0139] A determination module 902, configured to determine a sound location of a first audio according to the audio information;
[0140] The playing module 903 is used to play the first audio according to the sound direction.
[0141] In an embodiment of the present application, the audio information of the first audio in the electronic device is obtained, and the audio information includes at least one of the following: the audio type of the first audio, the audio identifier of the first audio, and the application to which the first audio belongs; the sound direction of the first audio is determined according to the audio information; and the first audio is played according to the sound direction. That is, the embodiment of the present application can dynamically determine the sound direction of the audio according to the audio type, audio identifier, application to which the first audio belongs, and other information, and play the corresponding audio according to the sound direction, which enriches the audio playback form and improves the user's auditory experience of the audio.
[0142] In some possible implementations of the embodiments of the present application, the audio information includes an audio type of the first audio;
[0143] The determination module 902 is specifically configured to:
[0144] The sound direction of the first audio is determined according to the audio type of the first audio and the mapping relationship, where the mapping relationship is used to characterize the relationship between different audio types and sound directions.
[0145] In some possible implementations of the embodiments of the present application, the first audio includes a plurality of audios, and the audio information includes an audio type of the first audio;
[0146] The determination module 902 is specifically configured to:
[0147] The sound direction of each first audio is determined according to the priority information of the audio type to which each first audio belongs.
[0148] In some possible implementations of the embodiments of the present application, the audio information includes an audio type of the first audio, the first audio includes a plurality of audios, and the audio type includes a first audio type and a second audio type;
[0149] The determination module 902 is specifically configured to:
[0150] In the case where the priorities of the first audio type and the second audio type are the same, determining the sound direction of each first audio according to the foreground and background information of each first audio, where the foreground and background information is used to indicate whether the first audio is a foreground audio or a background audio;
[0151] When the priorities of the first audio type and the second audio type are different, the sound direction of the first audio corresponding to the audio type with higher priority is determined as the first sound direction, and the sound direction of the first audio corresponding to the audio type with lower priority is determined as the second sound direction; wherein, the auditory experience in the first sound direction is better than the auditory experience in the second sound direction.
[0152] In some possible implementations of the embodiments of the present application, the first audio includes a plurality of audios, and the audio information includes an audio identifier of the first audio;
[0153] The audio playback device 900 may further include:
[0154] A receiving module, configured to receive a first input of a target audio identifier, where the target audio identifier is an audio identifier among the audio identifiers;
[0155] A display module, configured to display a first control corresponding to a target audio in response to a first input, where the target audio is a first audio corresponding to the target audio identifier;
[0156] The determination module 902 is specifically configured to:
[0157] According to the attribute information of the first control, the sound direction of the target audio is determined.
[0158] In some possible implementations of the embodiments of the present application, the attribute information includes first position information of the first control in the screen coordinate system;
[0159] The determination module 902 is specifically configured to:
[0160] Determine second position information of the first control in the voice position coordinate system according to the mapping relationship between the screen coordinate system and the voice position coordinate system and the first position information;
[0161] The sound direction of the target audio corresponding to the first control is determined according to the second position information.
[0162] In some possible implementations of the embodiments of the present application, the audio information includes an application to which the first audio belongs;
[0163] The determination module 902 is specifically configured to:
[0164] Determine a display mode of an application to which the first audio belongs;
[0165] When the display mode is the window mode, determining the window information of the window where the application is located;
[0166] The sound direction of the first audio is determined according to the window information.
[0167] In some possible implementations of the embodiments of the present application, the window information includes third position information of the window in the screen coordinate system;
[0168] The determination module 902 is specifically configured to:
[0169] Determine fourth position information of the window in the voice position coordinate system according to the mapping relationship between the screen coordinate system and the voice position coordinate system and the third position information;
[0170] The sound position of the first audio in the window is determined according to the fourth position information.
[0171] In some possible implementations of the embodiments of the present application, the first audio includes multiple audios, the audio information includes an application to which the first audio belongs, and the application includes multiple audios;
[0172] The receiving module is further used to receive a second input of a target application identifier, where the target application identifier is an application identifier among the application identifiers of each audio application;
[0173] The display module is further used to display a second control corresponding to a target application in response to a second input, where the target application is an application corresponding to the target application identifier;
[0174] The determination module 902 is specifically configured to:
[0175] According to the attribute information of the second control, a sound direction of the first audio belonging to the target application is determined.
[0176] The embodiment of the present application provides a new audio interaction method, which can determine the appropriate sound direction for each first audio played by the electronic device according to the audio type, audio identification, display mode of the corresponding application, etc., thereby enriching the audio playback format and improving the user's experience of audio and video entertainment.
[0177] The audio playback device in the embodiment of the present application can be a device, or a component in an electronic device, such as an integrated circuit or a chip. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a user computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not make specific limitations.
[0178] The electronic device in the embodiment of the present application may be a terminal with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0179] The audio playback device provided in the embodiment of the present application can achieve Figures 1 to 8The various processes in the audio playback method embodiment can achieve the same technical effect. To avoid repetition, they will not be described here.
[0180] like Fig.10 As shown, an embodiment of the present application also provides an electronic device 1000, including a processor 1001 and a memory 1002, wherein the memory 1002 stores programs or instructions that can be executed on the processor 1001, and when the program or instructions are executed by the processor 1001, the various steps of the above-mentioned audio playback method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0181] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile terminals and non-mobile terminals.
[0182] Fig.11 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
[0183] The electronic device 1100 includes but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, and a processor 1110 and other components.
[0184] Those skilled in the art will appreciate that the electronic device 1100 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.11 The structure of the electronic device 1100 shown in the figure does not constitute a limitation of the electronic device 1100. The electronic device 1100 may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0185] Among them, processor 1110 is used to obtain audio information of the first audio in the electronic device, the audio information including at least one of the following: the audio type of the first audio, the audio identifier of the first audio, and the application to which the first audio belongs; determine the sound direction of the first audio according to the audio information; and play the first audio according to the sound direction.
[0186] In an embodiment of the present application, the audio information of the first audio in the electronic device is obtained, and the audio information includes at least one of the following: the audio type of the first audio, the audio identifier of the first audio, and the application to which the first audio belongs; the sound direction of the first audio is determined according to the audio information; and the first audio is played according to the sound direction. That is, the embodiment of the present application can dynamically determine the sound direction of the audio according to the audio type, audio identifier, application to which the first audio belongs, and other information, and play the corresponding audio according to the sound direction, which enriches the audio playback form and improves the user's auditory experience of the audio.
[0187] In some possible implementations of the embodiments of the present application, the audio information includes an audio type of the first audio;
[0188] The processor 1110 is specifically configured to:
[0189] The sound direction of the first audio is determined according to the audio type of the first audio and the mapping relationship, where the mapping relationship is used to characterize the relationship between different audio types and sound directions.
[0190] In some possible implementations of the embodiments of the present application, the first audio includes a plurality of audios, and the audio information includes an audio type of the first audio;
[0191] The processor 1110 is specifically configured to:
[0192] The sound direction of each first audio is determined according to the priority information of the audio type to which each first audio belongs.
[0193] In some possible implementations of the embodiments of the present application, the audio information includes an audio type of the first audio, the first audio includes a plurality of audios, and the audio type includes a first audio type and a second audio type;
[0194] The processor 1110 is specifically configured to:
[0195] In the case where the priorities of the first audio type and the second audio type are the same, determining the sound direction of each first audio according to the foreground and background information of each first audio, where the foreground and background information is used to indicate whether the first audio is a foreground audio or a background audio;
[0196] When the priorities of the first audio type and the second audio type are different, the sound direction of the first audio corresponding to the audio type with higher priority is determined as the first sound direction, and the sound direction of the first audio corresponding to the audio type with lower priority is determined as the second sound direction; wherein, the auditory experience in the first sound direction is better than the auditory experience in the second sound direction.
[0197] In some possible implementations of the embodiments of the present application, the first audio includes a plurality of audios, and the audio information includes an audio identifier of the first audio;
[0198] A user input unit 1107, configured to receive a first input of a target audio identifier, where the target audio identifier is an audio identifier among the audio identifiers;
[0199] The display unit 1106 is configured to display a first control corresponding to a target audio in response to a first input, where the target audio is a first audio corresponding to the target audio identifier;
[0200] The processor 1110 is specifically configured to:
[0201] According to the attribute information of the first control, the sound direction of the target audio is determined.
[0202] In some possible implementations of the embodiments of the present application, the attribute information includes first position information of the first control in the screen coordinate system;
[0203] The processor 1110 is specifically configured to:
[0204] Determine second position information of the first control in the voice position coordinate system according to the mapping relationship between the screen coordinate system and the voice position coordinate system and the first position information;
[0205] The sound direction of the target audio corresponding to the first control is determined according to the second position information.
[0206] In some possible implementations of the embodiments of the present application, the audio information includes an application to which the first audio belongs;
[0207] The processor 1110 is specifically configured to:
[0208] Determine a display mode of an application to which the first audio belongs;
[0209] When the display mode is the window mode, determining the window information of the window where the application is located;
[0210] The sound direction of the first audio is determined according to the window information.
[0211] In some possible implementations of the embodiments of the present application, the window information includes third position information of the window in the screen coordinate system;
[0212] The processor 1110 is specifically configured to:
[0213] Determine fourth position information of the window in the voice position coordinate system according to the mapping relationship between the screen coordinate system and the voice position coordinate system and the third position information;
[0214] The sound position of the first audio in the window is determined according to the fourth position information.
[0215] In some possible implementations of the embodiments of the present application, the first audio includes multiple audios, the audio information includes an application to which the first audio belongs, and the application includes multiple audios;
[0216] The user input unit 1107 is further used to receive a second input of a target application identifier, where the target application identifier is an application identifier among the application identifiers of each audio application;
[0217] The display unit 1106 is further configured to display a second control corresponding to a target application in response to a second input, where the target application is an application corresponding to the target application identifier;
[0218] The processor 1110 is specifically configured to:
[0219] According to the attribute information of the second control, a sound direction of the first audio belonging to the target application is determined.
[0220] The embodiment of the present application provides a new audio interaction method, which can determine the appropriate sound direction for each first audio played by the electronic device according to the audio type, audio identification, display mode of the audio application to which it belongs, etc., thereby enriching the audio playback format and improving the user's experience of audio and video entertainment.
[0221] It should be understood that in the embodiment of the present application, the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042, and the graphics processor 11041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1107 includes a touch panel 11071 and at least one of other input devices 11072. The touch panel 11071 is also called a touch screen. The touch panel 11071 may include two parts: a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0222] The memory 1109 can be used to store software programs and various data. The memory 1109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1109 may include a volatile memory or a non-volatile memory, or the memory 1109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0223] The processor 1110 may include one or more processing units; optionally, the processor 1110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1110.
[0224] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned audio playback method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0225] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0226] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned audio playback method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0227] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0228] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned audio playback method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0229] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0230] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0231] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. An audio playback method, characterized in that: include: Acquire audio information of a first audio in the electronic device, where the audio information includes at least one of the following: an audio type of the first audio, an audio identifier of the first audio, and an application to which the first audio belongs; Determine the sound direction of the first audio according to the audio information; The first audio is played according to the sound orientation.
2. The method according to claim 1, characterized in that The audio information includes the audio type of the first audio; The determining the sound direction of the first audio according to the audio information includes: The sound direction of the first audio is determined according to the audio type and a mapping relationship of the first audio, where the mapping relationship is used to characterize the relationship between different audio types and sound directions.
3. The method according to claim 1, characterized in that The first audio includes a plurality of audios, and the audio information includes an audio type of the first audio; The determining the sound direction of the first audio according to the audio information includes: The sound direction of each of the first audios is determined according to the priority information of the audio type to which each of the first audios belongs.
4. The method according to claim 1, characterized in that: The audio information includes an audio type of the first audio, the first audio includes a plurality of audio types, and the audio type includes a first audio type and a second audio type; The determining the sound direction of the first audio according to the audio information includes: In a case where the priorities of the first audio type and the second audio type are the same, determining the sound direction of each of the first audios according to foreground and background information of each of the first audios, where the foreground and background information is used to indicate whether the first audio is a foreground audio or a background audio; When the priorities of the first audio type and the second audio type are different, the sound direction of the first audio corresponding to the audio type with higher priority is determined as the first sound direction, and the sound direction of the first audio corresponding to the audio type with lower priority is determined as the second sound direction; wherein, the auditory experience in the first sound direction is better than the auditory experience in the second sound direction.
5. The method according to claim 1, characterized in that The first audio includes a plurality of audios, and the audio information includes audio identifiers of the first audios; The determining the sound direction of the first audio according to the audio information includes: receiving a first input of a target audio identifier, wherein the target audio identifier is an audio identifier among the audio identifiers; In response to the first input, display a first control corresponding to a target audio, where the target audio is a first audio corresponding to the target audio identifier; The sound direction of the target audio is determined according to the attribute information of the first control.
6. The method according to claim 5, characterized in that The attribute information includes first position information of the first control in the screen coordinate system; The determining the sound direction of the target audio according to the attribute information of the first control includes: Determine second position information of the first control in the voice position coordinate system according to the mapping relationship between the screen coordinate system and the voice position coordinate system and the first position information; Determine the sound direction of the target audio corresponding to the first control according to the second position information.
7. The method according to claim 1, characterized in that The audio information includes an application to which the first audio belongs; The determining the sound direction of the first audio according to the audio information includes: Determining a display mode of an application to which the first audio belongs; When the display mode is a window mode, determining the window information of the window where the application is located; The sound direction of the first audio is determined according to the window information.
8. The method according to claim 7, characterized in that The window information includes third position information of the window in the screen coordinate system; The step of determining the sound direction of the first audio according to the window information includes: Determine fourth position information of the window in the voice position coordinate system according to the mapping relationship between the screen coordinate system and the voice position coordinate system, and the third position information; The sound position of the first audio in the window is determined according to the fourth position information.
9. The method according to claim 1, characterized in that: The first audio includes a plurality of audios, the audio information includes an application to which the first audio belongs, and the application includes a plurality of applications; The determining the sound direction of the first audio according to the audio information includes: receiving a second input of a target application identifier, wherein the target application identifier is an application identifier among the application identifiers of the applications; In response to the second input, display a second control corresponding to a target application, where the target application is an application corresponding to the target application identifier; According to the attribute information of the second control, a sound direction of the first audio belonging to the target application is determined.
10. An audio playback device, characterized in that: include: An acquisition module, configured to acquire audio information of a first audio in an electronic device, wherein the audio information includes at least one of the following: an audio type of the first audio, an audio identifier of the first audio, and an application to which the first audio belongs; A determination module, configured to determine a sound direction of the first audio according to the audio information; A playing module is used to play the first audio according to the sound orientation.
11. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 9 are implemented.
12. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.