Audio playback system and method and electronic device

By establishing communication connections between electronic devices, automatically transmitting and applying audio attributes, the problem of users in the prior art need to manually adjust the audio playback speed, and a simpler and more diverse audio playback experience is achieved.

WO2025067408A1PCT designated stage expired Publication Date: 2025-04-03HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/121697
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-28
Filing Date
2024-09-27
Publication Date
2025-04-03

AI Technical Summary

Technical Problem

The existing audio playback system requires users to manually adjust the playback speed of the audio content, which is cumbersome and needs to be readjusted when the audio content changes.

Method used

By establishing a communication connection between the electronic devices, automatic transmission and application of audio attributes is realized, allowing the first electronic device to send the audio attributes to the second electronic device in response to user operations, and automatically play audio content based on these attributes.

Benefits of technology

Save user operations, improve the diversity of audio playback in the device, and realize the function of automatically adjusting the playback speed without manually adjusting the audio properties.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024121697_03042025_PF_FP_ABST
    Figure CN2024121697_03042025_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides an audio playback system and method and an electronic device. A communication connection is established between a first electronic device and a second electronic device; the first electronic device is used for sending, in response to a first operation, a first audio attribute to the second electronic device by means of the communication connection, the first audio attribute comprising one or more of the following: a first volume, a first timbre, and a first speech speed; and the second electronic device is used for receiving the first audio attribute and playing first audio content on the basis of the first audio attribute. By means of the method, an electronic device can play audio content on the basis of an audio attribute, and a user does not need to manually adjust the audio attribute of the audio content, thereby omitting user operations and also improving the diversity of audio playback of devices.
Need to check novelty before this filing date? Find Prior Art

Description

Audio playback system, method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on September 28, 2023, with application number 202311282771.X, and priority to the Chinese patent application entitled “An Audio Playback System, Method and Electronic Device”, all contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminal technology, and in particular to an audio playback system, method, and electronic device. Background Art

[0003] In daily life, users use electronic devices such as mobile phones and tablets to play audio such as voice messages, music, and videos. Generally, when playing audio, electronic devices support users to set different playback magnifications such as 0.75X, 1.25X, and 1.5X.

[0004] Different users have different requirements for audio playback speeds. For example, some users prefer fast playback when playing TV series, while some users prefer slow playback. In order to allow users to freely adjust the playback speed of audio or audio and video, a multi-speed playback function is generally set up in the application, and users can adjust the playback speed of audio or audio and video in the application through the multi-speed playback function. However, this multi-speed playback function requires manual intervention, and when the audio content or audio and video content changes, the user needs to readjust the playback speed of the audio content or audio and video content, which is cumbersome for the user to operate.

[0005] Summary of the Invention

[0006] The present application provides an audio playback system, method, and electronic device, which can play audio content based on audio attributes without the user having to manually adjust the audio attributes of the audio content. This not only saves user operations but also improves the diversity of audio playback of the device.

[0007] In a first aspect, the present application provides an audio playback system, which includes a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device establish a communication connection, wherein the first electronic device is used to send a first audio attribute to the second electronic device through the communication connection in response to a first operation, and the first audio attribute includes one or more of the following: a first volume, a first timbre, and a first speaking speed; the second electronic device is used to receive the first audio attribute and play the first audio content based on the first audio attribute.

[0008] In some embodiments, the first audio attribute may be an audio attribute defined in a speech rate card. In this way, the first electronic device can receive a user operation and share the speech rate card with other devices. The other devices can then receive and use the first audio attribute. This eliminates the need to receive a user operation to create a speech rate card, saving user effort.

[0009] In other embodiments, the first audio attribute may be an audio attribute corresponding to the audio content. When the first electronic device sends the audio content to the second electronic device, it also sends the audio attribute corresponding to the audio content to the second electronic device. The second electronic device may play the audio content based on the audio attribute corresponding to the audio content.

[0010] This method can adjust the audio properties of audio content, and the device can play the audio content based on the audio properties. This eliminates the need for users to manually adjust the audio properties of the audio content, saving user operations and increasing the diversity of audio playback on the device.

[0011] In combination with the first aspect, in a possible implementation, the first electronic device is further used to: display a first speaking rate card, the first speaking rate card includes a first audio attribute, and the first operation is a user operation on the first speaking rate card.

[0012] The first audio attribute can be the audio attribute defined in the first speaking rate card. In this way, the first electronic device can receive a user operation and share the first speaking rate card with other devices. The other devices can receive and use the first audio attribute. This eliminates the need to receive a user operation to create a speaking rate card, saving user effort.

[0013] The first electronic device displays the first speaking speed card, so that the user can view the first audio attribute defined by the first speaking speed card. The user can also modify the audio attribute defined by the first speaking speed card.

[0014] In combination with the first aspect, in a possible implementation, the first electronic device is also used to display a first prompt message, the first prompt message includes a first device identifier, and the first device identifier is the device identifier of the second electronic device; the first electronic device is specifically used to send the first audio attribute to the second electronic device through a communication connection in response to the user's second operation on the first device identifier.

[0015] In this way, the user can select a target device to share the first audio attribute, so as to achieve sharing of the audio attribute of the audio content between the devices.

[0016] In combination with the first aspect, in a possible implementation, the second electronic device is further configured to generate and display a second speaking rate card according to the first audio attribute, where the second speaking rate card includes the first audio attribute.

[0017] In this way, after the second electronic device receives the first speaking speed card shared by the first electronic device, the second electronic device can automatically generate and display the second speaking speed card, making it convenient for the user to view and modify the audio attributes defined in the second speaking speed card.

[0018] In combination with the first aspect, in one possible implementation, the first electronic device is specifically used to send a first audio file to a second electronic device through a communication connection in response to a first operation, where the first audio file includes first audio content and a first audio attribute corresponding to the first audio content; the second electronic device is specifically used to receive the first audio file and play the first audio content based on the first audio attribute in the first audio file.

[0019] In this way, the first audio attribute can be the audio attribute corresponding to the audio content. When the first electronic device sends the audio content to the second electronic device, it also sends the audio attribute corresponding to the audio content to the second electronic device. The second electronic device can play the audio content based on the audio attribute corresponding to the audio content.

[0020] In combination with the first aspect, in a possible implementation, the second electronic device is further configured to display second prompt information, where the second prompt information is configured to instruct the second electronic device to play the first audio content based on the first audio attribute.

[0021] In this way, the second electronic device can prompt the user that the second electronic device is playing the first audio content using the first audio attribute.

[0022] In combination with the first aspect, in a possible implementation method, the first audio content is the first voice information, the first audio attribute is the audio attribute of the voice information corresponding to the first object identifier of the first application, or the first audio attribute is the audio attribute of the voice information of the first application, or the first audio attribute is the audio attribute corresponding to the voice information; the first electronic device is specifically used to send the first audio file to the second electronic device through the first application in response to the first operation; the second electronic device is specifically used to receive the first audio file through the first application, and play the first language information based on the first audio attribute in the first audio file.

[0023] In combination with the first aspect, in a possible implementation manner, the first object identifier is a sender identifier of the first voice information in the first application.

[0024] For example, the first application may be an instant messaging application. When users send voice messages to each other within the instant messaging application, the electronic device can change the audio attributes of the voice message. When the device plays the voice message, it can play the voice message based on the audio attributes carried in the voice message, thereby increasing the fun of interaction between devices and improving the user experience.

[0025] In combination with the first aspect, in one possible implementation, the first audio attribute is an audio attribute corresponding to the first audio type or the first application identifier or the first object identifier within the first application; the first electronic device is further used to: obtain a second audio file, the second audio file includes second audio content and second audio attributes of the second audio content, the second audio attributes include one or more of the following: second volume, second timbre, second speaking speed; determine the first audio attribute based on the first audio type to which the second audio content belongs or the first application identifier to which the second audio content belongs or the first object identifier within the first application to which the second audio content belongs; and play the second audio content based on the first audio attribute.

[0026] In some embodiments, the second audio file may be an audio file stored locally on the first electronic device, an audio file sent by another device to the first electronic device, or an audio file downloaded from a server by the first electronic device.

[0027] When the first electronic device plays the second audio content in the second audio file, it can determine whether the audio attributes of the second audio content are locally stored. In some cases, the first electronic device can play the second audio content based on the matched audio attributes. This eliminates the need for the user to manually adjust the audio attributes of the audio content, saving user operations and increasing the diversity of audio playback on the device.

[0028] In combination with the first aspect, in one possible implementation, the first electronic device is further used to: display a third prompt message; receive a second operation from the user for the first option in the third prompt message; and the first electronic device is specifically used to play the second audio content based on the first audio attribute in response to the second operation.

[0029] In combination with the first aspect, in a possible implementation, the first electronic device is further used to: receive a third operation of the user on the second option in the third prompt information; and play the second audio content based on the second audio attribute in response to the third operation.

[0030] When the first electronic device plays the second audio content in the second audio file, the first electronic device may determine whether the audio attributes of the second audio content are stored locally. In some cases, the first electronic device may prompt the user whether to use the audio attributes to play the second audio content. If the user agrees, the first electronic device may play the second audio content based on the matched audio attributes. If the user disagrees, the first electronic device may play the second audio content based on the audio attributes carried by the second audio content.

[0031] In combination with the first aspect, in a possible implementation, the first electronic device is further used to: receive and respond to a fourth operation, determine a first template preset card, the first preset card includes preset audio attributes, and the preset audio attributes include one or more of the following: preset volume, preset timbre, and preset speaking speed; receive a user operation to modify the preset audio attributes in the first preset card, and obtain a first audio attribute; in response to the user operation of saving the first template card after modifying the preset audio attribute to the first audio attribute, obtain a first speaking speed card; or, in response to the user operation of saving the first template card, obtain a first speaking speed card, and the preset audio attribute is the same as the first audio attribute.

[0032] In some embodiments, the first audio attribute is an audio attribute corresponding to the first audio type or the first application identifier or the first object identifier in the first application. A plurality of preset cards of different types are stored on the first electronic device. When it is detected that a speaking speed card needs to be created (for example, when collecting audio content), the first electronic device can obtain a first preset card based on the audio attribute matching corresponding to the first audio type or the first application identifier or the first object identifier in the first application of the collected audio content. The first preset card includes preset audio attributes, and the user can directly save the preset audio attributes of the first preset card to obtain a first speaking speed card. The user can also modify the preset audio attributes of the first preset card and save it to obtain a first speaking speed card. This improves the efficiency of users in creating speaking speed cards on electronic devices.

[0033] In a second aspect, the present application provides a method for audio playback, comprising: a first electronic device sends a first audio attribute to a second electronic device in response to a first operation, and the first audio attribute is used by the second electronic device to play the first audio content based on the first audio attribute, wherein the first audio attribute includes one or more of the following: a first volume, a first timbre, and a first speaking speed.

[0034] In some embodiments, the first audio attribute may be an audio attribute defined in a speech rate card. In this way, the first electronic device can receive a user operation and share the speech rate card with other devices. The other devices can then receive and use the first audio attribute. This eliminates the need to receive a user operation to create a speech rate card, saving user effort.

[0035] In other embodiments, the first audio attribute may be an audio attribute corresponding to the audio content. When the first electronic device sends the audio content to the second electronic device, it also sends the audio attribute corresponding to the audio content to the second electronic device. The second electronic device may play the audio content based on the audio attribute corresponding to the audio content.

[0036] This method can adjust the audio properties of audio content, and the device can play the audio content based on the audio properties. This eliminates the need for users to manually adjust the audio properties of the audio content, saving user operations and increasing the diversity of audio playback on the device.

[0037] In combination with the second aspect, in a possible implementation, a first speaking rate card is displayed on the first electronic device, the first speaking rate card includes a first audio attribute, and the first operation is a user operation on the first speaking rate card.

[0038] In combination with the second aspect, in a possible implementation, after the first electronic device responds to the first operation, the method also includes: the first electronic device displays a first prompt message, the first prompt message includes a first device identifier, and the first device identifier is the device identifier of the second electronic device; sending the first audio attribute to the second electronic device, specifically including: in response to the user's second operation on the first device identifier, the first electronic device sends the first audio attribute to the second electronic device.

[0039] In combination with the second aspect, in one possible implementation, the first electronic device sends the first audio attribute to the second electronic device in response to the first operation, specifically including: in response to the first operation, the first electronic device sends the first audio file to the second electronic device, the first audio file including the first audio content and the first audio attribute corresponding to the first audio content.

[0040] In combination with the second aspect, in one possible implementation method, the first audio content is the first voice information, the first audio attribute is the audio attribute of the voice information corresponding to the first object identifier of the first application, or the first audio attribute is the audio attribute of the voice information of the first application, or the first audio attribute is the audio attribute corresponding to the voice information; in response to the first operation, the first electronic device sends the first audio file to the second electronic device, specifically including: in response to the first operation, the first electronic device sends the first audio file to the second electronic device through the first application.

[0041] In conjunction with the second aspect, in a possible implementation manner, the first object identifier is a sender identifier of the first voice information in the first application.

[0042] In combination with the second aspect, in one possible implementation, the first audio attribute is an audio attribute corresponding to the first audio type or the first application identifier or the first object identifier within the first application; the method also includes: the first electronic device obtains a second audio file, the second audio file includes second audio content and second audio attributes of the second audio content, the second audio attributes include one or more of the following: second volume, second timbre, second speaking speed; the first electronic device determines the first audio attribute based on the first audio type to which the second audio content belongs or the first application identifier to which the second audio content belongs or the first object identifier within the first application to which the second audio content belongs; the first electronic device plays the second audio content based on the first audio attribute.

[0043] In combination with the second aspect, in a possible implementation, before the first electronic device plays the second audio content based on the first audio attribute, the method also includes: the first electronic device displays a third prompt message; the first electronic device receives a second operation of the user for the first option in the third prompt message; the first electronic device plays the second audio content based on the first audio attribute, specifically including: in response to the second operation, the first electronic device plays the second audio content based on the first audio attribute.

[0044] In combination with the second aspect, in a possible implementation, the method further includes: the first electronic device receives a third operation of the user on the second option in the third prompt information; in response to the third operation, the first electronic device plays the second audio content based on the second audio attribute.

[0045] In combination with the second aspect, in a possible implementation, the method also includes: the first electronic device receives and responds to the fourth operation, determines a first template preset card, the first preset card includes preset audio attributes, and the preset audio attributes include one or more of the following: preset volume, preset timbre, and preset speaking speed; the first electronic device receives a user operation to modify the preset audio attributes in the first preset card, and obtains the first audio attributes; in response to the user operation of saving the first template card after modifying the preset audio attributes to the first audio attributes, obtains a first speaking speed card; or, in response to the user operation of saving the first template card, obtains a first speaking speed card, and the preset audio attributes are the same as the first audio attributes.

[0046] In a third aspect, the present application provides an audio playback method, comprising: a second electronic device receiving a first audio attribute sent by a first electronic device, the first audio attribute being sent after the first electronic device responds to a first operation, the first audio attribute including one or more of the following: a first volume, a first timbre, a first speaking speed; the second electronic device plays the first audio content based on the first audio attribute.

[0047] In some embodiments, the first audio attribute may be an audio attribute defined in a speech rate card. In this way, the first electronic device can receive a user operation and share the speech rate card with other devices. The other devices can then receive and use the first audio attribute. This eliminates the need to receive a user operation to create a speech rate card, saving user effort.

[0048] In other embodiments, the first audio attribute may be an audio attribute corresponding to the audio content. When the first electronic device sends the audio content to the second electronic device, it also sends the audio attribute corresponding to the audio content to the second electronic device. The second electronic device may play the audio content based on the audio attribute corresponding to the audio content.

[0049] This method can adjust the audio properties of audio content, and the device can play the audio content based on the audio properties. This eliminates the need for users to manually adjust the audio properties of the audio content, saving user operations and increasing the diversity of audio playback on the device.

[0050] In combination with the third aspect, in one possible implementation, after the second electronic device receives the first audio attribute sent by the first electronic device, the method also includes: the second electronic device generates and displays a second speaking speed card based on the first audio attribute, and the second speaking speed card includes the first audio attribute.

[0051] In combination with the third aspect, in a possible implementation method, the second electronic device receives the first audio attribute sent by the first electronic device, specifically including: the second electronic device receives the first audio file sent by the first electronic device, the first audio file includes first audio content and first audio attributes corresponding to the first audio content, and the first audio file is sent after the first electronic device responds to the first operation; the second electronic device plays the first audio content based on the first audio attribute, specifically including: the second electronic device plays the first audio content based on the first audio attributes in the first audio file.

[0052] In combination with the third aspect, in a possible implementation manner, the method further includes: the second electronic device displays second prompt information, where the second prompt information is used to instruct the second electronic device to play the first audio content based on the first audio attribute.

[0053] In combination with the third aspect, in a possible implementation method, the first audio content is the first voice information, the first audio attribute is the audio attribute of the voice information corresponding to the first object identifier of the first application, or the first audio attribute is the audio attribute of the voice information of the first application, or the first audio attribute is the audio attribute corresponding to the voice information; the second electronic device receives the first audio file sent by the first electronic device, specifically including: the second electronic device receives the first audio file sent by the first electronic device through the first application; the second electronic device plays the first audio content based on the first audio attribute in the first audio file, specifically including: the second electronic device plays the first voice information based on the first audio attribute in the first audio file.

[0054] In conjunction with the third aspect, in a possible implementation manner, the first object identifier is a sender identifier of the first voice information in the first application.

[0055] In a fourth aspect, the present application provides an electronic device, which is a first electronic device, and the first electronic device includes a memory and a processor; wherein the memory and the processor are coupled, and the memory is used to store a computer program, and when the processor executes and calls the computer program, the first electronic device executes an audio control method provided in any possible implementation of any of the above aspects.

[0056] In a fifth aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on a first electronic device, enables the first electronic device to execute an audio control method provided in any possible implementation of any of the above aspects.

[0057] In a sixth aspect, the present application provides a chip system, which includes one or more processors, and the processor is used to call computer instructions to enable a first electronic device to execute an audio control method provided in any possible implementation of any of the above aspects.

[0058] In a seventh aspect, the present application provides a computer program product comprising instructions, which, when run on a first electronic device, enables the first electronic device to execute an audio control method provided in any possible implementation of any of the above aspects.

[0059] In an eighth aspect, the present application provides an electronic device, which is a second electronic device, and the second electronic device includes a memory and a processor; wherein the memory and the processor are coupled, and the memory is used to store a computer program, and when the processor executes and calls the computer program, the second electronic device executes an audio control method provided in any possible implementation of any of the above aspects.

[0060] In a ninth aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on a second electronic device, enables the second electronic device to execute an audio control method provided in any possible implementation of any of the above aspects.

[0061] In the tenth aspect, the present application provides a chip system, which includes one or more processors, and the processor is used to call computer instructions to enable a second electronic device to execute an audio control method provided in any possible implementation of any of the above aspects.

[0062] In an eleventh aspect, the present application provides a computer program product comprising instructions, which, when executed on a second electronic device, enables the second electronic device to execute an audio control method provided in any possible implementation of any of the above aspects.

[0063] For the description of the beneficial effects of the second to eleventh aspects, reference may be made to the description of the beneficial effects in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] FIG1 shows a system architecture diagram provided by the present application;

[0065] FIG2 shows a schematic structural diagram of the electronic device 100;

[0066] FIG3 shows a software structure block diagram of the electronic device 100;

[0067] 4A-4R exemplarily illustrate a schematic diagram of an electronic device 100 creating an audio generation speech rate card within a first application;

[0068] 4S to 4V are schematic diagrams showing an electronic device 100 displaying system-level audio generation speech rate cards;

[0069] FIG5 is a flowchart of a method for generating and using audio to generate speech rate cards by an electronic device 100 provided in this application;

[0070] 6A and 6B show schematic diagrams of an application-level audio playback speech rate card;

[0071] 6C-6E are schematic diagrams showing several system-level audio playback speed cards;

[0072] 7A-7F are schematic diagrams showing the electronic device 100 playing an audio file based on an audio playback speech rate card;

[0073] 7G-7L are schematic diagrams showing the electronic device 100 playing an audio file based on a system-level audio playback speech rate card;

[0074] FIG8 is a schematic flow chart showing a method for the electronic device 100 to play audio based on audio playback speed cards;

[0075] 9A-9E are schematic diagrams showing the electronic device 100 receiving a user operation to modify a second target audio attribute defined by an audio playback speech rate card;

[0076] 10A-10F are schematic diagrams showing the electronic device 100 receiving a user operation to view a speech rate card;

[0077] 11A-11D are schematic diagrams showing electronic device 100 sharing a speech rate card with electronic device 200;

[0078] FIG12 shows a flow chart of a method for electronic device 100 to share a speech speed card with electronic device 200;

[0079] FIG13 is a flow chart of an audio playback system provided in this application. DETAILED DESCRIPTION

[0080] The following is a clear and detailed description of the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship between related objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0081] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.

[0082] The term "user interface (UI)" in the following embodiments of this application refers to the media interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. A common form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.

[0083] The present application provides an audio attribute adjustment module, which can be integrated into an application or into a system of an electronic device.

[0084] When the audio attribute adjustment module is integrated into an app, users can use it to set target audio attributes, allowing the app to generate or play audio files based on the target audio attributes set by the app. Target audio attributes may include, but are not limited to, target volume, target speech rate, and target timbre.

[0085] When the audio attribute adjustment module is integrated into the system of the electronic device, the user can set the target audio attribute through the audio attribute adjustment module so that one or more applications on the electronic device can generate audio files or play audio files according to the target audio attributes set by the system.

[0086] In some embodiments, to allow the user to view the target audio attributes set within the application or the target audio attributes set within the system, the electronic device 100 may display a speech rate card within the application or within the system of the electronic device, with the target audio attributes displayed on the speech rate card. The user may modify the target audio attributes on the speech rate card, or the user may share the target audio attributes on the speech rate card with other devices.

[0087] The following embodiments of the present application are described using an example in which a user can generate a speech rate card through an audio attribute adjustment module.

[0088] First, the technical terms involved in this application are explained.

[0089] 1. Speaking speed

[0090] The speaking rate may refer to the speed at which the electronic device 100 plays the audio file.

[0091] In some embodiments, the time length of the audio file played per unit time may be referred to as the speed at which the electronic device 100 plays the audio file.

[0092] For example, the time length of an audio file played within 1 second may be referred to as the speed at which the electronic device 100 plays the audio file.

[0093] An audio file may include audio content of a preset time length. For example, an audio file may include audio content of other preset time lengths such as 10s, 60s, 5 minutes, or 1 hour.

[0094] Before the speech speed of the audio file is adjusted, the electronic device 100 plays the audio file at the standard speech speed.

[0095] For example, the standard speaking speed may be playing 2 seconds of audio content within 1 second.

[0096] The electronic device 100 can adjust the speech speed of the audio file. The electronic device 100 can speed up the speech speed of the audio file or slow down the speech speed of the audio file.

[0097] After the electronic device 100 speeds up the speech speed of the audio file, the electronic device 100 can play the audio file at the speeded up speech speed, where the speeded up speech speed is faster than the standard speech speed.

[0098] For example, the electronic device 100 plays the audio file at an accelerated speaking speed and can play 4 seconds of audio content within 1 second.

[0099] After the electronic device 100 slows down the speech speed of the audio file, the electronic device 100 can play the audio file at the slowed speech speed, where the slowed speech speed is slower than the standard speech speed.

[0100] For example, the electronic device 100 plays the audio file at a slowed speech speed and can play 0.5s of audio content within 1s.

[0101] In other embodiments, the audio file may be composed of multiple words, and the amount of words played per unit time may also be referred to as the speed at which the electronic device 100 plays the audio file.

[0102] Before the speech speed of the audio file is adjusted, the electronic device 100 plays the audio file at the standard speech speed.

[0103] The standard speaking speed may be that the electronic device 100 plays audio content of 10 words within 1 second.

[0104] The electronic device 100 can adjust the speech speed of the audio file. The electronic device 100 can speed up the speech speed of the audio file or slow down the speech speed of the audio file.

[0105] For example, after the electronic device 100 speeds up the speech speed of the audio file, the electronic device 100 may play the audio file at the speeded up speech speed, where the speeded up speech speed is faster than the standard speech speed.

[0106] For example, the electronic device 100 plays the audio file at an accelerated speaking speed and can play audio content of 20 words within 1 second.

[0107] After the electronic device 100 slows down the speech speed of the audio file, the electronic device 100 can play the audio file at the slowed speech speed, where the slowed speech speed is slower than the standard speech speed.

[0108] For example, the electronic device 100 plays the audio file at a slowed speech speed and can play audio content of 5 words within 1 second.

[0109] The speed of speech can be described by speech speed levels, which may include, but are not limited to, low, medium-low, standard, medium, medium-high, and high speeds. Low speed is slower than medium-low, medium-low is slower than standard, standard is slower than medium, medium is slower than medium-high, and medium-high is slower than high. The speech speed levels may be preset or user-defined, and this application does not impose any restrictions on this.

[0110] 2. Speaking Speed ​​Cards

[0111] Speech rate cards can be divided into audio playback speech rate cards and audio generation speech rate cards.

[0112] The audio generation speech speed card is used to adjust the speech speed of the generated audio file when the electronic device 100 generates the audio file. In this way, the audio file generated by the electronic device 100 can be generated according to the speech speed preset by the user.

[0113] In some embodiments, the audio generation speech rate card is not limited to adjusting the speech rate of the generated audio file, but can also adjust other attributes of the generated audio file, such as volume, sound quality, and timbre. In this way, each time the electronic device 100 collects audio and generates an audio file, it can generate an audio file based on the audio generation speech rate card according to the audio attributes set by the user, thereby increasing the diversity of the audio attributes of the audio files generated by the electronic device 100.

[0114] An audio generation speech rate card may include classification information and a first target audio attribute. The classification information may include, but is not limited to, one or more of the following: the audio type to which the audio generation speech rate card applies, the application identifier to which the audio generation speech rate card applies, and the object identifier within the application to which the audio generation speech rate card applies. The first target audio attribute may include, but is not limited to, one or more of the following: a first target speech rate, a first target volume, a first target timbre, etc.

[0115] The audio playback speed card is used to adjust the speed of the audio content to be played when the electronic device 100 obtains and plays the audio content. In this way, the speed of the audio content played by the electronic device 100 can be the same as the speed set by the user.

[0116] In some embodiments, the audio playback speech rate card is not limited to adjusting the speech rate of the audio content to be played, but can also adjust other audio attributes of the audio content to be played, such as the volume, sound quality, and timbre. In this way, each time the electronic device 100 plays audio content, the audio content can be played based on the audio attributes recorded in the audio playback speech rate card, without the user having to manually adjust the audio attributes of the audio content to be played, thus saving user operations.

[0117] An audio playback speech rate card may include classification information and a second target audio attribute. The classification information may include, but is not limited to, one or more of the following: the audio type to which the audio generation speech rate card applies, the application identifier to which the audio generation speech rate card applies, and the object identifier within the application to which the audio generation speech rate card applies. The second target audio attribute may include, but is not limited to, one or more of the following: a second target speech rate, a second target volume, a second target timbre, etc.

[0118] Optionally, the audio playback speed card and the audio generation speed card can be generated in the system settings of the electronic device 100, and then the audio playback speed card and the audio generation speed card can be effective for one or more applications on the electronic device 100 at the same time.

[0119] Optionally, the audio playback speed card and the audio generation speed card may also be generated in the first application on the electronic device 100 , and then the audio playback speed card and the audio generation speed card may be effective for the first application on the electronic device 100 .

[0120] FIG1 shows a system architecture diagram provided by this application.

[0121] As shown in FIG1 , the system includes an electronic device 100 and an electronic device 200 , and the electronic device 100 and the electronic device 200 establish a communication connection.

[0122] The communication connection between the electronic device 100 and the electronic device 200 includes but is not limited to: a short-range communication connection or a server connection, etc. The short-range communication connection may include but is not limited to a Bluetooth connection.

[0123] The electronic device 100 may receive a user operation to generate an audio playback speed card and / or an audio generation speed card, and save the audio playback speed card and / or the audio generation speed card locally.

[0124] When the electronic device 100 acquires and plays the audio file, the electronic device 100 may play the audio file according to the audio attributes defined in the audio playback speech rate card.

[0125] When the electronic device 100 generates an audio file, the electronic device 100 may adjust the audio content according to the audio attributes defined in the audio generation speech rate card, and obtain and save the audio file based on the audio content after the audio attributes are adjusted.

[0126] Optionally, the system may also include only the electronic device 100 .

[0127] In some embodiments, electronic device 100 may share an audio playback speed card and / or an audio generation speed card with electronic device 200, and electronic device 200 may save the audio playback speed card and / or audio generation speed card shared by electronic device 100. Electronic device 200 may use the audio playback speed card and / or audio generation speed card shared by electronic device 100.

[0128] For example, when the electronic device 200 obtains and plays an audio file, the electronic device 200 may play the audio file according to the audio attributes defined in the audio playback speech rate card shared by the electronic device 100 .

[0129] When the electronic device 200 generates an audio file, the electronic device 200 may adjust the audio content according to the audio attributes defined in the audio generation speech rate card shared by the electronic device 100, and obtain and save the audio file based on the audio content after the audio attributes are adjusted.

[0130] Referring to FIG. 2 , FIG. 2 shows a schematic structural diagram of an electronic device 100 .

[0131] The electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device, and / or a smart city device. The embodiments of the present application do not impose any particular restrictions on the specific type of the electronic device. The following embodiments of the present application are described using the electronic device 100 as a mobile phone as an example.

[0132] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0133] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0134] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0135] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0136] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0137] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0138] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby implementing the touch function of the electronic device 100.

[0139] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.

[0140] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0141] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.

[0142] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the electronic device 100. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0143] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0144] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.

[0145] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0146] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.

[0147] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0148] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0149] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0150] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0151] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0152] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0153] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0154] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0155] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

[0156] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0157] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise and brightness. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.

[0158] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0159] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0160] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.

[0161] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.

[0162] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).

[0163] Random access memory may include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation DDR SDRAM is generally referred to as DDR5 SDRAM), etc.; non-volatile memory may include disk storage devices and flash memory.

[0164] Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle; single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the storage cell potential level; universal flash storage (UFS), embedded multimedia card (eMMC), etc. according to the storage specification.

[0165] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.

[0166] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .

[0167] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 via the external memory interface 120 to implement data storage. For example, files such as music and videos can be stored in the external non-volatile memory.

[0168] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0169] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.

[0170] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A.

[0171] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.

[0172] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.

[0173] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0174] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force acts on pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.

[0175] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.

[0176] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.

[0177] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover based on the magnetic sensor 180D. Based on the detected opening and closing status of the case or flip cover, features such as automatic unlocking of the flip cover can be configured.

[0178] Accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). It can also detect the magnitude and direction of gravity when electronic device 100 is stationary. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.

[0179] The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance using infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.

[0180] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodetector. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodetector to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

[0181] Ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent accidental touches.

[0182] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0183] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.

[0184] The touch sensor 180K is also called a "touch-sensitive device." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a location different from that of the display screen 194.

[0185] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals from the vibrating bones of the human body. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulse signals. In some embodiments, the bone conduction sensor 180M can also be set in headphones to form bone conduction headphones. The audio module 170 can parse out voice signals based on the vibration signals of the vibrating bones of the human body obtained by the bone conduction sensor 180M to implement voice functions. The application processor can parse heart rate information based on the blood pressure pulse signals obtained by the bone conduction sensor 180M to implement heart rate detection functions.

[0186] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

[0187] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0188] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.

[0189] The SIM card interface 195 is used to connect a SIM card.

[0190] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.

[0191] FIG3 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present invention.

[0192] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0193] The application layer can include a series of application packages.

[0194] As shown in FIG3 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.

[0195] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0196] As shown in FIG3 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.

[0197] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0198] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0199] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0200] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).

[0201] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0202] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.

[0203] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.

[0204] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0205] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0206] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0207] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0208] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0209] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0210] A 2D graphics engine is a drawing engine for 2D drawings.

[0211] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0212] Next, how the electronic device 100 creates and uses the audio playback speech rate card and the audio generation speech rate card will be described in detail with reference to the accompanying drawings.

[0213] First, it is introduced how the electronic device 100 generates and uses audio to generate speech rate cards.

[0214] 1. The electronic device 100 creates an audio generation speech rate card.

[0215] The audio generation speech rate card can be used to change the audio properties of the audio content before the electronic device 100 collects the audio content to generate an audio file, so as to improve the diversity of the audio file generated by the electronic device 100.

[0216] The audio attributes may include but are not limited to one or more of the following: speaking speed, volume, timbre, etc.

[0217] In some embodiments, the electronic device 100 can change the speaking speed of the audio content collected by the electronic device 100 based on the speaking speed specified in the audio generation speaking speed card, for example, increase the speaking speed of the audio content collected by the electronic device 100 or slow down the speaking speed of the audio content collected by the electronic device 100.

[0218] In some embodiments, the electronic device 100 may also change the volume of the audio content collected by the electronic device 100 based on the volume specified in the audio generation speech rate card, such as increasing the volume of the audio content collected by the electronic device 100 or slowing down the volume of the audio content collected by the electronic device 100.

[0219] In some embodiments, the electronic device 100 may also change the timbre of the audio content collected by the electronic device 100 based on the timbre specified in the audio-generated speech rate card. The timbre may include but is not limited to; original voice, uncle, girl, shota, mature woman, loli, magnetic, sweet, children's voice, elderly female voice, elderly male voice, etc.

[0220] Optionally, the audio generation speech rate card may also simultaneously limit the change of any two or more of the speech rate, volume, and timbre of the audio content collected by the electronic device 100.

[0221] 1. The electronic device 100 creates a triggering timing for generating a speech rate card for audio.

[0222] Triggering timing 1: When collecting audio content, the electronic device 100 can prompt the user whether to create an audio generation speed card.

[0223] When the electronic device 100 collects audio content, if it detects that the electronic device 100 does not save the audio generation speech rate card, the electronic device 100 may prompt the user whether to generate and use the audio generation speech rate card.

[0224] The electronic device 100 may prompt the user whether to create an audio generation speech rate card when collecting the user's voice message, recording audio, or recording video.

[0225] For example, in an instant messaging application, contacts can send voice messages to each other to communicate. Some users speak slowly. Before generating an audio file based on the audio content output by user A, user A can choose to speed up the speech of the audio content output by the user. Some users speak quickly. Before generating an audio file based on the audio content output by user A, user A can choose to slow down the speech of the audio content output by the user. An audio file is then generated based on the audio content with the adjusted speech speed and sent to electronic device 200. User B can play the audio content with the adjusted speech speed by user A on electronic device 200.

[0226] For another example, in the audio recorder application, the user can choose to record audio. For example, the user can record audio content such as a teacher's lecture. To ensure that the user can hear the audio content clearly, when recording the audio, the electronic device 100 can prompt the user whether to create an audio generation speed card. The user can choose to slow down the speed of the audio content output by the user. Then, an audio file is generated based on the slowed-down audio content.

[0227] For another example, in the camera app, users can choose to record a video, which can include audio content and image data. For another example, users can watch a video of a teacher giving a lecture or other learning-related video. To ensure that users can clearly hear the audio content in the video, users can choose to slow down the speed of the audio content they output during the recording. An audio file is then generated based on the slowed-down audio content.

[0228] The electronic device 100 is not limited to scenarios where audio content is collected, such as when collecting the user's voice messages, recording audio, or recording videos. The electronic device 100 can also prompt the user whether to create an audio generation speed card in other scenarios where audio content is collected. This application does not limit this.

[0229] Triggering opportunity two: the electronic device 100 receives a user operation and actively creates an audio generation speed card.

[0230] The electronic device 100 can receive a user operation and proactively trigger the creation of an audio generation speed card. For example, the user can find the generation option of the audio generation speed card through the audio generation speed card entry, set the audio properties of the audio generation speed card based on the generation option of the audio generation speed card, and save the audio generation speed card.

[0231] For example, the electronic device 100 may create a system-level audio generation speech rate card upon receiving a user operation in a system setting application.

[0232] Exemplarily, the electronic device 100 may create an application-level audio generation speech rate card upon receiving a user operation within the first application.

[0233] Trigger timing three: the electronic device 100 can automatically create an audio generation speed card.

[0234] The electronic device 100 can monitor the user's behavioral habits, create a user profile based on the audio content collected by the electronic device 100 within a certain period of time, and automatically create and recommend audio generation speed cards to the user based on the user profile. The audio generation speed cards include audio attributes obtained based on the user profile.

[0235] For example, electronic device 100 may monitor the audio attributes of voice messages sent by user A to one or more other users in an instant messaging application over a certain period of time to obtain a user profile. The user profile may include information such as the speaking rate, volume, and timbre of the voice messages sent by user A to one or more other users in the instant messaging application. Based on the user profile, electronic device 100 may automatically create a chat voice audio generation speed card and recommend such a chat voice audio generation speed card to the user.

[0236] Not limited to the above triggering moments, the electronic device 100 can also prompt the user to create an audio generation speech rate card in other scenarios, and this application does not limit this.

[0237] 2. Scope of application of audio-generated speech speed cards

[0238] (1) Audio generation speed cards can be related to audio types.

[0239] The audio generation speech rate card is related to the audio type, that is, one audio generation speech rate card is associated with one audio type.

[0240] Audio types include but are not limited to one or more of the following: chat voice, music, news, learning, entertainment, etc.

[0241] If different applications on the electronic device 100 have the same type of audio, different applications can use the audio of the same audio type to generate a speech rate card. Alternatively, the first application on the electronic device 100 can use the audio of the same audio type to generate a speech rate card.

[0242] For example, the electronic device 100 stores a chat voice audio generation speed card, and the attributes of the audio file defined by the chat voice audio generation speed card include but are not limited to: generating the chat voice audio file at a medium or low speed.

[0243] Exemplarily, a first application is installed on the electronic device 100, and the electronic device 100 can receive the user's operation in the first application to obtain the audio content output by the user. Before generating the audio file, the electronic device 100 can adjust the audio properties of the audio content output by the user based on the audio generation speed card of the chat voice type, for example, adjusting the audio content output by the user to medium or low speed, and obtain the audio file.

[0244] For example, a second application is installed on the electronic device 100, and the second application is different from the first application. The electronic device 100 can receive the user's operation in the second application to obtain the audio content output by the user. Before generating the audio file, the electronic device 100 can also adjust the audio properties of the audio content output by the user based on the chat voice audio generation speed card, for example, adjusting the audio content output by the user to a medium or low speed, and obtain the audio file.

[0245] (2) Audio generation speed cards can be related to the application.

[0246] Audio Generation Speech Rate Cards are application-related, meaning one Audio Generation Speech Rate Card is associated with one application. Multiple different applications are installed on the electronic device 100, and each application corresponds to an Audio Generation Speech Rate Card. The same application can include multiple types of audio, and multiple types of audio within the same application can share the same Audio Generation Speech Rate Card. Different applications have different Audio Generation Speech Rate Cards.

[0247] For example, a first application is installed on electronic device 100. Electronic device 100 may receive a user operation to create an audio generation speech rate card for the first application. Electronic device 100 may obtain audio content through the first application. Before generating an audio file, electronic device 100 may adjust the audio properties of the audio content obtained by the first application based on the audio generation speech rate card of the first application, and obtain the audio file.

[0248] For example, a second application is installed on the electronic device 100. The electronic device 100 can receive a user operation to create an audio generation speed card for the second application. The electronic device 100 can obtain audio content through the second application. Before generating an audio file, the electronic device 100 can adjust the audio properties of the audio content obtained by the second application based on the audio generation speed card of the second application to obtain the audio file.

[0249] (3) Audio generation speed cards can be associated with objects within the application.

[0250] Audio Generation Speech Rate Cards are associated with objects within an app. This means that one Audio Generation Speech Rate Card can be associated with one or more objects within an app. The types of objects vary across apps. For example, in an instant messaging app, the objects within the app might be different contacts. In a music app, the objects within the app might be different types of music, such as jazz, retro, rock, folk, rap, and pop. The same app can be associated with multiple different Audio Generation Speech Rate Cards.

[0251] In some embodiments, the object within the application may be a contact in an instant messaging application.

[0252] For example, an instant messaging application is installed on the electronic device 100. The electronic device 100 can receive the user's operation in the first application to obtain the audio content output by user A and send it to the contact user B. Before generating the audio file, the electronic device 100 generates a speech rate card based on the audio corresponding to the contact user B. The speech rate card corresponding to the audio generated by user B can limit the speech rate of the audio file to medium or low speed. The electronic device 100 can adjust the audio properties of the audio content output by user A based on the speech rate card corresponding to the audio generated by user B, for example, adjust the audio content output by user A to medium or low speed, obtain an audio file, and then send the audio file to the contact user B.

[0253] For example, an instant messaging application is installed on the electronic device 100. The electronic device 100 can receive the user's operation in the first application to obtain the audio content output by user A and send it to the contact user C. Before generating the audio file, the electronic device 100 generates a speech rate card based on the audio corresponding to the contact user C. The speech rate card corresponding to the audio generated by user C can limit the speech rate of the audio file to medium and high speed. The electronic device 100 can adjust the audio properties of the audio content output by user A based on the audio generated by user C. For example, adjust the audio content output by user A to medium and high speed, obtain an audio file, and then send the audio file to the contact user C.

[0254] Based on the above description, it can be known that the audio generation speech rate card can be generated in the system settings of the electronic device 100, and the audio generation speech rate card can also be generated in the first application on the electronic device 100.

[0255] First, it is introduced how the audio generation speech rate card is generated in the first application on the electronic device 100.

[0256] For example, the first application may be an instant messaging application. When collecting audio content output by the user, the electronic device 100 may prompt the user to create an audio generation speech rate card.

[0257] 4A-4R exemplarily illustrate a schematic diagram of an electronic device 100 creating an audio generation speech rate card within a first application.

[0258] Figure 4A shows a main interface 4100 of an instant messaging application. Main interface 4100 includes dialog boxes for multiple contacts, such as a dialog box for contact "Lisa," a dialog box for contact "Alan," a dialog box for contact "Henry," and a dialog box for contact "Lucy." Electronic device 100 can receive a user command to display a real-time chat interface for a particular contact.

[0259] For example, as shown in FIG4A , the electronic device 100 may receive a user input operation (e.g., a click) for a dialog box of the contact “Lisa” in the user interface 4100. In response to the user input operation, the electronic device 100 may display the user interface 4200 shown in FIG4B . The user interface 4200 is a real-time chat interface for the contact “Lisa”.

[0260] As shown in Figure 4B, user interface 4200 includes multiple chat records. User interface 4200 also includes a voice input option 4201, an emoticon input option 4202, a multi-function option 4203, and a keyboard switch option 4204. Among them, the user can use voice input option 4201 to record the user's input audio content and send the user's input audio content to the contact "Lisa". The user can use emoticon input option 4202 to select one or more emoticons and send them to the contact "Lisa". The user can use multi-function option 4203 to send pictures, location information, initiate voice / video calls, send files, etc. to the contact "Lisa". The user can use keyboard switch option 4204 to display the keyboard input box on user interface 4200.

[0261] For example, as shown in FIG4B , electronic device 100 may receive a user input operation (e.g., a long press) on voice input option 4201 in user interface 4200. In response to the user input operation, electronic device 100 may display options 4205, 4206, prompt 4207, and voice collection area 4208 shown in FIG4C . The user needs to long press voice collection area 4208 for electronic device 100 to collect voice. If the user does not long press voice collection area 4208, electronic device 100 stops collecting voice and sends the previously collected voice to electronic device 200. The user can move their finger toward option 4206 to cause electronic device 100 to convert the previously collected voice into text and send it to electronic device 200. The user can move their finger toward option 4205 to cause electronic device 100 to stop collecting and sending voice messages to electronic device 200, and display user interface 4200 shown in FIG4B . Prompt 4207 prompts the user to release their finger to send the voice message to electronic device 200.

[0262] After user A finishes outputting his voice, the user can stop pressing and holding the voice collection area 4208. After the electronic device 100 obtains the audio content output by user A and before the electronic device 100 sends the audio content output by user A to the electronic device 200, if it is detected that no audio generation speech rate card is saved, the electronic device 100 can prompt the user whether to create an audio generation speech rate card to change the audio attributes of the audio content output by user A.

[0263] Optionally, in other embodiments, when the electronic device 100 has already saved an audio generation speech rate card, the electronic device 100 may no longer prompt the user whether to create an audio generation speech rate card.

[0264] Exemplarily, as shown in FIG4D , before the electronic device 100 sends the audio content output by user A to the electronic device 200, the electronic device 100 may display a prompt bar 4209 shown in FIG4D . Prompt bar 4209 is used to prompt the user whether to create an audio generation speech speed card. Prompt bar 4209 includes a prompt message "You have not used speech speed cards yet, do you want to create an audio generation speech speed card?" Prompt bar 4209 also includes a yes option and a no option. The user can agree to create an audio generation speech speed card by selecting the yes option. The user can also choose not to create an audio generation speech speed card by selecting the no option.

[0265] For example, as shown in FIG4D , the electronic device 100 may receive a user input operation (e.g., a click) for an option in the prompt bar 4209. In response to the user's input operation, the electronic device 100 may display the prompt bar 4210 shown in FIG4E . The user may set the audio properties of the audio generation speech rate card in the prompt bar 4210.

[0266] For example, as shown in FIG4E , the prompt bar 4210 includes multiple audio property setting items, which may include but are not limited to: category options, scope options, speech speed options, volume options, and timbre options. Specifically, the user can set the audio type of the audio generation speech speed card through the category option, the user can set the audio generation speech speed card to be effective in one or more or all applications through the scope option, the user can set the speech speed of the audio defined by the audio generation speech speed card through the speech speed option, the user can set the volume of the audio defined by the audio generation speech speed card through the volume option, and the user can set the timbre of the audio defined by the audio generation speech speed card through the timbre option.

[0267] For example, as shown in FIG4E , the electronic device 100 may receive a user input operation (e.g., a single click) for a category option in the prompt bar 4210. In response to the user's input operation, the electronic device 100 may display the prompt bar 4211 shown in FIG4F . The prompt bar 4211 includes multiple audio category options, which may include, but are not limited to, voice chat options, music options, learning options, news options, and entertainment options. The prompt bar 4211 may also include other music category options, which are not limited in this application.

[0268] For example, as shown in Figures 4F and 4G, the electronic device 100 may receive a user input operation (e.g., a single click) for the voice chat option in prompt bar 4211. In response to the user's input operation, the electronic device 100 may select the voice chat option. Thereafter, the electronic device 100 may receive a user input operation (e.g., a single click) for the confirmed option in prompt bar 4211. In response to the user's input operation, the electronic device 100 may display the prompt bar 4212 shown in Figure 4H. The prompt bar 4212 shown in Figure 4H is similar to the prompt bar 4210 shown in Figure 4E, except that the audio type is shown as voice chat in the classification option in prompt bar 4212, indicating that the audio type applicable to the audio generation speech rate card is voice chat audio.

[0269] Following similar operations as shown in FIG4E-FIG4G, the user can sequentially set the applicable scope options, speech speed options, volume options, timbre options and other properties of the audio generation speech speed card.

[0270] For example, as shown in FIG4I , after the user sequentially sets the applicable scope, speech rate, volume, and timbre of the audio generation speech rate card, the electronic device 100 may display the prompt bar 4213 shown in FIG4I . Prompt bar 4213 includes multiple audio attributes of the audio generation speech rate card, such as the audio type applicable to the audio generation speech rate card is voice chat, the applicable scope of the audio generation speech rate card is limited to instant messaging applications, the audio speech rate limited to medium and low speed by the audio generation speech rate card, the audio volume limited to 50% of the maximum volume on the electronic device, and the audio timbre limited to the audio generation speech rate card as original sound. Subsequently, the electronic device 100 may receive an input operation (e.g., a single click) from the user for the save option in prompt bar 4213. In response to the user's input operation, the electronic device 100 may save the audio generation speech rate card shown in FIG4I .

[0271] In some embodiments, after the electronic device 100 receives a user input operation for an option in prompt bar 4209, the electronic device 100 can determine an audio generation speech rate card template based on the audio type of the collected audio content. Different audio types correspond to different audio generation speech rate card templates. The audio generation speech rate card template has preset audio attributes, and different audio generation speech rate card templates correspond to different preset audio attributes. For example, the preset audio attributes corresponding to the audio generation speech rate card template for voice chat audio can be the audio attributes described in Figure 4H. In this way, the electronic device 100 can directly obtain the audio generation speech rate card template based on audio type matching, eliminating the need for the user to set the audio attributes of the audio generation speech rate card according to the steps shown in Figures 4E-4H, thus saving user operation. The user can choose to use the preset audio attributes corresponding to the audio generation speech rate card template as the target audio attributes of the audio generation speech rate card set by the user. The user can also modify the preset audio attributes corresponding to the audio generation speech rate card template to obtain the target audio attributes of the audio generation speech rate card.

[0272] After the electronic device 100 saves the audio generation speech rate card shown in FIG4I , the electronic device 100 can adjust the audio attributes of the audio content collected by the electronic device 100 based on the audio attributes defined in the audio generation speech rate card. During the process of adjusting the audio attributes of the audio content collected by the electronic device 100, the electronic device 100 can display prompt information 4214 shown in FIG4J , which is used to prompt the user that the audio attributes of the audio content are being adjusted.

[0273] In some embodiments, after the electronic device 100 adjusts the audio attributes of the audio content collected by the electronic device 100, the electronic device 100 may display a prompt bar 4215 as shown in FIG4K , where the prompt bar 4215 is used to prompt the user whether to adopt the audio content with adjusted audio attributes.

[0274] As shown in FIG4K , prompt bar 4215 includes a play option 4216, a use voice option 4217, and a do not use voice option 4218. Among them, the user can play the audio content after the audio attribute adjustment through play option 4216, so that the user can confirm the effect of the audio content after the audio attribute adjustment. The user can use the voice option 4217 to generate an audio file based on the audio content after the audio attribute adjustment and send it to the electronic device 200. The user can also generate an audio file based on the audio content before the audio attribute adjustment and send it to the electronic device 200 by not using the voice option 4218.

[0275] For example, as shown in FIG4K , electronic device 100 may receive a user input operation (e.g., a single click) for using voice option 4217 in prompt bar 4215. In response to the user input operation, electronic device 100 may display user interface 4300 shown in FIG4L . User interface 4300 is similar to user interface 4200 shown in FIG4B , except that user interface 4300 includes a voice message identifier 4301, which is used to indicate a voice message that electronic device 100 has recently sent to electronic device 200. The duration of the voice message is 4 seconds.

[0276] For example, as shown in FIG4M , electronic device 100 may receive a user input operation (e.g., a single click) for not using the voice option 4218 in prompt bar 4215. In response to the user input operation, electronic device 100 may display user interface 4400 shown in FIG4N . User interface 4400 is similar to user interface 4200 shown in FIG4B , except that user interface 4400 includes a voice message identifier 4401, which is used to indicate a voice message that electronic device 100 has recently sent to electronic device 200. The duration of the voice message is 2 seconds.

[0277] Because the voice message sent by electronic device 100 to electronic device 200 in FIG4L is a voice message with a slowed speech rate, the voice message sent by electronic device 100 to electronic device 200 in FIG4N is a voice message with an unadjusted speech rate. After the speech rate is slowed down, the electronic device takes longer to play the audio message. Therefore, the duration of the voice message shown in FIG4L is longer than that shown in FIG4N.

[0278] Optionally, after the electronic device 100 generates and saves the audio generation speech rate card, when the user sends a voice message to the contact "Lisa" later, the electronic device 100 can directly adjust the attributes of the audio content collected by the electronic device 100 according to the audio generation speech rate card and send it out without displaying the information described in Figures 4D-4N.

[0279] Alternatively, if the electronic device 100 has already generated and saved an audio generation speech rate card, when the electronic device 100 generates an audio file, the electronic device 100 may not need to prompt the user whether to create an audio generation speech rate card. The electronic device 100 may directly generate an audio file based on the acquired audio content, based on the audio attributes such as speech rate, volume, and timbre specified in the audio generation speech rate card.

[0280] In some embodiments, after the electronic device 100 receives the user's input operation for the save option in the prompt bar 4213 shown in FIG. 4I , the electronic device 100 may save the audio generation speech rate card shown in FIG. 4I .

[0281] Optionally, the electronic device 100 may display the audio generation speech rate card shown in FIG. 4I in the instant messaging application, and the user may view and modify the audio generation speech rate card in the instant messaging application.

[0282] For example, as shown in FIG4O , electronic device 100 may receive a user input operation (e.g., a single click) for the “My” option in user interface 4100. In response to the user input operation, electronic device 100 may display user interface 4500 shown in FIG4P . User interface 4500 may include multiple setting items, such as a service setting item, a favorite setting item, an emoticon setting item, a speech rate card setting item, and an application setting item. The user may view the created audio generation speech rate card and / or audio playback speech rate card through the speech rate card setting item.

[0283] As shown in FIG4P , electronic device 100 receives a user input operation (e.g., a single click) for a speech rate card setting item in user interface 4500. In response to the user input operation, electronic device 100 may display user interface 4600 shown in FIG4Q . User interface 4600 includes an audio generation speech rate card 4601. Audio generation speech rate card 4601 limits the audio type for which the audio properties can be adjusted using this card to chat voice audio, limits the card's ability to adjust the speech rate of the audio content to medium or low speed, limits the card's ability to adjust the volume of the audio content to 40% of the electronic device's maximum volume, and limits the card's ability to set the timbre of the audio content to original sound, i.e., does not adjust the timbre of the audio content. Audio generation speech rate card 4601 is created within an instant messaging application and can be used only for chat voice audio within the instant messaging application.

[0284] The audio generation speech rate card 4601 defines the audio type applicable in the instant messaging application.

[0285] In other embodiments, the audio generation speech rate card can also be limited to applicable contact objects within the instant messaging application. As shown in Figure 4P, the electronic device 100 receives a user input operation (e.g., a single click) for the speech rate card setting item in the user interface 4500. In response to the user input operation, the electronic device 100 can display the user interface 4700 shown in Figure 4R. The user interface 4700 includes an audio generation speech rate card 4701. As shown in Figure 4R, the audio generation speech rate card 4701 limits the audio type that can use the card to adjust the audio properties to chat voice audio. The audio generation speech rate card 4701 limits the audio properties of the audio content collected by the electronic device 100 to be adjusted only when sending a voice message to the contact "Lisa" in the instant messaging application. Audio Generation Speech Rate card 4701 allows you to adjust the speech rate of the audio content to medium or low speed, adjust the volume of the audio content to 40% of the maximum volume of the electronic device, and set the timbre of the audio content to original, meaning that the timbre of the audio content is not adjusted. Audio Generation Speech Rate card 4701 can only be used on electronic device 100 when sending chat audio to contact "Lisa" within the instant messaging application.

[0286] It should be noted that Figures 4Q to 4R only exemplify the display styles of two audio generation speech rate cards. The audio generation speech rate cards can also have other display styles, which is not limited in this application.

[0287] In some embodiments, the application-level audio generation speech rate card created in the manner of Figures 4A-4I may also be a system-level audio generation speech rate card. This application does not limit the specific implementation of how the electronic device 100 creates the system-level audio generation speech rate card.

[0288] Optionally, after the electronic device 100 receives the user operation to create and save the system-level audio generation speech rate card, the electronic device 100 can display the system-level audio generation speech rate card on the desktop, for example, on the negative one screen.

[0289] As shown in Figure 4S, the electronic device 100 displays the main desktop of the electronic device 100. The main desktop of the electronic device 100 includes icons for multiple applications, such as icons for a clock application, a calendar application, a smart life application, a memo application, a game application, a recipe application, a recorder application, a calculator application, a video application, a weather application, a browser application, a map application, a music application, and a sports and health application. A page indicator is also displayed below the icons of the multiple applications to indicate the total number of desktops, the position of the negative one screen, the position of the currently displayed desktop, and the positional relationship between the currently displayed desktop and other desktops. A tray area or dock bar (Dock bar) is displayed below the page indicator. The tray area includes multiple tray icons, such as an icon for the camera application to access the Internet, an icon for the contacts application to access the Internet, an icon for the phone application, and an icon for the messaging application. The tray area remains displayed when switching pages. In some embodiments, the above-mentioned page indicator and the above-mentioned tray icon are also optional, and the embodiments of the present application are not limited to this.

[0290] As shown in Figure 4S, the electronic device 100 can receive a sliding operation performed by the user on the main desktop (for example, a sliding operation to the right). In response to the user's sliding operation, the electronic device 100 can display the user interface 4800 shown in Figure 4T. The user interface 4800 is the negative one screen of the electronic device 100.

[0291] As shown in Figure 4T, the negative first screen of the electronic device 100 includes an audio generation speech rate card 4801 and other situational smart cards. The audio generation speech rate card 4801 limits the audio type that can use this card to adjust the audio properties to chat voice audio, the audio generation speech rate card 4801 limits the card to adjusting the speech rate of the audio content to medium or low speed, the audio generation speech rate card 4801 limits the card to adjusting the volume of the audio content to 40% of the maximum volume of the electronic device, and the audio generation speech rate card 4801 limits the card to setting the timbre of the audio content to the original sound, that is, not adjusting the timbre of the audio content. The audio generation speech rate card 4801 is created in the system settings of the electronic device 100, and the audio generation speech rate card 4801 can be used for chat voice audio in multiple applications on the electronic device 100.

[0292] In other embodiments, the audio generation speech rate card may also limit applicable applications. The audio generation speech rate card may be applicable to one application, multiple applications, or all applications on the electronic device 100.

[0293] As shown in FIG4U , the negative first screen of the electronic device 100 includes an audio generation speech rate card 4802 and other situational smart cards. The audio generation speech rate card 4802 limits the applications that can use this card to adjust audio properties to instant messaging applications, the audio generation speech rate card 4802 limits the card to adjusting the speech rate of the audio content to medium or low speed, the audio generation speech rate card 4802 limits the card to adjusting the volume of the audio content to 40% of the maximum volume of the electronic device, and the audio generation speech rate card 4802 limits the card to setting the timbre of the audio content to the original sound, that is, not adjusting the timbre of the audio content. The audio generation speech rate card 4802 can be used for all types of audio within the instant messaging application on the electronic device 100.

[0294] In other embodiments, the audio generation speech rate card may also limit applicable applications and audio types within the application.

[0295] As shown in FIG4V , the negative first screen of electronic device 100 includes an audio generation speech rate card 4803 and other contextual smart cards. Audio generation speech rate card 4803 limits the applications for which audio properties can be adjusted using this card to instant messaging applications. It limits the audio types for which this card can be used to adjust audio properties to chat voice audio. It limits the ability to adjust the speech rate of audio content to medium or low speeds. It limits the ability to adjust the volume of audio content to 40% of the maximum volume of the electronic device. It limits the ability to set the timbre of audio content to original sound, meaning that the timbre of the audio content is not adjusted. Audio generation speech rate card 4803 can be used for chat voice audio within instant messaging applications on electronic device 100.

[0296] It is not limited to sliding to the right to make the electronic device 100 display the negative one screen, and other operations can also make the electronic device 100 display the negative one screen. This application does not limit this.

[0297] The electronic device 100 is not limited to displaying the speech rate card in the negative one screen. The speech rate card can also be displayed in other areas, such as the pull-down notification bar, etc., and this application does not limit this.

[0298] It should be noted that Figures 4A to 4V only exemplify the display styles of several audio generation speech rate cards. The audio generation speech rate cards can also have other display styles, which is not limited in this application.

[0299] FIG5 is a flowchart of a method for an electronic device 100 to generate and use audio to generate speech rate cards provided in the present application.

[0300] S501: The electronic device 100 and the electronic device 200 establish a communication connection.

[0301] S502: The electronic device 100 receives and responds to a user operation and collects audio content.

[0302] The audio content can be the voice output by the user, or the audio output by an external device obtained by recording or shooting a video.

[0303] S503: The electronic device 100 needs to determine whether an audio generation speech rate card is stored on the electronic device 100.

[0304] After the electronic device 100 receives the user's operation to collect audio content, before generating an audio file, the electronic device 100 needs to determine whether an audio generation speech rate card is saved.

[0305] If it is determined that an audio generation speech rate card is stored, the electronic device 100 can adjust the audio attributes of the audio content collected by the electronic device 100 based on the audio generation speech rate card, so that the target audio attributes of the audio file generated by the electronic device 100 are obtained based on the audio attributes set by the user. That is, S504 is executed.

[0306] If it is determined that no audio generation speech rate card is saved, the electronic device 100 may prompt the user to create an audio generation speech rate card and receive a user operation to create and save the audio generation speech rate card. The electronic device 100 may then adjust the audio attributes of the audio content collected by the electronic device 100 based on the audio generation speech rate card, so that the target audio attributes of the audio file generated by the electronic device 100 are based on the audio attributes set by the user. This is done by executing S505.

[0307] The electronic device 100 may determine whether an audio generation speech rate card is stored on the electronic device 100 based on, but not limited to, any of the following methods.

[0308] Method 1: The electronic device 100 can determine the audio type of the audio content collected by the electronic device 100 and determine whether an audio generation speed card is stored on the electronic device 100 based on the audio type.

[0309] Based on the above description, the audio generation speech rate card can be associated with the audio type. The electronic device 100 can determine whether there is an audio generation speech rate card belonging to the audio type based on the audio type of the audio content collected by the electronic device 100.

[0310] Method 2: The electronic device 100 may determine the application to which the audio content collected by the electronic device 100 belongs, and determine based on the identification of the application whether an audio generation speech rate card is saved on the electronic device 100.

[0311] Based on the above description, the audio generation speech rate card can be associated with an application. The electronic device 100 can determine whether there is an audio generation speech rate card belonging to the application based on the application identifier of the application to which the audio content collected by the electronic device 100 belongs.

[0312] Method three: the electronic device 100 can determine the application to which the audio content collected by the electronic device 100 belongs and the object within the application, and determine whether an audio generation speech rate card is saved on the electronic device 100 based on the application identifier and the object identifier within the application.

[0313] Based on the above description, the audio generation speech rate card can be associated with an object in the application. The electronic device 100 can determine whether there is an audio generation speech rate card belonging to the object based on the application identifier of the application to which the audio content collected by the electronic device 100 belongs and the object identifier in the application.

[0314] S504: The electronic device 100 obtains an audio generation speed card.

[0315] Optionally, the audio generation speech rate card may be an application-level audio generation speech rate card or a system-level audio generation speech rate card.

[0316] When it is determined that the electronic device 100 stores the audio generation speech rate card, the electronic device 100 may obtain the audio generation speech rate card.

[0317] S505: The electronic device 100 prompts the user to create an audio generation speech rate card.

[0318] When it is determined that no audio generation speech rate card is saved on the electronic device 100 , the electronic device 100 may prompt the user whether to create an audio generation speech rate card.

[0319] Exemplarily, the electronic device 100 may display the prompt bar 4209 shown in FIG4D to prompt the user whether to create an audio generation speech rate card.

[0320] S506: The electronic device 100 needs to confirm whether an audio generation speech rate card has been created.

[0321] After the electronic device 100 prompts the user to create an audio generation speech rate card, the electronic device 100 needs to further confirm whether the audio generation speech rate card has been created and saved.

[0322] When it is confirmed that the audio generation speech rate card is stored in the electronic device 100 , that is, the user has created the audio generation speech rate card, S508 is executed.

[0323] When it is confirmed that no audio generation speech rate card is saved in the electronic device 100 , that is, the user has not created an audio generation speech rate card, S507 is executed.

[0324] In some embodiments, the electronic device 100 may not execute S505 and S506. If it is determined in S503 that no audio generation speech rate card is saved on the electronic device 100, the electronic device 100 may directly execute S507.

[0325] In some embodiments, when the electronic device 100 receives a user operation to create an audio generation speech rate card, the electronic device 100 can determine an audio generation speech rate card template based on the audio type of the collected audio content. Different audio types correspond to different audio generation speech rate card templates. The audio generation speech rate card template has preset audio attributes, and the preset audio attributes corresponding to different audio generation speech rate card templates are different. In this way, the electronic device 100 can directly obtain the audio generation speech rate card template based on the audio type matching, without the user having to set the audio attributes of the audio generation speech rate card according to the steps shown in Figures 4E-4H, which can save user operations. The user can choose to use the preset audio attributes corresponding to the audio generation speech rate card template as the target audio attributes of the audio generation speech rate card set by the user. The user can also modify the preset audio attributes corresponding to the audio generation speech rate card template and then obtain the target audio attributes of the audio generation speech rate card.

[0326] S507: The electronic device 100 generates an audio file based on the default audio attributes of the audio content.

[0327] When it is confirmed that the electronic device 100 has not saved and created an audio playback speech rate card, the electronic device 100 may not modify the audio properties of the collected audio content, and the electronic device 100 may directly generate an audio file based on the default audio properties of the audio content. The default audio properties of the audio content include but are not limited to one or more of the following: default speech rate, default volume, default timbre, etc. Among them, the default speech rate can be the speech rate output by the user, or the speech rate of the audio played by other electronic devices. The default volume can be the volume output by the user, or the volume of the audio played by other electronic devices. The default timbre can be the timbre output by the user, or the timbre of the audio played by other electronic devices.

[0328] S508: The electronic device 100 adjusts the audio attributes of the audio content based on the first target audio attributes defined by the audio generation speech rate card, and generates an audio file based on the audio content after the first target audio attributes are adjusted.

[0329] After the electronic device 100 obtains the audio generation speech rate card, the electronic device 100 can obtain the first target audio attribute defined in the audio generation speech rate card, adjust the audio attribute of the audio content, and generate an audio file based on the audio content after the first target audio attribute is adjusted.

[0330] The first target audio attribute may include one or more of the following: a first target speaking speed, a first target volume, a first target timbre, etc.

[0331] The audio file may include audio content adjusted according to the first target audio attribute, the first target audio attribute, an audio attribute adjustment identifier, etc.

[0332] For example, the first target speech rate may be the medium to low speed shown in FIG4Q , the first target volume may be 40% of the maximum volume of the electronic device shown in FIG4Q , and the first target timbre may be the original sound shown in FIG4Q .

[0333] S509 : The electronic device 100 sends the audio file to the electronic device 200 via the communication connection.

[0334] After the electronic device 100 generates an audio file based on the audio content adjusted by the first target audio attribute, the electronic device 100 may send the audio file to the electronic device 200 through a communication connection.

[0335] For example, the audio file may be the voice message corresponding to the voice message identifier 4301 sent to the contact “Lisa” shown in FIG4K .

[0336] S510: The electronic device 200 plays the audio content in the audio file.

[0337] After the electronic device 200 obtains the audio file through the communication connection, the electronic device 100 can play the audio content in the audio file.

[0338] In some embodiments, steps S509 - S510 may not be executed, and the electronic device 100 may simply save the generated audio file locally on the electronic device 100 .

[0339] In one possible implementation, the audio file may include an audio attribute adjustment identifier when the electronic device 100 sends the audio file to the electronic device 200. When the electronic device 200 receives the audio file sent by the electronic device 100, it may obtain the audio attribute adjustment identifier carried in the audio file. The electronic device 200 may directly play the audio content in the audio file based on the audio attribute adjustment identifier. The audio content in the audio file is the audio content that has been adjusted based on the first target audio attribute.

[0340] In other possible implementations, when the electronic device 100 sends an audio file to the electronic device 200, it may not carry an audio attribute adjustment identifier or may carry an audio attribute adjustment identifier. When the electronic device 200 receives the audio file sent by the electronic device 100, it can obtain locally whether there is an audio playback speed card. In the case where the electronic device 200 locally stores an audio playback speed card, the electronic device 200 can adjust the audio attributes of the audio content in the audio file based on the second target audio attributes defined by the audio playback speed card, and play the audio content adjusted based on the second target audio attributes. In the case where the electronic device 200 locally does not store an audio playback speed card, the electronic device 200 can play the audio content in the audio file, and the audio content in the audio file is the audio content that has been adjusted based on the first target audio attributes. For how the electronic device 200 plays audio content, reference can be made to the description in the embodiments of Figures 7A-7B and Figure 8.

[0341] In some embodiments, the electronic device 100 may also receive user operations to modify the first target audio attribute defined by the audio generation speech rate card. For details, please refer to the description of modifying the second target audio attribute defined by the audio playback speech rate card introduced in the embodiments of Figures 9A-9E. This application will not go into details here.

[0342] In some embodiments, audio generation speech rate cards also support sharing between devices. For details, please refer to the description of how audio playback speech rate cards are shared between devices introduced in the embodiments of Figures 11A-11D and Figure 12. This application will not repeat them here.

[0343] Next, it will be described how the electronic device 100 creates and uses audio playback speed cards.

[0344] 2. The electronic device 100 creates an audio playback speed card.

[0345] The audio playback speech rate card can be used to determine the second target audio attribute defined by the audio playback speech rate card before the electronic device 100 plays the audio content in the audio file, and play the audio content based on the second target audio attribute.

[0346] The second target audio attribute may include but is not limited to one or more of the following: a second target speaking speed, a second target volume, a second target timbre, etc.

[0347] In some embodiments, the electronic device 100 can change the speech speed of the audio content in the audio file to be played based on the second target speech speed defined in the audio playback speech speed card, for example, increasing the speech speed of the audio content in the audio file to be played or slowing down the speech speed of the audio content in the audio file to be played.

[0348] In some embodiments, the electronic device 100 may also change the volume of the audio content in the audio file to be played based on the second target volume defined in the audio playback speech rate card, such as increasing the volume of the audio content in the audio file to be played or slowing down the volume of the audio content in the audio file to be played.

[0349] In some embodiments, the electronic device 100 may also change the timbre of the audio content in the audio file to be played based on the second target timbre defined in the audio playback speech speed card. The timbre may include but is not limited to; original voice, uncle, girl, shota, mature woman, loli, magnetic, sweet, children's voice, elderly female voice, elderly male voice, etc.

[0350] Optionally, the audio playback speech speed card can also simultaneously change any two or more of the speech speed, volume, and timbre of the audio content in the audio file to be played.

[0351] 1. The electronic device 100 creates a triggering timing for an audio playback speech rate card.

[0352] Triggering timing 1: Before receiving a user operation to play audio content, the electronic device 100 may prompt the user whether to create an audio playback speech speed card.

[0353] Before receiving a user operation to play audio content, if the electronic device 100 detects that the electronic device 100 has not saved an audio playback speech rate card, the electronic device 100 may prompt the user whether to create and use an audio playback speech rate card.

[0354] When playing a contact's voice message, a recording file, or a video, the electronic device 100 may prompt the user whether to create an audio playback speed card.

[0355] For example, in an instant messaging application, contacts can send voice messages to each other to communicate. Some users speak slowly. Before playing an audio file based on the audio content input by user A, user A can choose to speed up the audio content input by the user. Some users speak quickly. Before playing an audio file based on the audio content input by user A, user A can choose to slow down the audio content input by the user. The audio file is then played based on the audio content with the adjusted speech speed and sent to electronic device 200. User B can play the audio content with the adjusted speech speed by user A on electronic device 200.

[0356] For another example, in the audio recorder application, the user can choose to record audio. For example, the user can record audio content such as a teacher's lecture. To ensure that the user can hear the audio content clearly, when recording the audio, the electronic device 100 can prompt the user whether to create an audio playback speed card. The user can choose to slow down the speed of the audio content output by the user. The audio file is then played based on the slowed-down audio content.

[0357] For another example, in the camera app, users can choose to record a video, which can include audio content and image data. For another example, users can watch a video of a teacher giving a lecture or other learning-related content. To ensure that users can clearly hear the audio content in the video, users can choose to slow down the speed of the audio content they input during the recording. The audio file can then be played based on the slowed-down audio content.

[0358] It is not limited to scenarios where audio content is collected, such as when collecting the user's voice messages, recording audio, or recording videos. The electronic device 100 can also prompt the user whether to create an audio playback speed card in other scenarios where audio content is collected. This application does not limit this.

[0359] Triggering opportunity two: the electronic device 100 receives a user operation and actively creates an audio playback speed card.

[0360] The electronic device 100 can receive a user operation and actively trigger the creation of an audio playback speed card. For example, the user can find the playback options of the audio playback speed card through the audio playback speed card entrance, set the audio properties of the audio playback speed card based on the playback options of the audio playback speed card, and save the audio playback speed card.

[0361] For example, the electronic device 100 may create a system-level audio playback speed card upon receiving a user operation in a system setting application.

[0362] Exemplarily, the electronic device 100 may create an application-level audio playback speed card upon receiving a user operation within the first application.

[0363] Trigger timing three: the electronic device 100 can automatically create an audio playback speed card.

[0364] The electronic device 100 can monitor the user's behavioral habits, create a user profile based on the audio content played by the electronic device 100 within a certain period of time, and automatically create and recommend audio playback speed cards to the user based on the user profile. The audio playback speed card includes audio attributes obtained based on the user profile.

[0365] For example, electronic device 100 may monitor the audio attributes of voice messages sent by one or more other users in the instant messaging application of electronic device 100 over a certain period of time to obtain a user profile. The user profile may include information such as the speaking speed, volume, and timbre of the voice messages sent by one or more other users in the instant messaging application. Based on the user profile, electronic device 100 may automatically create audio playback speed cards for chat voice and recommend such audio playback speed cards to the user.

[0366] Not limited to the above triggering moments, the electronic device 100 can also prompt the user to create an audio playback speed card in other scenarios, and this application does not limit this.

[0367] 2. Scope of application of audio playback speed cards.

[0368] (1) Audio playback speed cards can be related to the audio type.

[0369] The audio playback speech rate card is related to the audio type, that is, one audio playback speech rate card is associated with one audio type.

[0370] Audio types include but are not limited to one or more of the following: chat voice, music, news, learning, entertainment, etc.

[0371] If different applications on the electronic device 100 have the same type of audio, different applications can use the same audio type to play speech speed cards. Alternatively, the first application on the electronic device 100 can use the same audio type to generate speech speed cards.

[0372] For example, the electronic device 100 stores a chat voice audio playback speed card, and the attributes of the audio file defined by the chat voice audio playback speed card include but are not limited to: playing the chat voice audio file at medium or low speed.

[0373] Exemplarily, a first application is installed on the electronic device 100. The electronic device 100 can obtain an audio file in the first application and play the audio content in the audio file. Before playing the audio content, the electronic device 100 can adjust the audio properties of the audio content output by the user based on the audio playback speed card of the chat voice type, for example, adjusting the audio content in the audio file to medium or low speed, and playing the audio content in the audio file at medium or low speed.

[0374] For example, a second application is installed on the electronic device 100, and the second application is different from the first application. The electronic device 100 can obtain an audio file in the second application and play the audio content in the audio file. Before playing the audio content, the electronic device 100 can adjust the audio properties of the audio content output by the user based on the audio playback speed card of the chat voice type, for example, adjusting the audio content in the audio file to a medium-low speed and playing the audio content in the audio file at the medium-low speed.

[0375] (2) Audio playback speed cards can be related to the application.

[0376] Audio playback speed cards are application-related, meaning one audio playback speed card is associated with one application. Multiple different applications are installed on the electronic device 100, and each application corresponds to an audio playback speed card. The same application can include multiple types of audio, and multiple types of audio within the same application can share the same audio playback speed card. Different applications have different audio playback speed cards.

[0377] For example, a first application is installed on the electronic device 100. The electronic device 100 may receive a user operation to create an audio playback speech rate card for the first application. The electronic device 100 may obtain an audio file through the first application. Before playing the audio content in the audio file, the electronic device 100 may adjust the audio properties of the audio content obtained by the first application based on the audio playback speech rate card of the first application, and then play the audio content with the adjusted audio properties.

[0378] For example, a second application is installed on the electronic device 100. The electronic device 100 can receive a user operation to create an audio playback speed card for the second application. The electronic device 100 can obtain an audio file through the second application. Before playing the audio content in the audio file, the electronic device 100 can adjust the audio properties of the audio content obtained by the second application based on the audio playback speed card of the second application, and then play the audio content with the adjusted audio properties.

[0379] (3) Audio playback speed cards can be related to objects within the application.

[0380] In some embodiments, the object within the application may be a contact in an instant messaging application.

[0381] Exemplarily, an instant messaging application is installed on the electronic device 100, and the electronic device 100 can receive the user's operation in the first application to play the audio file sent by the contact user B. Before playing the audio content in the audio file, the electronic device 100 obtains the audio playback speed card corresponding to the contact user B. The audio playback speed card corresponding to user B can limit the speed of the audio file to medium or low speed. The electronic device 100 can adjust the audio properties of the audio content in the audio file sent by the contact user B based on the audio playback speed card corresponding to user B, for example, adjust the speed of the audio content sent by user B to medium or low speed, and then play the audio content in the audio file sent by contact user B at medium or low speed.

[0382] Exemplarily, an instant messaging application is installed on the electronic device 100, and the electronic device 100 can receive the user's operation in the first application to play the audio file sent by the contact user C. Before playing the audio content in the audio file, the electronic device 100 obtains the audio playback speed card corresponding to the contact user C. The audio playback speed card corresponding to user C can limit the speed of the audio file to medium and high speed. The electronic device 100 can adjust the audio properties of the audio content in the audio file sent by the contact user C based on the audio playback speed card corresponding to user C, for example, adjust the speed of the audio content sent by user C to medium and high speed, and then play the audio content in the audio file sent by contact user C at medium and high speed.

[0383] 3. The electronic device 100 creates and saves the audio playback speed card.

[0384] Based on the above description, it can be known that the audio playback speech rate card can be generated in the system settings of the electronic device 100. When the audio playback speech rate card is a system-level audio playback speech rate card, one application, multiple applications, or all applications on the electronic device 100 can use the audio playback speech rate card.

[0385] The audio playback speech rate card may also be generated in the first application on the electronic device 100. When the audio playback speech rate card is an application-level audio playback speech rate card, only the first application on the electronic device 100 can use the audio playback speech rate card.

[0386] How the electronic device 100 receives user operations to create audio playback speed cards is similar to the operation of the electronic device 100 receiving user operations to create audio generation speed cards. Please refer to the description in the embodiments of Figures 4A-4R, and this application will not go into details here.

[0387] FIG6A and FIG6B are schematic diagrams showing an application-level audio playback speech rate card.

[0388] 4O-4P , the electronic device 100 may receive a user operation to view an audio playback speed card at the application level.

[0389] Figure 6A shows an audio playback speed card 6001. The audio playback speed card 6001 limits the audio type whose audio properties can be adjusted using this card to chat voice audio, limits the speed of the audio content to medium or low speed, limits the volume of the audio content to 40% of the maximum volume of the electronic device, and limits the timbre of the audio content to the original sound, that is, does not adjust the timbre of the audio content. The electronic device 100 can use the audio playback speed card 6001 only when playing chat voice audio within an instant messaging application.

[0390] Figure 6B shows an audio playback speed card 6002. The audio playback speed card 6002 limits the audio types that can be adjusted using this card to chat voice audio, limits the applications that can use this card to instant messaging applications, and limits the audio properties of the audio content to be adjusted only when playing a voice message sent by the contact "Lisa" within the instant messaging application. The audio playback speed card 6002 limits the speed of the audio content to medium or low speed, limits the volume of the audio content to 40% of the maximum volume of the electronic device, and limits the timbre of the audio content to original sound, meaning that the timbre of the audio content is not adjusted. The electronic device 100 can use the audio playback speed card 6002 only when playing chat voice audio sent by the contact "Lisa" within the instant messaging application.

[0391] 6C-6E are schematic diagrams showing several system-level audio playback speech rate cards.

[0392] Figure 6C shows an audio playback speed card 6003. The audio playback speed card 6003 defines the audio type that can use this card to adjust the audio properties as music, the audio playback speed card 6003 defines that this card can adjust the speed of the audio content to medium-high speed, the audio playback speed card 6003 defines that this card can adjust the volume of the audio content to 50% of the maximum volume of the electronic device, and the audio playback speed card 6003 defines that this card can set the timbre of the audio content to the original sound, that is, the timbre of the audio content is not adjusted. The electronic device 100 can use the audio playback speed card 6001 when playing audio content of the audio category in all applications on the electronic device 100.

[0393] Figure 6D shows an audio playback speed card 6004. The audio playback speed card 6004 specifies that the application that can use this card to adjust audio properties is the Huawei Video application. The audio playback speed card 6004 specifies that this card can adjust the speed of the audio content to medium-high speed. The audio playback speed card 6004 specifies that this card can adjust the volume of the audio content to 50% of the maximum volume of the electronic device. The audio playback speed card 6004 specifies that this card can set the timbre of the audio content to the original sound, that is, the timbre of the audio content is not adjusted. The electronic device 100 can use the audio playback speed card 6004 when playing audio content of the audio category in the Huawei Video application on the electronic device 100.

[0394] Figure 6E shows an audio playback speed card 6005. The audio playback speed card 6005 limits the application that can use this card to adjust audio properties to the Huawei Video application, and is only used for learning-related audio within the Huawei Video application. The audio playback speed card 6005 limits the card to adjusting the speed of the audio content to medium-high speed. The audio playback speed card 6005 limits the card to adjusting the volume of the audio content to 50% of the maximum volume of the electronic device. The audio playback speed card 6005 limits the card to setting the timbre of the audio content to the original sound, that is, not adjusting the timbre of the audio content. The electronic device 100 can use the audio playback speed card 6004 when playing learning-related audio within the Huawei Video application on the electronic device 100.

[0395] It should be noted that Figures 6A to 6E only exemplify the display styles of several audio playback speech speed cards. The audio playback speech speed cards can also have other display styles, which is not limited in this application.

[0396] 4. The electronic device 100 uses audio to play the speech speed card.

[0397] After the electronic device 100 saves the audio playback speech rate card, when the electronic device 100 plays the audio content in the audio file, the electronic device 100 can modify the audio attributes of the audio content based on the second target audio attributes defined in the audio playback speech rate card, and play the audio content with modified audio attributes.

[0398] 7A-7G are schematic diagrams showing the electronic device 100 playing an audio file based on an application-level audio playback speech rate card.

[0399] 7A-7C are schematic diagrams showing the electronic device 100 playing an audio file based on an application-level audio playback speech rate card.

[0400] For example, as shown in FIG7A , user interface 7100 is a real-time chat interface for contact "Lisa." User interface 7100 includes multiple chat logs. Among the multiple chat logs is a voice message identifier 7101, which indicates the most recent voice message sent by contact "Lisa." A user can click voice message identifier 7101 to play the voice message.

[0401] As shown in FIG. 7A , the electronic device 100 may receive a user input operation (eg, a single click) on the voice message identifier 7101 , and in response to the user input operation, the electronic device 100 may play the voice message.

[0402] In some embodiments, before the electronic device 100 plays the voice message, the electronic device 100 may determine whether an audio playback speech rate card is saved on the electronic device 100. If it is determined that an audio playback speech rate card is saved, the electronic device 100 may display a prompt message 7102 shown in FIG7B , wherein the prompt message 7102 includes the message “An audio playback speech rate card has been matched. Do you want to use it?” The prompt message 7102 also includes a yes option and a no option. The user can confirm the use of the audio playback speech rate card by selecting the yes option, and the user can refuse to use the audio playback speech rate card by selecting the no option.

[0403] For example, as shown in Figure 7B, the electronic device 100 can receive a user input operation (such as a single click) for an option in the prompt information 7102. In response to the user's input operation, the electronic device 100 can obtain the audio attributes specified by the audio playback speed card, and modify the audio attributes of the voice message based on the audio attributes specified by the audio playback speed card to obtain a voice message with modified audio attributes. The electronic device 100 then plays the voice message with modified audio attributes.

[0404] For example, to indicate that the voice message being played by the electronic device 100 has had its audio attributes modified based on the audio playback speech rate card, the electronic device 100 may display prompt information 7103 shown in FIG7C . Prompt information 7103 is used to notify the user that the audio playback speech rate card is currently being used. The user may also stop displaying prompt information 7103 by selecting the "No More Prompt" option in prompt information 7103.

[0405] In some embodiments, the electronic device 100 may receive a user input operation (e.g., a single click) for the no option in the prompt information 7102. In response to the user's input operation, the electronic device 100 may not use the audio playback speech rate card and play the voice message based on the default audio properties of the audio message.

[0406] In some embodiments, before the electronic device 100 plays the voice message, if it is determined that no audio playback speech rate card is saved, the electronic device 100 can play the voice message based on the default audio attributes of the audio message.

[0407] In some embodiments, before playing the voice message, the electronic device 100 may also receive a user operation to select an audio playback speed card, so that the electronic device 100 can play the voice message based on the audio attributes defined by the audio playback speed card.

[0408] For example, as shown in FIG7D , the electronic device 100 may receive a user input operation (e.g., a long press operation) on the voice message identifier 7101. In response to the user's input operation, the electronic device 100 may display a selection bar 7110 shown in FIG7E . The selection bar 7110 displays multiple voice playback options, such as an earpiece playback hang-up, a favorite option, a text-to-text option, a delete option, a reminder option, a speech rate card option, etc. In some embodiments, if the instant messaging application does not set an audio playback speech rate card, the speech rate card option may not be displayed in the selection bar 7110.

[0409] As shown in FIG7E , the electronic device 100 can receive a user input operation (e.g., a single click operation) for the speech rate card option in the selection bar 7110. In response to the user's input operation, the electronic device 100 can modify the audio attributes of the voice message based on the audio attributes defined by the audio playback speech rate card, thereby obtaining a voice message with modified audio attributes. The electronic device 100 then plays the voice message with modified audio attributes. Optionally, the user can view the target audio attributes of the speech rate card or modify the target audio attributes of the speech rate card by selecting the speech rate card option in the selection bar 7110. This application will not go into details here.

[0410] In some embodiments, in response to playing a voice message based on the audio attributes defined by the audio playback speech rate card, the electronic device 100 may display the prompt information 7103 shown in FIG. 7C , where the prompt information 7103 is used to prompt the user that the electronic device 100 is using the audio playback speech rate card.

[0411] In other embodiments, as shown in FIG7D , the electronic device 100 may receive a user input operation (e.g., a long press operation) on the voice message identifier 7101. In response to the user's input operation, the electronic device 100 may display a selection bar 7140 shown in FIG7F . The selection bar 7140 displays multiple voice playback options. For example, the multiple voice playback options may include an earpiece playback hang-up, a favorite option, a text-to-text option, a delete option, a reminder option, a speech speed adjustment option, a volume adjustment option, a timbre adjustment option, etc. In some embodiments, if the instant messaging application does not set an audio playback speech speed card, the speech speed adjustment option, the volume adjustment option, and the timbre adjustment option may not be displayed in the selection bar 7140.

[0412] As shown in FIG7F , the electronic device 100 can receive a user input operation (e.g., a single click operation) for the speech rate adjustment option in the selection bar 7140. In response to the user's input operation, the electronic device 100 can modify the audio properties of the voice message based on the speech rate specified by the audio playback speech rate card to obtain a speech message with the modified speech rate, and the electronic device 100 then plays the speech message with the modified speech rate. Optionally, the user can view the target audio properties of the speech rate card or modify the target audio properties of the speech rate card by selecting the speech rate adjustment option, volume adjustment option, or timbre adjustment option in the selection bar 7140. This application will not go into details here.

[0413] 7G-7L are schematic diagrams showing the electronic device 100 playing an audio file based on a system-level audio playback speech rate card.

[0414] 7G , the electronic device 100 may display a music playing interface 7200. The music playing interface 7200 includes a music title, a start music playing option, a switch to play the previous music option, a switch to play the next music option, a play progress bar, and the like.

[0415] As shown in FIG. 7G , the electronic device 100 may receive an input operation (eg, a single click) from the user for starting to play music, and in response to the input operation from the user, the electronic device 100 may play music.

[0416] In some embodiments, before the electronic device 100 plays music, the electronic device 100 may determine whether an audio playback speech speed card is saved on the electronic device 100. If it is determined that an audio playback speech speed card is saved, the electronic device 100 may display a prompt message 7102 shown in FIG7H , which includes the message "An audio playback speech speed card has been matched. Do you want to use it?" The prompt message 7102 also includes a yes option and a no option. The user can confirm the use of the audio playback speech speed card by selecting yes, or refuse to use the audio playback speech speed card by selecting no.

[0417] For example, as shown in Figure 7H, the electronic device 100 can receive a user input operation (such as a single click) for an option in the prompt information 7102. In response to the user's input operation, the electronic device 100 can obtain the audio attributes specified by the audio playback speed card, and modify the audio attributes of the music based on the audio attributes specified by the audio playback speed card to obtain the music with modified audio attributes. The electronic device 100 then plays the music with modified audio attributes.

[0418] In some embodiments, to indicate that the music played by the electronic device 100 has been modified based on the audio properties of the music using the audio playback speech rate card, the electronic device 100 may display a prompt message 7103 as shown in FIG7I . The prompt message 7103 is used to remind the user that the audio playback speech rate card is currently being used. The user may also stop the electronic device 100 from displaying the prompt message 7103 by selecting the "Don't remind me again" option in the prompt message 7103.

[0419] In some embodiments, the electronic device 100 may receive a user input operation (e.g., a single click) for the no option in the prompt information 7202. In response to the user's input operation, the electronic device 100 may not use the audio playback speech rate card and play the music based on the default audio properties of the music.

[0420] In some embodiments, in order to prompt that the music played by the electronic device 100 is based on the audio properties of the music modified by the audio playback speed card, the electronic device 100 can display the prompt information 7120 shown in Figure 7J, and the prompt information 7120 is used to prompt the user that the audio playback speed card is currently being used. Optionally, the electronic device 100 can also receive the user's input operation (such as single click) for the prompt information 7120. In response to the user's input operation, the electronic device 100 can display the details of the audio playback speed card, such as displaying the prompt bar 7121 shown in Figure 7K. The user can view the target audio properties of the audio playback speed card in the prompt bar 7121, or modify the target audio properties of the audio playback speed card, etc. This application will not go into details here. The prompt information 7120 is not limited to the representation in the figure, and can also be used to indicate that a certain audio playback card is currently being used through other graphics or controls.

[0421] In some embodiments, after the electronic device 100 runs the music application in the background, that is, after the electronic device 100 stops displaying the music playback interface 7200, the electronic device 100 can still continue to play the music in the music application. In response to the electronic device 100 continuing to play the music in the music application, the electronic device 100 can display the music card 7122 shown in Figure 7L, which shows the music name, playback progress bar, pause music option, switch to play the previous music option, switch to play the next music option, etc. Optionally, in order to prompt that the electronic device 100 is using the audio playback speed card to play music, the electronic device 100 can display a prompt message 7120 near the playback progress bar of the start music option, switch to play the previous music option, and switch to play the next music option. The prompt message 7120 is used to prompt the user that the electronic device 100 is using the audio playback speed card. Optionally, the electronic device 100 may also receive a user input operation (such as a single click) for the prompt information 7120. In response to the user's input operation, the electronic device 100 may display a prompt bar 7121 similar to that shown in Figure 7K. The user may view the target audio properties of the audio playback speech rate card in the prompt bar 7121, or modify the target audio properties of the audio playback speech rate card, etc. This application will not go into details here.

[0422] In some embodiments, before the electronic device 100 plays the music, if it is determined that no audio playback speech speed card is saved, the electronic device 100 can play the music based on the default audio attributes of the music.

[0423] FIG8 is a flow chart showing a method for the electronic device 100 to play audio based on audio playback speech speed cards.

[0424] S801. The electronic device 100 obtains an audio file and receives a user operation to play audio content in the audio file.

[0425] The audio file obtained by the electronic device 100 may be sent by the electronic device 200 with which the electronic device 100 has established a communication connection, or may be obtained from a server.

[0426] After the electronic device 100 obtains the audio file, the electronic device 100 may receive a user operation to play the audio content in the audio file.

[0427] Optionally, the audio file may be an audio file received by the electronic device 100 and sent by the electronic device 200. For example, the audio file may be music, a voice message, a video, etc. Exemplarily, the voice message may be a voice message sent by the contact "Lisa" shown in FIG7A .

[0428] Optionally, the audio file may also be an audio file stored locally in the electronic device 100. For example, the audio file may be music, video, voice message, etc.

[0429] Optionally, the audio file may also be an audio file downloaded from a server by the electronic device 100. For example, the audio file may be music, video, etc.

[0430] In some embodiments, the audio file includes audio content, or default audio attributes and audio content. The default audio attributes include a default speech rate, a default volume, and a default timbre. The default audio attributes can be attribute values ​​preset when the server or electronic device 200 generates the audio file.

[0431] In some embodiments, the audio file includes audio content, or first target audio attributes and audio content. The first target audio attributes include a first target speech rate, a first target volume, and a first target timbre. The first target audio attributes can be audio attributes defined by an audio generation speech rate card stored in the server or electronic device 200. The audio content included in the audio file is audio content adjusted based on the first target audio attributes.

[0432] Exemplarily, the audio content may be the voice information corresponding to the voice message identifier 7101 shown in FIG. 7A , where the voice message includes text information input by the user.

[0433] Exemplarily, the audio content may also be the audio content of music shown in FIG. 7G , and the audio content of music may include lyrics and music melody, etc.

[0434] For example, the first target speech rate may be the medium to low speed shown in FIG4Q , the first target volume may be 40% of the maximum volume of the electronic device shown in FIG4Q , and the first target timbre may be the original sound shown in FIG4Q .

[0435] Optionally, the audio file obtained by the electronic device 100 may carry an audio attribute adjustment identifier. When the electronic device 200 receives the audio file sent by the electronic device 100, it may obtain the audio attribute adjustment identifier carried in the audio file. Based on the audio attribute adjustment identifier, the electronic device 200 may play the audio content in the audio file according to the first target audio attribute carried in the audio file. The audio content in the audio file is no longer played according to the second target audio attribute in the audio playback speech rate card.

[0436] S802: The electronic device 100 needs to determine whether an audio playback speed card is stored in the electronic device 100.

[0437] Optionally, the audio playback speech speed card may be an application-level audio playback speech speed card or a system-level audio playback speech speed card.

[0438] Before the electronic device 100 plays the audio content in the audio file, the electronic device 100 needs to determine whether an audio playback speech speed card is saved.

[0439] When it is determined that an audio playback speech rate card is saved, the electronic device 100 may adjust the audio properties of the audio content acquired by the electronic device 100 based on the audio playback speech rate card, that is, execute S803, S807 and S808.

[0440] If it is determined that no audio generation speech rate card is saved, the electronic device 100 may prompt the user to create an audio playback speech rate card and receive a user operation to create and save the audio playback speech rate card. The electronic device 100 may then adjust the audio properties of the audio content obtained by the electronic device 100 based on the audio playback speech rate card, i.e., execute S804, S805, S806, S807, and S808.

[0441] The electronic device 100 may determine whether an audio playback speech speed card is stored on the electronic device 100 based on, but not limited to, any of the following methods.

[0442] Method 1: The electronic device 100 can determine the audio type of the audio content acquired by the electronic device 100 and determine whether an audio playback speech speed card is stored on the electronic device 100 based on the audio type.

[0443] Based on the above description, the audio playback speech rate card can be associated with the audio type. The electronic device 100 can determine whether there is an audio playback speech rate card belonging to the audio type based on the audio type of the audio content acquired by the electronic device 100.

[0444] Optionally, the electronic device 100 may determine the audio type of the audio file by combining one or any combination of information including the source of the audio file, feature analysis of the audio content, and the identifier / title of the audio file.

[0445] Method 2: The electronic device 100 may determine the application to which the audio content acquired by the electronic device 100 belongs, and determine based on the identification of the application whether an audio playback speech speed card is saved on the electronic device 100.

[0446] Based on the above description, the audio playback speech rate card can be associated with an application. The electronic device 100 can determine whether there is an audio playback speech rate card belonging to the application based on the application identifier of the application to which the audio content obtained by the electronic device 100 belongs.

[0447] Method three: the electronic device 100 can determine the application to which the audio content obtained by the electronic device 100 belongs and the object within the application, and determine whether an audio playback speech speed card is saved on the electronic device 100 based on the application identifier and the object identifier within the application.

[0448] Based on the above description, the audio playback speed card can be associated with an object in the application. The electronic device 100 can determine whether there is an audio playback speed card belonging to the object based on the application identifier of the application to which the audio content obtained by the electronic device 100 belongs and the object identifier in the application.

[0449] S803: The electronic device 100 obtains an audio playback speed card.

[0450] When it is determined that the electronic device 100 stores an audio playback speech speed card, the electronic device 100 may obtain the audio playback speech speed card.

[0451] S804: The electronic device 100 prompts the user to create an audio playback speed card.

[0452] When it is determined that no audio playback speech rate card is saved on the electronic device 100 , the electronic device 100 may prompt the user whether to create an audio playback speech rate card.

[0453] Exemplarily, the electronic device 100 may display a prompt bar 4209 similar to that shown in FIG4D to prompt the user whether to create an audio playback speed card.

[0454] S805: The electronic device 100 needs to confirm whether an audio playback speed card has been created.

[0455] After the electronic device 100 prompts the user to create an audio playback speech rate card, the electronic device 100 needs to further confirm whether the audio playback speech rate card has been created and saved.

[0456] When it is confirmed that an audio playback speech rate card is stored in the electronic device 100 , that is, the user has created an audio playback speech rate card, S807 is executed.

[0457] When it is confirmed that no audio playback speech rate card is saved in the electronic device 100 , that is, the user has not created an audio playback speech rate card, S806 is executed.

[0458] In some embodiments, the electronic device 100 may not execute S804 and S805. If it is determined in S803 that no audio playback speech rate card is saved on the electronic device 100, the electronic device 100 may directly execute S806.

[0459] In some embodiments, when the electronic device 100 receives a user operation to create an audio playback speed card, the electronic device 100 can determine an audio playback speed card template based on the audio type of the audio content in the audio file. Different audio types correspond to different audio playback speed card templates. The audio playback speed card template has preset audio attributes, and the preset audio attributes corresponding to different audio playback speed card templates are different. In this way, the electronic device 100 can directly obtain the audio playback speed card template based on the audio type matching, without the user having to set the audio attributes of the audio playback speed card according to steps similar to those shown in Figures 4E-4H, which can save user operations. The user can choose to use the preset audio attributes corresponding to the audio playback speed card template as the target audio attributes of the audio playback speed card set by the user. The user can also modify the preset audio attributes corresponding to the audio playback speed card template to obtain the target audio attributes of the audio playback speed card.

[0460] S806: The electronic device 100 plays the audio content of the audio file based on the default audio attribute or the first target audio attribute of the audio file.

[0461] When it is confirmed that the electronic device 100 has not saved and created an audio playback speech rate card, the electronic device 100 may not modify the audio attributes of the audio content obtained in the audio file. The electronic device 100 may directly play the audio content in the audio file, and the audio attributes of the audio content in the audio file are the default attributes or the first target audio attributes.

[0462] S807: The electronic device 100 adjusts the audio attributes of the audio content based on the second target audio attributes defined by the audio playback speech rate card.

[0463] S808. In response to the user operation, the electronic device 100 plays the audio content adjusted based on the second target audio attribute.

[0464] If the electronic device 100 determines that an audio playback speech rate card is stored or that the electronic device 100 receives a user operation to create an audio playback speech rate card, the electronic device 100 may adjust the audio properties of the audio content based on the second target audio properties defined in the audio playback speech rate card. The electronic device 100 may then play the audio content adjusted based on the second target audio properties. The second target audio properties include, but are not limited to, one or more of the following: a second target speech rate, a second target volume, and a second target timbre.

[0465] Exemplarily, the second target speaking speed may be the medium or low speed shown in FIG6A or FIG6B , the second target volume may be 40% of the maximum volume of the electronic device shown in FIG6A or FIG6B , and the second target timbre may also be the original sound shown in FIG6A or FIG6B .

[0466] Exemplarily, the second target speaking speed may also be the medium-high speed shown in FIG6C , FIG6D , or FIG6E , the second target volume may also be 50% of the maximum volume of the electronic device shown in FIG6C , FIG6D , or FIG6E , and the second target timbre may also be the original sound shown in FIG6C , FIG6D , or FIG6E .

[0467] In some embodiments, before the electronic device 100 plays the audio content in the acquired audio file, the electronic device 100 may determine whether the audio file carries an audio attribute adjustment identifier. If the audio file carries the audio attribute adjustment identifier, the electronic device 100 may no longer adjust the audio attributes of the audio content based on the second target audio attribute defined in the audio playback speech rate card, and directly play the audio content in the audio file, where the audio content in the audio file is the audio content that has been adjusted based on the first target audio attribute.

[0468] Through this method, when playing audio, the electronic device 100 can adjust the audio properties of the audio based on the audio playback speed card set by the user, without the user having to manually adjust the audio properties, so that the audio effect of the audio played by the electronic device meets the user's expected audio effect, thereby improving the user experience.

[0469] 5. The electronic device 100 receives a user operation to modify the second target audio attribute defined by the audio playback speech rate card.

[0470] 9A-9E are schematic diagrams showing the electronic device 100 receiving a user operation to modify a second target audio attribute defined in an audio playback speech rate card.

[0471] After the electronic device 100 saves the audio playback speech rate card, the electronic device 100 can receive a user operation to modify the second target audio attribute of the saved audio playback speech rate card, such as modifying the speech rate, volume, timbre, and other audio attributes specified in the audio playback speech rate card.

[0472] For example, as shown in FIG9A , the electronic device 100 may display an audio playback speech rate card 6003 on the negative one screen, and option 9001 is displayed in the audio playback speech rate card 6003 . The user may modify the audio playback speech rate card 6003 or share the audio playback speech rate card 6003 with other devices through option 9001 .

[0473] As shown in FIG9A , the electronic device 100 can receive a user input operation (e.g., a single click) for option 9001 in the audio playback speech rate card 6003. In response to the user's input operation, the electronic device 100 can display a selection box 9002 shown in FIG9B , which includes a modification option and a sharing option. The user can modify the audio properties defined in the audio playback speech rate card 6003 using the modification option. The user can also share the audio playback speech rate card 6003 with other devices using the sharing option.

[0474] For example, as shown in FIG9B , the electronic device 100 may receive a user input operation (e.g., a single click) for modifying an option in the selection box 9002. In response to the user's input operation, the electronic device 100 may display the editing box 9003 shown in FIG9C . The editing box 9003 includes multiple editing options, and the user may modify the audio properties specified in the audio playback speech rate card 6003 through different editing options.

[0475] For example, edit box 9003 includes edit options 9004, 9005, 9006, and 9007. The user can modify the applicable audio type of audio playback speed card 6003 through edit option 9004. The user can modify the speed of speech defined by audio playback speed card 6003 through edit option 9005. The user can modify the audio defined by audio playback speed card 6003 through edit option 9006. The user can modify the timbre defined by audio playback speed card 6003 through edit option 9007. Edit box 9003 also includes a cancel option and a save option. The user can stop modifying the audio properties defined by audio playback speed card 6003 through the cancel option, and the user interface shown in FIG. 9A is displayed. The user can also save the modified audio properties in audio playback speed card 6003 through the save option.

[0476] For example, as shown in Figure 9D, the user sets the audio type applicable to the audio playback speed card to voice chat, the user adjusts the speed specified in the audio playback speed card to medium-high speed, the user adjusts the volume specified in the audio playback speed card to 60% of the maximum volume of the electronic device, and the user sets the timbre specified in the audio playback speed card to the original sound, that is, the timbre of the audio content is not adjusted.

[0477] For example, as shown in Figure 9D, the electronic device 100 can receive a user input operation (such as a single click) for the save option in the edit box 9003. In response to the user's input operation, the electronic device 100 can display the audio playback speed card 9008 shown in Figure 9E. The audio playback speed card 9008 is the card corresponding to the audio playback speed card 6003 after the audio properties are modified.

[0478] 6. The electronic device 100 receives a user operation to view one or more audio generation speed cards and / or audio playback speed cards.

[0479] 10A-10F are schematic diagrams showing the electronic device 100 receiving a user operation to view a speech rate card.

[0480] 10A , the electronic device 100 displays an audio playback speed card 6003 on the negative first screen. The user can slide left or right on the audio playback speed card 6001 to view other undisplayed audio generation speed cards or audio playback speed cards.

[0481] Exemplarily, as shown in FIG10A , the electronic device 100 receives a sliding operation (e.g., a left sliding operation) performed by the user on the audio playback speed card 6003. In response to the sliding operation of the user, the electronic device 100 may display the audio playback speed card 1001 shown in FIG10B . The audio type applicable to the audio playback speed card 1001 is a learning type. The speed defined by the audio playback speed card 1001 is slow. The volume defined by the audio playback speed card 1001 is 60% of the maximum volume of the electronic device. The timbre defined by the audio playback speed card 1001 is the original sound, that is, the timbre of the audio content is not adjusted.

[0482] In some embodiments, the electronic device 100 may also receive a user operation to view multiple speech rate cards simultaneously.

[0483] For example, as shown in FIG10C , the electronic device 100 may receive a user input operation (such as a single click) for more options. In response to the user input operation, the electronic device 100 may display the user interface 1002 shown in FIG10D , which includes multiple speech rate cards.

[0484] 10D, the user interface 1002 includes an audio playback speed card 6003 and an audio playback speed card 1001. The electronic device 100 can receive an upward or downward swipe operation by the user on the user interface 1002 to view other undisplayed audio playback speed cards or audio generation speed cards.

[0485] In some embodiments, the user can set an audio playback speed card or an audio generation speed card for one or more objects in the first application. To save display space occupied by speed cards, the electronic device 100 can overlay and display the audio playback speed cards or audio generation speed cards for different objects in the first application, and the electronic device 100 can switch to display the audio playback speed cards or audio generation speed cards for different objects.

[0486] For example, electronic device 100 may display user interface 1005 as shown in FIG10E , which includes a speech rate card deck. Specifically, speech rate card deck 1006 includes multiple audio playback speech rate cards displayed in a superimposed manner. For example, audio playback speech rate card 6002, audio playback speech rate card 1003, and audio playback speech rate card 1004. Audio playback speech rate card 1003 and audio playback speech rate card 1004 are not displayed in their entirety.

[0487] For example, as shown in FIG10E , the electronic device 100 may receive a user sliding operation (e.g., a left sliding operation) on the speech rate card group 1006. In response to the user's sliding operation, the electronic device 100 may display the user interface 1007 shown in FIG10F .

[0488] As shown in FIG10F , the speech rate card group 1006 shown in the user interface 1007 fully displays the audio playback speech rate card 1003 , while the audio playback speech rate card 6002 and the audio playback speech rate card 1004 are not fully displayed.

[0489] Audio playback speed card 1003 applies to chat audio. It is limited to use in instant messaging applications. It is limited to use when receiving a voice message from the contact "TOM" in the instant messaging application. Audio playback speed card 1003 sets the speech speed to medium-high. The volume is limited to 50% of the maximum volume of the electronic device. Audio playback speed card 1003 sets the timbre to "loli voice," which modifies the timbre of the audio content from the original voice to a "loli voice" voice, thus achieving voice change.

[0490] 7. The electronic device 100 receives the user's operation to share the audio playback speed card.

[0491] In some embodiments, after the user creates an audio generation speed card and / or an audio playback speed card on the electronic device 100, the electronic device 100 can share the audio generation speed card and / or the audio playback speed card to other devices (electronic device 200). The electronic device 200 can receive and save the audio generation speed card and / or the audio playback speed card shared by the electronic device 100. In this way, the electronic device 200 can adjust the audio properties of the collected audio based on the audio generation speed card, or the electronic device 200 can also adjust the audio properties of the acquired audio based on the audio playback speed card before playing. The user does not need to operate the creation of the audio generation speed card and / or the audio playback speed card on the electronic device 200 again, which can save user operations.

[0492] 11A-11D are schematic diagrams showing electronic device 100 sharing speech rate cards with electronic device 200. FIG.

[0493] This application is explained by taking the example of electronic device 100 sharing audio playback speech speed cards with electronic device 200.

[0494] The electronic device 100 can share the audio playback speech speed card with the electronic device 200 through an application, and the electronic device 100 can also share the audio playback speech speed card with the electronic device 200 through a short-range communication connection. This application does not limit the sharing method.

[0495] The following embodiments of the present application are described by taking the example of electronic device 100 sharing an audio playback speech speed card with electronic device 200 via Bluetooth connection.

[0496] 9A-9B , the electronic device 100 may display a selection box 9002 as shown in FIG9B . The selection box 9002 includes a modification option and a sharing option. The user can modify the audio properties defined in the audio playback speech rate card 6001 using the modification option. The user can also share the audio playback speech rate card 6001 with other devices using the sharing option.

[0497] As shown in Figure 11A, the electronic device 100 can receive a user input operation (such as a single click) for the sharing option in the selection box 9002. In response to the user's input operation, the electronic device 100 can display the selection box 1101 shown in Figure 11B. The selection box 1101 shows the device identifiers of multiple devices discovered by the electronic device 100 via Bluetooth.

[0498] Optionally, after the electronic device 100 receives the user's input operation for the sharing option in the selection box 9002, if the electronic device 100 has not turned on Bluetooth, the electronic device 100 may prompt to start the Bluetooth of the electronic device 100.

[0499] As shown in FIG11B , the device identification shown in the selection box 1101 may include “TOM's Mate 50” and “Nacy's NOVA 11”. The device identification “TOM's Mate 50” may be the device identification of the electronic device 200, and the device identification “Nacy's NOVA 11” may be the device identification of another electronic device. The user may select the device identification “TOM's Mate 50”. Afterwards, the electronic device 100 may receive the user's input operation (e.g., a single click) for determining the option in the selection box 1101. In response to the user's input operation, the electronic device 100 may share the audio playback speech rate card 6001 with the electronic device 200.

[0500] The electronic device 100 shares the audio playback speech rate card 6001 with the electronic device 200 , which may mean that the electronic device 100 obtains the second target audio attribute defined in the audio playback speech rate card 6001 and sends the second target audio attribute to the electronic device 200 .

[0501] After the electronic device 200 receives the audio playback speed card 6001 shared by the electronic device 100, the electronic device 200 may display the prompt bar 1102 shown in FIG11C. The prompt bar 1102 includes the prompt information "Found the audio playback speed card sent by "WY's HUA WEI P60", do you want to receive and save it?", which is used to prompt the user whether to receive the audio playback speed card shared by the electronic device 100. The prompt bar 1102 also includes a reject option and a receive option. The user can use the reject option to not receive the audio playback speed card shared by the electronic device 100. The user can also use the receive option to receive and save the audio playback speed card shared by the electronic device 100.

[0502] For example, as shown in FIG11C , electronic device 200 may receive a user input operation (e.g., a single click) for a receiving option in prompt bar 1102. In response to the user input operation, electronic device 200 may display user interface 1103 shown in FIG11D . User interface 1103 may be the negative first screen of electronic device 200. User interface 1103 may display an audio playback speed card 1104. Audio playback speed card 1104 may be an audio playback speed card shared by electronic device 100 to electronic device 200.

[0503] FIG12 shows a flow chart of a method for electronic device 100 to share speech speed cards with electronic device 200 .

[0504] S1201: The electronic device 100 and the electronic device 200 establish a communication connection.

[0505] The electronic device 100 and the electronic device 200 may be multiple devices belonging to the same user, or may be multiple devices belonging to different users.

[0506] S1202: The electronic device 100 receives a user operation and shares the first audio playback speed card with the electronic device 200.

[0507] S1203: The electronic device 100 obtains first card information of a first audio playback speech rate card.

[0508] The electronic device 100 may receive a user operation and share the first audio playback speed card with the electronic device 200 .

[0509] Exemplarily, the first audio playback speech rate card may be the audio playback speech rate card 6003 shown in FIG. 11A .

[0510] The first audio playback speech speed card displays first card information, including but not limited to: classification information of the first audio playback speech speed card and the second target audio attribute of the first audio playback speech speed card.

[0511] The classification information of the first audio playback speech speed card may include but is not limited to one or more of the following: the audio type to which the first audio playback speech speed card is applicable, the application identifier to which the first audio playback speech speed card is applicable, and the object identifier within the application to which the first audio playback speech speed card is applicable.

[0512] The second target audio attribute of the first audio playback speech rate card may include but is not limited to one or more of the following: a second target speech rate, a second target volume, a second target timbre, etc.

[0513] Optionally, the electronic device 100 may also share the audio generation speech speed card with the electronic device 200, and this application does not limit this.

[0514] S1204 . In response to the user operation, the electronic device 100 sends the first card information to the electronic device 200 .

[0515] In response to the user operation, after the electronic device 100 obtains the first card information, the electronic device 100 may send the first card information to the electronic device 200. The first card information is used by the electronic device 200 to generate an audio playback speed card.

[0516] S1205. The electronic device 200 receives and stores the first card information, and generates a second audio playback speed card.

[0517] S1206: The electronic device 200 displays a second audio playback speech speed card, where the card information displayed on the second audio playback speech speed card is the first card information.

[0518] In some embodiments, after electronic device 200 receives the first card information sent by electronic device 100 and before generating the second audio playback speech rate card, electronic device 200 may prompt the user whether to agree to receive the audio generation speech rate card shared by electronic device 200. If the user agrees, electronic device 100 saves the first card information and generates the second audio playback speech rate card. For details, please refer to the description of the embodiment in Figure 11C.

[0519] After receiving the first card information, the electronic device 200 may generate a second audio playback speed card based on the first card information. In some embodiments, after generating the second audio playback speed card, the electronic device 200 may display the second audio playback speed card on the negative first screen.

[0520] Exemplarily, the second audio playback speech rate card may be the audio playback speech rate card 1104 shown in FIG. 11D .

[0521] The electronic device 200 is not limited to displaying the second audio playback speed card on the negative one screen. The second audio playback speed card can also be displayed in other locations. This application does not limit this.

[0522] Through this method, the second audio playback speed card can be quickly obtained without the user having to operate on the electronic device 200, thus saving user operations.

[0523] FIG13 is a flow chart of an audio playback system provided in this application.

[0524] S1301. A first electronic device is configured to send, in response to a first operation, a first audio attribute to a second electronic device via a communication connection, where the first audio attribute includes one or more of the following: a first volume, a first timbre, and a first speaking speed.

[0525] S1302: A second electronic device is configured to receive a first audio attribute and play a first audio content based on the first audio attribute.

[0526] In some embodiments, the first audio attribute may be an audio attribute defined in a speech rate card. In this way, the first electronic device can receive a user operation and share the speech rate card with other devices. Other devices can receive and use the first audio attribute. This eliminates the need to receive a user operation to create a speech rate card, saving user effort. For details, please refer to the description of the embodiments in Figures 11A-11D.

[0527] In other embodiments, the first audio attribute may be an audio attribute corresponding to the audio content. When the first electronic device sends the audio content to the second electronic device, it also sends the audio attribute corresponding to the audio content to the second electronic device. The second electronic device may play the audio content based on the audio attribute corresponding to the audio content.

[0528] This method can adjust the audio properties of audio content, and the device can play the audio content based on the audio properties. This eliminates the need for users to manually adjust the audio properties of the audio content, saving user operations and increasing the diversity of audio playback on the device.

[0529] In a possible implementation, the first electronic device is further configured to: display a first speaking rate card, where the first speaking rate card includes a first audio attribute, and the first operation is a user operation on the first speaking rate card.

[0530] The first audio attribute can be the audio attribute defined in the first speaking rate card. In this way, the first electronic device can receive a user operation and share the first speaking rate card with other devices. The other devices can receive and use the first audio attribute. This eliminates the need to receive a user operation to create a speaking rate card, saving user effort.

[0531] The first electronic device displays the first speaking speed card, so that the user can view the first audio attribute defined by the first speaking speed card. The user can also modify the audio attribute defined by the first speaking speed card.

[0532] In some embodiments, the first speaking rate card may be an audio playback speaking rate card or an audio generation speaking rate card.

[0533] In other embodiments, the first speaking rate card may be an application-level speaking rate card, or the first speaking rate card may be a system-level speaking rate card.

[0534] For example, the first speech rate card may be the audio playback speech rate card 6003 shown in FIG. 11A , and the first operation may be an input operation (eg, single-click) for the share option in the selection box 9002 .

[0535] In one possible implementation, the first electronic device is also used to display a first prompt message, which includes a first device identifier, and the first device identifier is the device identifier of the second electronic device; the first electronic device is specifically used to send the first audio attribute to the second electronic device through a communication connection in response to the user's second operation on the first device identifier.

[0536] In this way, the user can select a target device to share the first audio attribute, so as to achieve sharing of the audio attribute of the audio content between the devices.

[0537] Exemplarily, the first prompt information may be the prompt bar 1102 shown in FIG. 11C .

[0538] Exemplarily, the device identification of the second electronic device may be the device identification “TOM's Mate 50”.

[0539] In a possible implementation, the second electronic device is further configured to generate and display a second speaking rate card according to the first audio attribute, where the second speaking rate card includes the first audio attribute.

[0540] In this way, after the second electronic device receives the first speaking speed card shared by the first electronic device, the second electronic device can automatically generate and display the second speaking speed card, making it convenient for the user to view and modify the audio attributes defined in the second speaking speed card.

[0541] Illustratively, the second speech rate card may be the audio playback speech rate card 1104 shown in FIG. 11D .

[0542] In one possible implementation, the first electronic device is specifically used to send a first audio file to a second electronic device via a communication connection in response to a first operation, where the first audio file includes first audio content and a first audio attribute corresponding to the first audio content; the second electronic device is specifically used to receive the first audio file and play the first audio content based on the first audio attribute in the first audio file.

[0543] In this way, the first audio attribute can be the audio attribute corresponding to the audio content. When the first electronic device sends the audio content to the second electronic device, it also sends the audio attribute corresponding to the audio content to the second electronic device. The second electronic device can play the audio content based on the audio attribute corresponding to the audio content.

[0544] In a possible implementation, the second electronic device is further configured to display second prompt information, where the second prompt information is configured to instruct the second electronic device to play the first audio content based on the first audio attribute.

[0545] Illustratively, the second prompt information may be the prompt information 7103 shown in FIG. 7C .

[0546] Illustratively, the second prompt information may be the prompt information 7103 shown in FIG. 7I .

[0547] Exemplarily, the second prompt information may be the prompt information 7120 shown in FIG. 7J .

[0548] Exemplarily, the second prompt information may be the prompt information 7103 shown in FIG. 7L .

[0549] In this way, the second electronic device can prompt the user that the second electronic device is playing the first audio content using the first audio attribute.

[0550] In one possible implementation, the first audio content is the first voice information, the first audio attribute is the audio attribute of the voice information corresponding to the first object identifier of the first application, or the first audio attribute is the audio attribute of the voice information of the first application, or the first audio attribute is the audio attribute corresponding to the voice information; the first electronic device is specifically used to send the first audio file to the second electronic device through the first application in response to the first operation; the second electronic device is specifically used to receive the first audio file through the first application, and play the first language information based on the first audio attribute in the first audio file.

[0551] For example, the first application may be an instant messaging application. When users send voice messages to each other within the instant messaging application, the electronic device can change the audio attributes of the voice message. When the device plays the voice message, it can play the voice message based on the audio attributes carried in the voice message, thereby increasing the fun of interaction between devices and improving the user experience.

[0552] Exemplarily, the first voice information may be the voice information corresponding to the voice message identifier 7101 shown in FIG. 7A .

[0553] In a possible implementation manner, the first object identifier is a sender identifier of the first voice information in the first application.

[0554] Exemplarily, the first object identifier may be the contact "Lisa".

[0555] In one possible implementation, the first audio attribute is an audio attribute corresponding to the first audio type or the first application identifier or the first object identifier within the first application; the first electronic device is further used to: obtain a second audio file, the second audio file includes second audio content and second audio attributes of the second audio content, the second audio attributes include one or more of the following: second volume, second timbre, second speaking speed; determine the first audio attribute based on the first audio type to which the second audio content belongs or the first application identifier to which the second audio content belongs or the first object identifier within the first application to which the second audio content belongs; and play the second audio content based on the first audio attribute.

[0556] In some embodiments, the second audio file may be an audio file stored locally on the first electronic device, an audio file sent by another device to the first electronic device, or an audio file downloaded from a server by the first electronic device.

[0557] When the first electronic device plays the second audio content in the second audio file, it can determine whether the audio attributes of the second audio content are locally stored. In some cases, the first electronic device can play the second audio content based on the matched audio attributes. This eliminates the need for the user to manually adjust the audio attributes of the audio content, saving user operations and increasing the diversity of audio playback on the device.

[0558] In one possible implementation, the first electronic device is further configured to: display a third prompt message; receive a second operation from the user for the first option in the third prompt message; and the first electronic device is specifically configured to play the second audio content based on the first audio attribute in response to the second operation.

[0559] In a possible implementation, the first electronic device is further configured to: receive a third operation of the user on the second option in the third prompt information; and play the second audio content based on the second audio attribute in response to the third operation.

[0560] When the first electronic device plays the second audio content in the second audio file, the first electronic device may determine whether the audio attributes of the second audio content are stored locally. In some cases, the first electronic device may prompt the user whether to use the audio attributes to play the second audio content. If the user agrees, the first electronic device may play the second audio content based on the matched audio attributes. If the user disagrees, the first electronic device may play the second audio content based on the audio attributes carried by the second audio content.

[0561] For example, the third prompt information may be prompt information 7102 shown in Figure 7B . The first option may be the Yes option in prompt information 7102 shown in Figure 7B . The second option may be the No option in prompt information 7102 shown in Figure 7B .

[0562] For example, the third prompt information may be prompt information 7102 shown in Figure 7H , the first option may be the Yes option in prompt information 7102 shown in Figure 7H , and the second option may be the No option in prompt information 7102 shown in Figure 7H .

[0563] In one possible implementation, the first electronic device is further used to: receive and respond to a fourth operation, determine a first template preset card, the first preset card includes preset audio attributes, and the preset audio attributes include one or more of the following: preset volume, preset timbre, and preset speaking speed; receive a user operation to modify the preset audio attributes in the first preset card to obtain a first audio attribute; in response to a user operation of saving the first template card after modifying the preset audio attribute to the first audio attribute, obtain a first speaking speed card; or, in response to a user operation of saving the first template card, obtain a first speaking speed card, and the preset audio attribute is the same as the first audio attribute.

[0564] In some embodiments, the first audio attribute is an audio attribute corresponding to the first audio type or the first application identifier or the first object identifier in the first application. A plurality of preset cards of different types are stored on the first electronic device. When it is detected that a speaking speed card needs to be created (for example, when collecting audio content), the first electronic device can obtain a first preset card based on the audio attribute matching corresponding to the first audio type or the first application identifier or the first object identifier in the first application of the collected audio content. The first preset card includes preset audio attributes, and the user can directly save the preset audio attributes of the first preset card to obtain a first speaking speed card. The user can also modify the preset audio attributes of the first preset card and save it to obtain a first speaking speed card. This improves the efficiency of users in creating speaking speed cards on electronic devices.

[0565] For example, the first preset card may be the card in the prompt bar 4213 shown in FIG4I . The preset audio attribute of the first preset card may be the audio attribute shown in the prompt bar 4213 .

[0566] The present application provides an electronic device, which is a first electronic device, and the first electronic device includes a memory and a processor; wherein the memory and the processor are coupled, and the memory is used to store a computer program. When the processor executes and calls the computer program, the first electronic device executes an audio control method provided in the embodiment of Figure 11.

[0567] The present application provides a computer-readable storage medium including instructions. When the instructions are executed on a first electronic device, the first electronic device executes an audio control method provided in the embodiment of FIG11 .

[0568] The present application provides a chip system, which includes one or more processors, and the processors are used to call computer instructions to enable a first electronic device to execute an audio control method provided in the embodiment of Figure 11.

[0569] The present application provides a computer program product comprising instructions. When the computer program product is run on a first electronic device, the first electronic device executes an audio control method provided in the embodiment of FIG11 .

[0570] The present application provides an electronic device, which is a second electronic device, and the second electronic device includes a memory and a processor; wherein the memory and the processor are coupled, and the memory is used to store a computer program. When the processor executes and calls the computer program, the second electronic device executes an audio control method provided in the embodiment of Figure 11.

[0571] The present application provides a computer-readable storage medium including instructions. When the instructions are executed on a second electronic device, the second electronic device executes an audio control method provided in the embodiment of FIG11 .

[0572] The present application provides a chip system, which includes one or more processors, and the processors are used to call computer instructions to enable a second electronic device to execute an audio control method provided in the embodiment of Figure 11.

[0573] The present application provides a computer program product including instructions. When the computer program product is run on a second electronic device, the second electronic device executes an audio control method provided in the embodiment of FIG11 .

[0574] The various implementation modes of this application can be combined arbitrarily to achieve different technical effects.

[0575] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0576] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0577] In short, the above description is only an embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made based on the disclosure of the present invention should be included in the scope of protection of the present invention.

Claims

1. An audio playback system, characterized in that: The system includes a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device establish a communication connection, wherein: The first electronic device is configured to send a first audio attribute to the second electronic device via the communication connection in response to a first operation, wherein the first audio attribute includes one or more of the following: a first volume, a first timbre, and a first speech speed; The second electronic device is configured to receive the first audio attribute and play the first audio content based on the first audio attribute.

2. The system according to claim 1, characterized in that The first electronic device is further used for: A first speaking rate card is displayed, where the first speaking rate card includes the first audio attribute, and the first operation is a user operation on the first speaking rate card.

3. The system according to claim 1 or 2, characterized in that: The first electronic device is further used to display first prompt information, wherein the first prompt information includes a first device identifier, and the first device identifier is a device identifier of the second electronic device; The first electronic device is specifically configured to send the first audio attribute to the second electronic device through the communication connection in response to a second operation of the user on the first device identifier.

4. The system according to any one of claims 1 to 3, characterized in that: The second electronic device is further configured to generate and display a second speech rate card according to the first audio attribute, wherein the second speech rate card includes the first audio attribute.

5. The system according to any one of claims 1 to 4, characterized in that: The first electronic device is specifically configured to send a first audio file to the second electronic device through the communication connection in response to the first operation, wherein the first audio file includes the first audio content and the first audio attribute corresponding to the first audio content; The second electronic device is specifically configured to receive the first audio file, and play the first audio content based on the first audio attribute in the first audio file.

6. The system according to claim 5, characterized in that The second electronic device is further used to display second prompt information, where the second prompt information is used to instruct the second electronic device to play the first audio content based on the first audio attribute.

7. The system according to claim 5 or 6, characterized in that: The first audio content is first voice information, the first audio attribute is an audio attribute of the voice information corresponding to the first object identifier of the first application, or the first audio attribute is an audio attribute of the voice information of the first application, or the first audio attribute is an audio attribute corresponding to the voice information; The first electronic device is specifically configured to send the first audio file to the second electronic device through the first application in response to the first operation; The second electronic device is specifically configured to receive the first audio file through the first application, and play the first language information based on the first audio attribute in the first audio file.

8. The system according to claim 7, characterized in that The first object identifier is an identifier of a sender of the first voice information in the first application.

9. The system according to any one of claims 1 to 6, characterized in that: The first audio attribute is an audio attribute corresponding to a first audio type or a first application identifier or a first object identifier in the first application; The first electronic device is further used for: Acquire a second audio file, where the second audio file includes second audio content and second audio attributes of the second audio content, where the second audio attributes include one or more of the following: a second volume, a second timbre, and a second speech speed; determining the first audio attribute based on the first audio type to which the second audio content belongs, the first application identifier to which the second audio content belongs, or the first object identifier in the first application to which the second audio content belongs; The second audio content is played based on the first audio attribute.

10. The system according to claim 9, characterized in that The first electronic device is further used for: Display the third prompt information; receiving a second operation of the user in response to the first option in the third prompt information; The first electronic device is specifically configured to play the second audio content based on the first audio attribute in response to the second operation.

11. The system according to claim 10, characterized in that The first electronic device is further used for: receiving a third operation of the user for the second option in the third prompt information; In response to the third operation, the second audio content is played based on the second audio attribute.

12. The system according to claim 2, characterized in that The first electronic device is further used for: Receiving and responding to a fourth operation, determining a first template preset card, wherein the first preset card includes preset audio attributes, and the preset audio attributes include one or more of the following: preset volume, preset timbre, and preset speech speed; receiving a user operation of modifying the preset audio attribute in the first preset card, and obtaining the first audio attribute; In response to a user operation of saving the first template card after modifying the preset audio attribute to the first audio attribute, obtaining the first speech rate card; or, In response to a user operation of saving the first template card, the first speaking rate card is obtained, and the preset audio attribute is the same as the first audio attribute.

13. An audio playing method, characterized in that: The method comprises: In response to a first operation, the first electronic device sends a first audio attribute to a second electronic device, where the first audio attribute is used by the second electronic device to play first audio content based on the first audio attribute, wherein the first audio attribute includes one or more of the following: a first volume, a first timbre, and a first speaking speed.

14. The method according to claim 13, characterized in that A first speaking rate card is displayed on the first electronic device, the first speaking rate card includes the first audio attribute, and the first operation is a user operation on the first speaking rate card.

15. The method according to claim 13 or 14, characterized in that After the first electronic device responds to the first operation, the method further includes: The first electronic device displays first prompt information, where the first prompt information includes a first device identifier, and the first device identifier is the device identifier of the second electronic device; The sending the first audio attribute to the second electronic device specifically includes: In response to a second operation of the user on the first device identifier, the first electronic device sends a first audio attribute to a second electronic device.

16. The method according to any one of claims 13 to 15, characterized in that: The first electronic device sends the first audio attribute to the second electronic device in response to the first operation, specifically including: In response to the first operation, the first electronic device sends a first audio file to the second electronic device, where the first audio file includes the first audio content and the first audio attribute corresponding to the first audio content.

17. The method according to claim 16, characterized in that The first audio content is first voice information, the first audio attribute is an audio attribute of the voice information corresponding to the first object identifier of the first application, or the first audio attribute is an audio attribute of the voice information of the first application, or the first audio attribute is an audio attribute corresponding to the voice information; In response to the first operation, the first electronic device sending the first audio file to the second electronic device specifically includes: In response to the first operation, the first electronic device sends the first audio file to the second electronic device through a first application.

18. The method according to claim 17, characterized in that The first object identifier is an identifier of a sender of the first voice information in the first application.

19. The method according to any one of claims 13 to 16, characterized in that: The first audio attribute is an audio attribute corresponding to a first audio type or a first application identifier or a first object identifier in the first application; the method further includes: The first electronic device acquires a second audio file, where the second audio file includes second audio content and a second audio attribute of the second audio content, where the second audio attribute includes one or more of the following: a second volume, a second timbre, and a second speech speed; The first electronic device determines the first audio attribute based on the first audio type to which the second audio content belongs, the first application identifier to which the second audio content belongs, or the first object identifier in the first application to which the second audio content belongs; The first electronic device plays the second audio content based on the first audio attribute.

20. The method according to claim 19, characterized in that Before the first electronic device plays the second audio content based on the first audio attribute, the method further includes: The first electronic device displays third prompt information; The first electronic device receives a second operation of the user on the first option in the third prompt information; The first electronic device plays the second audio content based on the first audio attribute, specifically including: In response to the second operation, the first electronic device plays the second audio content based on the first audio attribute.

21. The method according to claim 20, characterized in that The method further comprises: The first electronic device receives a third operation of the user on the second option in the third prompt information; In response to the third operation, the first electronic device plays the second audio content based on the second audio attribute.

22. The method according to claim 14, characterized in that The method further comprises: The first electronic device receives and responds to the fourth operation, determines a first template preset card, the first preset card includes preset audio attributes, and the preset audio attributes include one or more of the following: preset volume, preset timbre, and preset speech speed; The first electronic device receives a user operation to modify the preset audio attribute in the first preset card, and obtains the first audio attribute; In response to a user operation of saving the first template card after modifying the preset audio attribute to the first audio attribute, obtaining the first speech rate card; or, In response to a user operation of saving the first template card, the first speaking rate card is obtained, and the preset audio attribute is the same as the first audio attribute.

23. An audio playing method, characterized in that: The method comprises: The second electronic device receives a first audio attribute sent by the first electronic device, where the first audio attribute is sent after the first electronic device responds to the first operation, and the first audio attribute includes one or more of the following: a first volume, a first timbre, and a first speech speed; The second electronic device plays the first audio content based on the first audio attribute.

24. The method according to claim 23, characterized in that After the second electronic device receives the first audio attribute sent by the first electronic device, the method further includes: The second electronic device generates and displays a second speech rate card according to the first audio attribute, where the second speech rate card includes the first audio attribute.

25. The method according to claim 23 or 24, characterized in that The second electronic device receives the first audio attribute sent by the first electronic device, specifically including: The second electronic device receives a first audio file sent by the first electronic device, where the first audio file includes the first audio content and the first audio attribute corresponding to the first audio content, and the first audio file is sent after the first electronic device responds to the first operation; The second electronic device plays the first audio content based on the first audio attribute, specifically including: The second electronic device plays the first audio content based on the first audio attribute in the first audio file.

26. The method according to any one of claims 23 to 25, characterized in that: The method further comprises: The second electronic device displays second prompt information, where the second prompt information is used to instruct the second electronic device to play the first audio content based on the first audio attribute.

27. The method according to claim 25 or 26, characterized in that The first audio content is first voice information, the first audio attribute is an audio attribute of the voice information corresponding to the first object identifier of the first application, or the first audio attribute is an audio attribute of the voice information of the first application, or the first audio attribute is an audio attribute corresponding to the voice information; The step of receiving, by the second electronic device, the first audio file sent by the first electronic device specifically includes: The second electronic device receives the first audio file sent by the first electronic device through the first application; The second electronic device plays the first audio content based on the first audio attribute in the first audio file, specifically including: The second electronic device plays the first voice information based on the first audio attribute in the first audio file.

28. The method according to claim 27, characterized in that The first object identifier is an identifier of a sender of the first voice information in the first application.

29. An electronic device, being a first electronic device, characterized in that: The first electronic device includes a memory and a processor; wherein the memory and the processor are coupled, and the memory is used to store a computer program. When the processor executes and calls the computer program, the first electronic device executes the method described in any one of claims 13-22.

30. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on the first electronic device, the first electronic device executes the method according to any one of claims 13 to 22.

Citation Information

Patent Citations

  • Scene-based aloud-reading audio production method and system based on handheld intelligent terminal

    CN108536655A

  • Session message processing method and device, electronic equipment and storage medium

    CN112883181A

  • Online social media interaction system

    US20180183738A1

  • Generating audio rendering from textual content based on character models

    US20190043474A1