Audio playing system and method and electronic equipment
By transmitting audio attributes between electronic devices, the function of automatically adjusting and playing audio content is realized, which solves the problem that users need to manually adjust the audio playback speed, and improves the operation efficiency and the audio playback diversity of the equipment.
Patent Information
- Application Number
- CN202311282771.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2025-03-28
AI Technical Summary
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.
By establishing a communication connection between the electronic devices, the first electronic device is allowed to send audio attributes (such as speech speed) to the second electronic device, which automatically adjusts and plays audio content based on the received audio attributes.
Eliminates the user to manually adjust audio properties, saving user operations and improving the diversity of the device when playing audio.
Smart Images

Figure CN119728845A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to an audio playback system, method and electronic device. Background Art
[0002] In daily life, users can use mobile phones, tablet computers and other electronic devices to play audio such as voice messages, music, and videos. Generally, when playing audio, electronic devices support users to set different playback multiples such as 0.75X, 1.25X, and 1.5X to play audio.
[0003] Different users have different requirements for audio playback multiples. For example, some users prefer fast playback when playing TV series, while some users prefer slow playback when playing TV series. In order to allow users to freely adjust the playback speed of audio or audio and video, a multiple-speed playback function can generally be set in the application, and users can use the multiple-speed playback function to adjust the playback speed of audio or audio and video in the application. However, this multiple-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, and the user operation is cumbersome. Summary of the invention
[0004] 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, which not only saves user operations but also improves the diversity of audio playback of the device.
[0005] In a first aspect, the present application provides an audio playback system, which includes a first electronic device and a second electronic device, wherein a communication connection is established between the first electronic device and the second electronic device, 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; and the second electronic device is used to receive the first audio attribute and play the first audio content based on the first audio attribute.
[0006] 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 may receive a user operation and share the speech rate card with other devices. Other devices may receive the first audio attribute and use the first audio attribute. There is no need to receive a user operation to create a speech rate card, which can save user operations.
[0007] 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.
[0008] This method can adjust the audio properties of the audio content, and the device can play the audio content based on the audio properties. There is no need for the user to manually adjust the audio properties of the audio content, which not only saves user operations but also improves the diversity of audio playback of the device.
[0009] In combination with the first aspect, in a possible implementation manner, 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.
[0010] The first audio attribute may be an audio attribute defined in the first speech rate card. In this way, the first electronic device may receive a user operation and share the first speech rate card with other devices. Other devices may receive the first audio attribute and use the first audio attribute. There is no need to receive a user operation to create a speech rate card, which can save user operations.
[0011] 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.
[0012] In combination with the first aspect, in a possible implementation, the first electronic device is also used to display a first prompt information, the first prompt information includes a first device identification, and the first device identification is a device identification 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 a second operation of the user on the first device identification.
[0013] In this way, the user can select a target device for sharing the first audio attribute, so as to achieve sharing of the audio attribute of the audio content between the devices.
[0014] In combination with the first aspect, in a possible implementation manner, 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.
[0015] 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, so that the user can view and modify the audio attributes defined by the second speaking speed card.
[0016] In combination with the first aspect, in a 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, the first audio file including 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.
[0017] In this way, the first audio attribute can 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 can play the audio content based on the audio attribute corresponding to the audio content.
[0018] In combination with the first aspect, in a possible implementation manner, 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.
[0019] 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.
[0020] 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.
[0021] 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.
[0022] For example, the first application may be an instant messaging application. When users send voice messages to each other in the instant messaging application, the electronic device may change the audio attributes of the voice message, and when the device plays the voice message, it may play the voice message based on the audio attributes carried by the voice message, thereby increasing the fun of interaction between devices and improving the user experience.
[0023] In combination with the first aspect, in a possible implementation, the first audio attribute is an audio attribute corresponding to a first audio type or a first application identifier or a first object identifier within a 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 including one or more of the following: a second volume, a second timbre, and a 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.
[0024] In some embodiments, the second audio file may be an audio file stored locally in the first electronic device, an audio file sent by other devices and received by the first electronic device, or an audio file downloaded from a server by the first electronic device.
[0025] When the first electronic device plays the second audio content in the second audio file, the first electronic device can determine whether the audio attributes of the second audio content are stored locally. In some cases, the first electronic device can play the second audio content based on the matched audio attributes. In this way, there is no need for the user to manually adjust the audio attributes of the audio content, which not only saves user operations, but also improves the diversity of audio playback by the device.
[0026] In combination with the first aspect, in a possible implementation, the first electronic device is further used to: display a third prompt message; receive a second operation of the user for a 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.
[0027] In combination with the first aspect, in a possible implementation manner, 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.
[0028] When the first electronic device plays the second audio content in the second audio file, the first electronic device can determine whether the audio attribute of the second audio content is stored locally. In some cases, the first electronic device can prompt the user whether to use the audio attribute to play the second audio content. If the user agrees, the first electronic device can play the second audio content based on the matched audio attribute. If the user disagrees, the first electronic device can play the second audio content based on the audio attribute carried by the second audio content.
[0029] 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, the preset audio attributes include one or more of the following: preset volume, preset timbre, preset speaking speed; receive a user operation to modify the preset audio attributes in the first preset card, and obtain the 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.
[0030] In some embodiments, 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 a first application. A plurality of preset cards of different types are stored on the first electronic device. When it is detected that a speech rate 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 of the collected audio content or the first application identifier or the first object identifier in the first application. 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 speech rate card. The user can also modify the preset audio attributes of the first preset card and save it to obtain a first speech rate card. The efficiency of users creating speech rate cards on electronic devices is improved.
[0031] 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 a 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.
[0032] 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 may receive a user operation and share the speech rate card with other devices. Other devices may receive the first audio attribute and use the first audio attribute. There is no need to receive a user operation to create a speech rate card, which can save user operations.
[0033] 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.
[0034] This method can adjust the audio properties of the audio content, and the device can play the audio content based on the audio properties. There is no need for the user to manually adjust the audio properties of the audio content, which not only saves user operations but also improves the diversity of audio playback of the device.
[0035] In combination with the second aspect, in a possible implementation manner, 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.
[0036] 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 a 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.
[0037] In combination with the second aspect, in a 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.
[0038] In combination with the second 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; 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.
[0039] 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.
[0040] In combination with the second aspect, in a 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.
[0041] 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 a 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.
[0042] 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.
[0043] 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, the preset audio attributes include one or more of the following: preset volume, preset timbre, 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 attribute; in response to the user operation of saving the first template card after modifying the preset audio attribute to the first audio attribute, obtains a first speaking rate card; or, in response to the user operation of saving the first template card, obtains a first speaking rate card, and the preset audio attribute is the same as the first audio attribute.
[0044] In a third aspect, the present application provides an audio playback method, the method comprising: a second electronic device receives a first audio attribute sent by a first electronic device, the first audio attribute is sent after the first electronic device responds 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 plays the first audio content based on the first audio attribute.
[0045] 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 may receive a user operation and share the speech rate card with other devices. Other devices may receive the first audio attribute and use the first audio attribute. There is no need to receive a user operation to create a speech rate card, which can save user operations.
[0046] 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.
[0047] This method can adjust the audio properties of the audio content, and the device can play the audio content based on the audio properties. There is no need for the user to manually adjust the audio properties of the audio content, which not only saves user operations but also improves the diversity of audio playback of the device.
[0048] In combination with the third aspect, in a 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 rate card based on the first audio attribute, and the second speaking rate card includes the first audio attribute.
[0049] In combination with the third aspect, in a possible implementation method, the second electronic device receives a 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, the first audio file includes a first audio content and a first audio attribute corresponding to the first audio content, and the first audio file is sent after the first electronic device responds to a 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.
[0050] 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.
[0051] 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.
[0052] In combination 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.
[0053] 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.
[0054] In a fifth aspect, the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a first electronic device, enable the first electronic device to execute an audio control method provided in any possible implementation of any of the above aspects.
[0055] In a sixth aspect, the present application provides a chip system, the chip system comprising one or more processors, the processor being used to call computer instructions so that a first electronic device executes an audio control method provided in any possible implementation of any of the above aspects.
[0056] In a seventh aspect, the present application provides a computer program product 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 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.
[0058] In a ninth aspect, the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a second electronic device, enable the second electronic device to execute an audio control method provided in any possible implementation of any of the above aspects.
[0059] In a tenth aspect, the present application provides a chip system, the chip system comprising one or more processors, the processor being used to call computer instructions so that a second electronic device executes an audio control method provided in any possible implementation of any of the above aspects.
[0060] In an eleventh aspect, the present application provides a computer program product comprising instructions, and when the above-mentioned computer program product is run on a second electronic device, the second electronic device executes an audio control method provided in any possible implementation of any of the above-mentioned aspects.
[0061] 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
[0062] Figure 1 A system architecture diagram provided by the present application is shown;
[0063] Figure 2 A schematic structural diagram of an electronic device 100 is shown;
[0064] Figure 3 shows a software structure block diagram of the electronic device 100;
[0065] Figure 4A-Figure 4R A schematic diagram showing an example of an electronic device 100 creating an audio generation speech rate card in a first application;
[0066] Figure 4S-4V A schematic diagram showing an electronic device 100 displaying a system-level audio generation speech rate card is exemplarily shown;
[0067] Figure 5 A flowchart of a method for generating and using audio to generate speech speed cards by an electronic device 100 provided in the present application;
[0068] Fig. 6A and Figure 6B A schematic diagram of an application-level audio playback speech rate card is shown;
[0069] Figure 6C-Figure 6E Schematic diagrams showing several system-level audio playback speech rate cards;
[0070] Figure 7A-7F A schematic diagram showing the electronic device 100 playing an audio file based on an audio playing speech speed card;
[0071] Figure 7G-7L A schematic diagram showing the electronic device 100 playing an audio file based on a system-level audio playback speech rate card;
[0072] Figure 8 A schematic flow chart of a method for the electronic device 100 to play audio based on audio playback speech speed cards is shown;
[0073] Figure 9A-9E A schematic diagram showing the electronic device 100 receiving a user operation to modify a second target audio attribute defined by an audio playback speech rate card;
[0074] Figures 10A-10F A schematic diagram showing the electronic device 100 receiving a user operation to view a speech rate card;
[0075] Figures 11A-11D A schematic diagram showing electronic device 100 sharing a speech speed card with electronic device 200;
[0076] Fig.12 A flow chart showing a method for electronic device 100 to share a speech speed card with electronic device 200 is shown;
[0077] Fig.13 A flowchart of an audio playback system provided in this application. DETAILED DESCRIPTION
[0078] The technical solutions in the embodiments of the present application will be described clearly and in detail below 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 of associated 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.
[0079] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0080] The term "user interface (UI)" in the following embodiments of the present application refers to a medium 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 operation 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.
[0081] The present application provides an audio property adjustment module, which can be integrated into an application or into a system of an electronic device.
[0082] When the audio attribute adjustment module is integrated into the application, the user can set the target audio attribute through the audio attribute adjustment module, so that the application can generate an audio file or play an audio file according to the target audio attribute set by the application. The target audio attribute may include but is not limited to: target volume, target speech speed, target timbre, etc.
[0083] 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 or play audio files according to the target audio attribute set by the system.
[0084] In some embodiments, in order to allow the user to view the target audio attributes set in the application or the target audio attributes set in the system, the electronic device 100 can display a speech rate card in the application or in the system of the electronic device, and the target audio attributes are displayed on the speech rate card. The user can modify the target audio attributes on the speech rate card, and the user can also share the target audio attributes on the speech rate card to other devices.
[0085] The following embodiments of the present application are described by taking an example in which a user can generate a speech rate card through an audio attribute adjustment module.
[0086] First, the technical terms involved in this application are explained.
[0087] 1. Speaking speed
[0088] The speech rate may refer to the speed at which the electronic device 100 plays the audio file.
[0089] In some embodiments, the time length of the audio file played within a unit time may be referred to as the speed at which the electronic device 100 plays the audio file.
[0090] 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.
[0091] 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 or 60s or 5 minutes or 1 hour.
[0092] Before the speech speed of the audio file is adjusted, the electronic device 100 plays the audio file at the standard speech speed.
[0093] For example, the standard speaking speed may be playing 2 seconds of audio content within 1 second.
[0094] 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.
[0095] 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, wherein the speeded up speech speed is faster than the standard speech speed.
[0096] Exemplarily, the electronic device 100 plays the audio file at an accelerated speaking speed and can play 4 seconds of audio content within 1 second.
[0097] 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, wherein the slowed speech speed is slower than the standard speech speed.
[0098] Exemplarily, the electronic device 100 plays the audio file at a slowed speech rate and can play 0.5 s of audio content within 1 s.
[0099] 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.
[0100] Before the speech speed of the audio file is adjusted, the electronic device 100 plays the audio file at the standard speech speed.
[0101] The standard speaking speed may be that the electronic device 100 plays audio content of 10 words within 1 second.
[0102] 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.
[0103] 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, wherein the speeded up speech speed is faster than the standard speech speed.
[0104] Exemplarily, the electronic device 100 plays the audio file at an accelerated speaking speed and can play the audio content of 20 words within 1 second.
[0105] 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, wherein the slowed speech speed is slower than the standard speech speed.
[0106] Exemplarily, the electronic device 100 plays the audio file at a slowed speed and can play audio contents of 5 words within 1 second.
[0107] The speed of speech can be described by speech speed gears, which may include but are not limited to low speed, medium-low speed, standard speech speed, medium speed, medium-high speed and high speed, among which low speed is slower than medium-low speed, medium-low speed is slower than standard speech speed, standard speech speed is slower than medium speed, medium speed is slower than medium-high speed, and medium-high speed is slower than high speed. The speech speed gears may be preset or may support user customization, which is not limited in this application.
[0108] 2. Speech Speed Cards
[0109] Speech rate cards can be divided into audio playback speech rate cards and audio generation speech rate cards.
[0110] 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.
[0111] 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 properties of the generated audio file, such as the volume, sound quality, and timbre. In this way, each time the electronic device 100 collects audio and generates an audio file, the audio file can be generated according to the audio properties set by the user based on the audio generation speech rate card, thereby improving the diversity of the audio properties of the audio files generated by the electronic device 100.
[0112] The 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 is applicable, the application identifier to which the audio generation speech rate card is applicable, and the object identifier within the application to which the audio generation speech rate card is applicable. 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.
[0113] The audio playback speed card is used to adjust the speed of the audio content to be played when the electronic device 100 acquires 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.
[0114] 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 the volume, sound quality, timbre and other audio attributes of the audio content to be played. 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.
[0115] The 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 applicable to the audio generation speech rate card, the application identifier applicable to the audio generation speech rate card, and the object identifier within the application applicable to the audio generation speech rate card. 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.
[0116] Optionally, the audio playback speech rate card and the audio generation speech rate card may be generated in the system settings of the electronic device 100 , and then the audio playback speech rate card and the audio generation speech rate card may be effective for one or more applications on the electronic device 100 at the same time.
[0117] Optionally, the audio playback speech rate card and the audio generation speech rate card may also be generated in the first application on the electronic device 100 , and then the audio playback speech rate card and the audio generation speech rate card may be effective for the first application on the electronic device 100 .
[0118] Figure 1 A system architecture diagram provided by the present application is shown.
[0119] like Figure 1 As shown, the system includes an electronic device 100 and an electronic device 200, and a communication connection is established between the electronic device 100 and the electronic device 200.
[0120] 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.
[0121] 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.
[0122] 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.
[0123] 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.
[0124] Optionally, the system may also only include the electronic device 100 .
[0125] In some embodiments, the electronic device 100 may share the audio playback speed card and / or the audio generation speed card to the electronic device 200, and the electronic device 200 may save the audio playback speed card and / or the audio generation speed card shared by the electronic device 100. The electronic device 200 may use the audio playback speed card and / or the audio generation speed card shared by the electronic device 100.
[0126] For example, when the electronic device 200 acquires 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 .
[0127] 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.
[0128] refer to Figure 2 , Figure 2 A schematic structural diagram of an electronic device 100 is shown.
[0129] 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, a vehicle-mounted device, a smart home device and / or a smart city device. The embodiments of the present application do not impose any special restrictions on the specific type of the electronic device. The following embodiments of the present application are described by taking the electronic device 100 as a mobile phone as an example.
[0130] 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.
[0131] It is to be understood that the structure illustrated in the embodiment 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 in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0132] 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 processor (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), etc. Different processing units may be independent devices or integrated into one or more processors.
[0133] 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.
[0134] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0135] In some embodiments, the processor 110 may include one or more interfaces. The interface 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, etc.
[0136] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0137] 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 achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0138] 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 to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0139] The UART interface is a universal serial data bus for asynchronous communication. The 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 generally 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 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0140] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0141] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the 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.
[0142] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0143] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic 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 in the above embodiments, or a combination of multiple interface connection methods.
[0144] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0145] 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 supplies power to the processor 110, the internal memory 121, the display screen 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 number, battery health status (leakage, impedance), etc. 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.
[0146] 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.
[0147] 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 the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0148] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., 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.
[0149] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent 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 the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a 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.
[0150] 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 integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0151] 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 the network and other devices through wireless communication technology. The wireless communication technology 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).
[0152] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0153] The display screen 194 is used to display images, videos, etc. The 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0154] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0155] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise and brightness of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0156] 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 optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted 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.
[0157] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0158] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0159] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0160] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0161] 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.
[0162] 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 unit potential level; universal flash storage (UFS), embedded multi media card (eMMC), etc. according to the storage specification.
[0163] 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.
[0164] 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 .
[0165] 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 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.
[0166] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0167] 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 arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0168] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0169] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0170] Microphone 170C, also called "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 microphone 170C to input the sound signal into 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 sound source, realize directional recording function, etc.
[0171] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0172] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0173] The gyro 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 gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro 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 gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0174] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0175] 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 leather 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 according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
[0176] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0177] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0178] 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 holds 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.
[0179] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0180] 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.
[0181] 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 a 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 avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0182] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0183] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
[0184] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0185] 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.
[0186] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0187] The SIM card interface 195 is used to connect a SIM card.
[0188] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system of the layered architecture is taken as an example to exemplify the software structure of the electronic device 100.
[0189] Figure 3 1 is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.
[0190] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
[0191] The application layer can include a series of application packages.
[0192] like Figure 3 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0193] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0194] like Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0195] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0196] 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.
[0197] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0198] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0199] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0200] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0201] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0202] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0203] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0204] The system library may 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.
[0205] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0206] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0207] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0208] A 2D graphics engine is a drawing engine for 2D drawings.
[0209] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0210] Next, how the electronic device 100 creates and uses the audio playback speech rate card and the audio generation speech rate card is described in detail with reference to the accompanying drawings.
[0211] First, it is introduced how the electronic device 100 generates and uses audio to generate speech rate cards.
[0212] 1. The electronic device 100 creates an audio generation speech rate card.
[0213] 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.
[0214] The audio attributes may include but are not limited to one or more of the following: speaking speed, volume, timbre, etc.
[0215] In some embodiments, the electronic device 100 can change the speech rate of the audio content collected by the electronic device 100 based on the speech rate specified in the audio generation speech rate card, for example, increase the speech rate of the audio content collected by the electronic device 100 or slow down the speech rate of the audio content collected by the electronic device 100.
[0216] 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.
[0217] 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, queen, loli, magnetic, sweet, child's voice, old female voice, old male voice, etc.
[0218] 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.
[0219] 1. The electronic device 100 creates a triggering timing for generating a speech rate card for audio.
[0220] Trigger timing 1: When collecting audio content, the electronic device 100 can prompt the user whether to create an audio generation speed card.
[0221] When the electronic device 100 collects audio content, if it is detected that the electronic device 100 has not saved 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.
[0222] 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.
[0223] 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. Then, an audio file is generated based on the audio content with adjusted speech speed and sent to the electronic device 200. User B can play the audio content with adjusted speech speed of user A through the electronic device 200.
[0224] For another example, in a recorder application, the user can choose to record audio. For example, the user can record audio content such as a teacher's lecture. In order to allow the user to 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, and 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 audio content after the speed is slowed down.
[0225] For another example, in a camera application, a user can choose to record a video, which may include audio content and image data. For another example, a user can watch a video of a teacher giving a lecture or other learning-related video. In order to allow the user to clearly hear the audio content in the video, when recording the video, 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.
[0226] Not limited to scenarios where audio content is collected, such as when collecting a user's voice message, recording audio, or recording video, the electronic device 100 can also prompt the user whether to create an audio generation speech rate card in other scenarios where audio content is collected, and this application does not limit this.
[0227] Trigger timing two: the electronic device 100 receives a user operation and actively creates an audio generation speed card.
[0228] The electronic device 100 can receive the user's operation and actively trigger the creation of an audio generation speech speed card. For example, the user can find the generation option of the audio generation speech speed card through the entrance of the audio generation speech speed card, set the audio properties of the audio generation speech speed card based on the generation option of the audio generation speech speed card, and save the audio generation speech speed card.
[0229] 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.
[0230] Exemplarily, the electronic device 100 may create an application-level audio generation speech rate card upon receiving a user operation within the first application.
[0231] Trigger timing three: the electronic device 100 can automatically create an audio generation speech rate card.
[0232] 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 an audio generation speech rate card to the user based on the user portrait. The audio generation speech rate card includes audio attributes obtained based on the user portrait.
[0233] For example, the electronic device 100 may monitor the audio properties of the voice messages sent by user A to one or more other users in the instant messaging application within a certain period of time to obtain a user portrait. The user portrait may include information such as the speech speed, volume, and timbre of the voice messages sent by user A to one or more other users in the instant messaging application. The electronic device 100 may automatically create an audio generation speech speed card of the chat voice type based on the user portrait, and recommend an audio generation speech speed card of the chat voice type to the user.
[0234] Not limited to the above triggering moments, the electronic device 100 may also prompt the user to create an audio generation speech rate card in other scenarios, and this application does not limit this.
[0235] 2. Scope of application of audio generation speed cards
[0236] (1) The audio generation speed card can be related to the audio type.
[0237] The audio generation speech rate card is related to the audio type, which means that one audio generation speech rate card is associated with one audio type.
[0238] Audio types include but are not limited to one or more of the following: chat voice, music, news, learning, entertainment, etc.
[0239] 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 speech speed cards. Alternatively, the first application on the electronic device 100 can use the audio of the same audio type to generate speech speed cards.
[0240] For example, the electronic device 100 stores audio generation speed cards of the chat voice type, and the attributes of the audio files defined by the audio generation speed cards of the chat voice type include but are not limited to: generating audio files of the chat voice type at medium or low speeds.
[0241] 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 generate a speech rate card based on the audio of the chat voice type to adjust the audio properties of the audio content output by the user, such as adjusting the audio content output by the user to medium or low speed, and obtain the audio file.
[0242] Exemplarily, 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 audio generation speed card of the chat voice class, for example, adjust the audio content output by the user to medium or low speed, and obtain the audio file.
[0243] (2) The audio generation speed cards can be related to the application.
[0244] The audio generation speech rate card is related to the application, which means that 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 in the same application can share the audio generation speech rate card of the application. The audio generation speech rate cards of different applications are different.
[0245] Exemplarily, the electronic device 100 is installed with a first application, and the electronic device 100 can receive a user operation to create an audio generation speech rate card of the first application. The electronic device 100 can obtain audio content through the first application. Before generating an audio file, the electronic device 100 can 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 an audio file.
[0246] Exemplarily, the electronic device 100 is installed with a second application, and the electronic device 100 can receive a user operation to create an audio generation speech rate card of 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 speech rate card of the second application, and obtain an audio file.
[0247] (3) Audio generation speed cards can be associated with objects within the application.
[0248] The audio generation speech speed card is related to the objects in the application, which means that one audio generation speech speed card is associated with one or more objects in an application. The object types in different applications are different. For example, in an instant messaging application, the objects in the application can be different contacts. In a music application, the objects in the application can be different types of music, such as jazz music, retro music, rock music, folk music, rap music, pop music, etc. The same application can be associated with multiple different audio generation speech speed cards.
[0249] In some embodiments, the object within the application may be a contact in an instant messaging application.
[0250] 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 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 and low speeds. The electronic device 100 can adjust the audio properties of the audio content output by user A based on the audio generated speech rate card corresponding to user B, for example, adjust the audio content output by user A to medium and low speeds, obtain an audio file, and then send the audio file to the contact user B.
[0251] 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 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 speech rate card corresponding to 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.
[0252] Based on the foregoing 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.
[0253] First, it is introduced how the audio generation speech rate card is generated in the first application on the electronic device 100.
[0254] For example, the first application may be an instant messaging application. The electronic device 100 may prompt the user to create an audio generation speech rate card when collecting audio content output by the user.
[0255] Figure 4A-Figure 4R The diagram exemplarily shows a schematic diagram of an electronic device 100 creating an audio generation speech rate card in a first application.
[0256] Figure 4A The main interface 4100 of the instant messaging application is shown. The main interface 4100 includes dialog boxes of multiple contacts. For example, a dialog box of the contact "Lisa", a dialog box of the contact "Alan", a dialog box of the contact "Henry", a dialog box of the contact "Lucy", etc. The electronic device 100 can receive a user operation to display a real-time chat interface of a certain contact.
[0257] For example, Figure 4A As shown, the electronic device 100 may receive an input operation (eg, a click) from a user for a dialog box of the contact "Lisa" in the user interface 4100. In response to the input operation from the user, the electronic device 100 may display Figure 4B User interface 4200 is shown. User interface 4200 is a real-time chat interface for contact "Lisa".
[0258] like Figure 4B As shown, the user interface 4200 includes multiple chat records. The 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 record the audio content input by the user through the voice input option 4201 and send the audio content input by the user to the contact "Lisa". The user can select one or more emoticons to send to the contact "Lisa" through the emoticon input option 4202. The user can send pictures, send location information, initiate voice / video calls, send files, etc. to the contact "Lisa" through the multi-function option 4203. The user can display the keyboard input box on the user interface 4200 by switching the keyboard option 4204.
[0259] For example, Figure 4B As shown, the electronic device 100 can receive a user input operation (such as a long press) for the voice input option 4201 in the user interface 4200, and in response to the user's input operation, the electronic device 100 can display Figure 4C Option 4205, option 4206, prompt message 4207 and voice collection area 4208 are shown. Among them, the user needs to long press the voice collection area 4208, and the electronic device 100 will collect the voice. When the user does not long press the voice collection area 4208, the electronic device 100 stops collecting the voice and sends the previously collected voice to the electronic device 200. The user can move the finger to option 4206 to make the electronic device 100 convert the previously collected voice into text and send it to the electronic device 200. The user can move the finger to option 4205 to make the electronic device 100 stop collecting and stop sending voice messages to the electronic device 200, and display Figure 4B The user interface 4200 is shown. The prompt information 4207 is used to prompt the user to release the finger to send a voice message to the electronic device 200.
[0260] After user A finishes outputting the voice, the user can stop pressing the voice collection area 4208. After the electronic device 100 obtains the audio content output by user A, 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 properties of the audio content output by user A.
[0261] Optionally, in other embodiments, when the electronic device 100 has already saved the audio generation speech rate card, the electronic device 100 may no longer prompt the user whether to create an audio generation speech rate card.
[0262] For example, Figure 4D As shown, before the electronic device 100 sends the audio content output by user A to the electronic device 200, the electronic device 100 may display Figure 4D The prompt bar 4209 shown. The prompt bar 4209 is used to prompt the user whether to create an audio generation speed card. The prompt bar 4209 includes a prompt message "You have not used the speed card yet, do you want to create an audio generation speed card?". The prompt bar 4209 also includes a yes option and a no option. The user can agree to create an audio generation speed card through the yes option. The user can also not create an audio generation speed card through the no option.
[0263] For example, Figure 4D As shown, the electronic device 100 can receive a user input operation (such as a single click) for an option in the prompt bar 4209, and in response to the user's input operation, the electronic device 100 can display Figure 4E The prompt bar 4210 shown. The user can set the audio properties of the audio generation speed card in the prompt bar 4210.
[0264] For example, Figure 4E As shown, the prompt bar 4210 includes multiple audio property setting items, which may include but are not limited to: classification options, scope options, speech speed options, volume options, and timbre options, etc. Among them, the user can set the audio type of the audio generation speech speed card through the classification option, the user can set the audio generation speech speed card to take effect in one or more or all applications through the scope option, the user can set the speech speed of the audio limited by the audio generation speech speed card through the speech speed option, the user can set the volume of the audio limited by the audio generation speech speed card through the volume option, and the user can set the timbre of the audio limited by the audio generation speech speed card through the timbre option.
[0265] For example, Figure 4EAs shown, the electronic device 100 can receive a user input operation (such as a click) for the classification option in the prompt bar 4210, and in response to the user's input operation, the electronic device 100 can display Figure 4F The prompt bar 4211 shown. The prompt bar 4211 includes multiple audio type 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 more music type options, which are not limited in this application.
[0266] For example, Figure 4F and Figure 4G As shown, the electronic device 100 can receive an input operation (e.g., a single click) from the user for the voice chat option in the prompt bar 4211. In response to the user's input operation, the electronic device 100 can select the voice chat option. Afterwards, the electronic device 100 can receive an input operation (e.g., a single click) from the user for the confirmed option in the prompt bar 4211. In response to the user's input operation, the electronic device 100 can display Figure 4H Prompt bar 4212 shown. Figure 4H The prompt bar 4212 shown is Figure 4E The prompt bar 4210 shown is similar, except that the classification option in the prompt bar 4212 shows that the audio type is voice chat type, to indicate that the audio type applicable to the audio generation speed card is voice chat audio.
[0267] according to Figure 4E-Figure 4G In a similar way, users can set the applicable scope, speech speed, volume, and timbre options of the audio generation speech speed card in turn.
[0268] For example, Fig. 4I As shown, after the user sets the applicable scope, speech speed, volume, timbre and other attributes of the audio generation speech speed card in sequence, the electronic device 100 can display Fig. 4I Prompt bar 4213 shown. Prompt bar 4213 includes multiple audio attributes of the audio generation speech rate card, for example, the audio type applicable to the audio generation speech rate card is voice chat, the application scope of the audio generation speech rate card is limited to instant messaging applications, the audio speech rate limited by the audio generation speech rate card is medium and low speed, the audio volume limited by the audio generation speech rate card is 50% of the maximum volume on the electronic device, and the audio timbre limited by the audio generation speech rate card is original sound. Afterwards, the electronic device 100 can receive the user's input operation (such as a single click) for the save option in the prompt bar 4213, and in response to the user's input operation, the electronic device 100 can save. Fig. 4I The audio shown generates the speaking speed card.
[0269] In some embodiments, after the electronic device 100 receives the user's input operation for the option in the prompt bar 4209, the electronic device 100 can determine the 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 of voice chat audio can be Figure 4H In this way, the electronic device 100 can directly obtain the audio generation speed card template based on the audio type matching, without the user having to follow Figure 4E-4H The steps shown in the figure set the audio attributes of the audio generation speech speed card, which can save user operations. The user can choose to use the preset audio attributes corresponding to the audio generation speech speed card template as the target audio attributes of the audio generation speech speed card set by the user, and the user can also modify the preset audio attributes corresponding to the audio generation speech speed card template to obtain the target audio attributes of the audio generation speech speed card.
[0270] Save in electronic device 100 Fig. 4I After the audio generation speech rate card is displayed, the electronic device 100 can adjust the audio properties of the audio content collected by the electronic device 100 based on the audio properties defined in the audio generation speech rate card. In the process of adjusting the audio properties of the audio content collected by the electronic device 100, the electronic device 100 can display Figure 4J Prompt information 4214 is shown, and prompt information 4214 is used to prompt the user that the audio properties of the audio content are being adjusted.
[0271] 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 Figure 4K The prompt bar 4215 shown is used to prompt the user whether to adopt the audio content after the audio properties are adjusted.
[0272] like Figure 4K As shown, the 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 is adjusted through the play option 4216, so that the user can confirm the effect of the audio content after the audio attribute is adjusted. The user can generate an audio file based on the audio content after the audio attribute is adjusted by using the voice option 4217 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 is adjusted by not using the voice option 4218 and send it to the electronic device 200.
[0273] For example, Figure 4K As shown, the electronic device 100 may receive an input operation (eg, a click) from a user for using the voice option 4217 in the prompt bar 4215. In response to the input operation from the user, the electronic device 100 may display Figure 4L User interface 4300 is shown. User interface 4300 and Figure 4B The user interface 4200 is similar, except that the user interface 4300 includes a voice message identifier 4301, which is used to indicate a voice message that the electronic device 100 has recently sent to the electronic device 200. The duration of the voice message is 4 seconds.
[0274] For example, Figure 4M As shown, the electronic device 100 may receive an input operation (eg, a click) from a user for not using the voice option 4218 in the prompt bar 4215. In response to the input operation from the user, the electronic device 100 may display Figure 4N User interface 4400 is shown. User interface 4400 is Figure 4B The user interface 4200 is similar, except that the user interface 4400 includes a voice message identifier 4401, which is used to indicate a voice message that the electronic device 100 has recently sent to the electronic device 200. The duration of the voice message is 2 seconds.
[0275] because Figure 4L The voice message sent by the electronic device 100 to the electronic device 200 is a voice message with a slowed speech speed. Figure 4N The voice message sent by the electronic device 100 to the electronic device 200 is a voice message without adjusting the speech speed. After the speech speed is slowed down, the electronic device needs to spend longer time to play the audio message. Figure 4L The duration of the voice message shown in Figure 4N The duration of the voice message is shown in .
[0276] Optionally, after the electronic device 100 generates and saves the audio generation speech speed 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 speed card and send it out without displaying the audio content. Figure 4D-Figure 4N The information described.
[0277] Optionally, if the electronic device 100 has 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 defined in the audio generation speech rate card.
[0278] In some embodiments, the electronic device 100 receives a user's Fig. 4I After the input operation of the save option in the prompt bar 4213 shown, the electronic device 100 can save Fig. 4I The audio shown generates the speaking speed card.
[0279] Optionally, the electronic device 100 may Fig. 4I The audio generation speech speed card shown is displayed in the instant messaging application, and the user can view and modify the audio generation speech speed card in the instant messaging application.
[0280] For example, Fig.4O As shown, the electronic device 100 may receive an input operation (eg, a click) from a user for the "My" option in the user interface 4100. In response to the input operation from the user, the electronic device 100 may display Figure 4P The user interface 4500 shown may include multiple setting items, such as a service setting item, a favorite setting item, an expression setting item, a speech rate card setting item, and an application setting item, etc. 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.
[0281] like Figure 4P As shown, the electronic device 100 receives an input operation (such as a single click) from a user for a speech rate card setting item in the user interface 4500. In response to the user's input operation, the electronic device 100 may display Figure 4Q The user interface 4600 shown includes an audio generation speech rate card 4601. The audio generation speech rate card 4601 defines that the audio type that can use the card to adjust the audio properties is chat voice audio. The audio generation speech rate card 4601 defines that the card can adjust the speech rate of the audio content to medium and low speed. The audio generation speech rate card 4601 defines that the card can adjust the volume of the audio content to 40% of the maximum volume of the electronic device. The audio generation speech rate card 4601 defines that the 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 audio generation speech rate card 4601 is created in the instant messaging application, and is limited to the chat voice audio in the instant messaging application. All can use the audio generation speech rate card 4601.
[0282] The audio generation speech rate card 4601 defines the audio type applicable in the instant messaging application.
[0283] In other embodiments, the audio generation speech rate card can also limit the applicable contact objects in the instant messaging application. Figure 4PAs shown, the electronic device 100 receives an input operation (such as a single click) from a user for a speech rate card setting item in the user interface 4500. In response to the user's input operation, the electronic device 100 may display Figure 4R The user interface 4700 shown in FIG. 4 includes an audio generation speech rate card 4701, such as Figure 4R As shown, 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, and 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. The audio generation speech rate card 4701 limits the speech rate of the audio content to be adjusted to medium and low speeds, the audio generation speech rate card 4701 limits the card to adjust the volume of the audio content to 40% of the maximum volume of the electronic device, and the audio generation speech rate card 4701 limits the card to set the timbre of the audio content to the original sound, that is, the timbre of the audio content is not adjusted. The audio generation speech rate card 4701 can be used on the electronic device 100 only when sending chat voice audio to the contact "Lisa" in the instant messaging application.
[0284] It should be noted that Figure 4Q-Figure 4R Only two display styles of audio generation speech speed cards are shown as examples. Audio generation speech speed cards can also have other display styles, which are not limited in this application.
[0285] In some embodiments, the above Figure 4A-Figure 4I The application-level audio generation speech rate card created by the method may also be a system-level audio generation speech rate card. The present application does not limit the specific implementation of how the electronic device 100 creates the system-level audio generation speech rate card.
[0286] Optionally, after the electronic device 100 receives a user operation to create and save a system-level audio generation speech rate card, the electronic device 100 may display the system-level audio generation speech rate card on the desktop, for example, on the negative one screen.
[0287] like Figure 4SAs shown, the electronic device 100 displays the main desktop of the electronic device 100, and the main desktop of the electronic device 100 includes icons of multiple applications, such as icons of clock applications, icons of calendar applications, icons of smart life applications, icons of memo applications, icons of game applications, icons of recipe applications, icons of recorder applications, icons of calculator applications, icons of video applications, icons of weather applications, icons of browser applications, icons of map applications, icons of music applications, icons of sports and health applications, etc. A page indicator is also displayed below the icons of 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 a dock bar (Dock bar) is displayed below the page indicator. Among them, the tray area includes multiple tray icons, such as a camera application Internet icon, a contact application Internet icon, a phone application icon, and an information application icon. The tray area remains displayed when the page is switched. 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.
[0288] like Figure 4S As shown, the electronic device 100 can receive a sliding operation (such as a right sliding operation) performed by a user on the main desktop, and in response to the sliding operation of the user, the electronic device 100 can display Figure 4T The user interface 4800 shown is the negative first screen of the electronic device 100 .
[0289] like Figure 4T As shown, 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 defines that the audio type that can use the card to adjust the audio properties is chat voice audio, the audio generation speech rate card 4801 defines that the card can adjust the speech rate of the audio content to medium and low speed, the audio generation speech rate card 4801 defines that the card can adjust the volume of the audio content to 40% of the maximum volume of the electronic device, and the audio generation speech rate card 4801 defines that the 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 audio generation speech rate card 4801 is created in the system settings of the electronic device 100, and the chat voice audio in multiple applications on the electronic device 100 can use the audio generation speech rate card 4801.
[0290] In other embodiments, the audio generation speech speed card can also limit the applicable application. The audio generation speech speed card can be applicable to one application, multiple applications, or all applications on the electronic device 100.
[0291] like Figure 4UAs shown, 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 application that can use the card to adjust the audio properties to only instant messaging applications, the audio generation speech rate card 4802 limits the card to adjust the speech rate of the audio content to medium and low speeds, the audio generation speech rate card 4802 limits the card to adjust 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 set the timbre of the audio content to the original sound, that is, the timbre of the audio content is not adjusted. The audio generation speech rate card 4802 can be used for all types of audio in the instant messaging application on the electronic device 100.
[0292] In other embodiments, the audio generation speech rate card may also limit applicable applications and audio types within the application.
[0293] like Figure 4V As shown, the negative first screen of the electronic device 100 includes an audio generation speech rate card 4803 and other situational smart cards. The audio generation speech rate card 4803 limits the application that can use the card to adjust the audio properties to only instant messaging applications, the audio generation speech rate card 4803 limits the audio type that can use the card to adjust the audio properties to chat voice audio, the audio generation speech rate card 4803 limits the card to adjust the speech rate of the audio content to medium and low speeds, the audio generation speech rate card 4803 limits the card to adjust the volume of the audio content to 40% of the maximum volume of the electronic device, and the audio generation speech rate card 4803 limits the card to set the timbre of the audio content to the original sound, that is, the timbre of the audio content is not adjusted. The audio generation speech rate card 4803 can be used for the chat voice audio in the instant messaging application on the electronic device 100.
[0294] 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, and this application does not limit this.
[0295] The speech rate card is not limited to being displayed in the negative one screen. The electronic device 100 can also display the speech rate card in other areas, such as the pull-down notification bar, and the present application does not limit this.
[0296] It should be noted that Figure 4A-4V Only several display styles of audio generation speech speed cards are shown as examples. Audio generation speech speed cards can also have other display styles, which are not limited in this application.
[0297] Figure 5 A flowchart of a method for an electronic device 100 to generate and use audio to generate speech rate cards is provided in the present application.
[0298] S501: The electronic device 100 and the electronic device 200 establish a communication connection.
[0299] S502: The electronic device 100 receives and responds to a user operation and collects audio content.
[0300] The audio content may be voice output by a user, or may be audio output by an external device obtained by recording or shooting a video.
[0301] S503: The electronic device 100 needs to determine whether an audio generation speech rate card is stored on the electronic device 100.
[0302] 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.
[0303] When it is determined that an audio generation speech rate card is saved, the electronic device 100 can adjust the audio properties of the audio content collected by the electronic device 100 based on the audio generation speech rate card, so that the target audio properties of the audio file generated by the electronic device 100 are obtained based on the audio properties set by the user. That is, S504 is executed.
[0304] If it is determined that no audio generation speech rate card is saved, the electronic device 100 can prompt the user to create an audio generation speech rate card, and receive the user's operation to create and save the audio generation speech rate card. Afterwards, the electronic device 100 can adjust the audio properties of the audio content collected by the electronic device 100 based on the audio generation speech rate card, so that the target audio properties of the audio file generated by the electronic device 100 are obtained based on the audio properties set by the user. That is, S505 is executed.
[0305] 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 one of the following methods.
[0306] Method 1: The electronic device 100 can determine the audio type to which the audio content collected by the electronic device 100 belongs, and determine whether an audio generation speech speed card is stored on the electronic device 100 based on the audio type.
[0307] 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 to which the audio content collected by the electronic device 100 belongs.
[0308] Method 2: The electronic device 100 can determine the application to which the audio content collected by the electronic device 100 belongs, and determine whether an audio generation speech rate card is saved on the electronic device 100 based on the identification of the application.
[0309] Based on the above description, the audio generation speech rate card can be associated with the 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.
[0310] 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.
[0311] 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.
[0312] S504: The electronic device 100 obtains an audio generation speed card.
[0313] 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.
[0314] When it is determined that the audio generation speech rate card is stored on the electronic device 100 , the electronic device 100 may obtain the audio generation speech rate card.
[0315] S505. The electronic device 100 prompts the user to create an audio generation speech rate card.
[0316] 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.
[0317] For example, the electronic device 100 may display Figure 4D The prompt bar 4209 shown is used to prompt the user whether to create an audio generation speed card.
[0318] S506: The electronic device 100 needs to confirm whether an audio generation speech rate card has been created.
[0319] 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.
[0320] 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.
[0321] 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.
[0322] In some embodiments, the electronic device 100 may not execute S505 and S506. If it is determined in S503 that the electronic device 100 does not store the audio generation speech rate card, the electronic device 100 may directly execute S507.
[0323] 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 different audio generation speech rate card templates correspond to different preset audio attributes. 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 follow Figure 4E-4H The steps shown in the figure set the audio attributes of the audio generation speech speed card, which can save user operations. The user can choose to use the preset audio attributes corresponding to the audio generation speech speed card template as the target audio attributes of the audio generation speech speed card set by the user, and the user can also modify the preset audio attributes corresponding to the audio generation speech speed card template to obtain the target audio attributes of the audio generation speech speed card.
[0324] S507: The electronic device 100 generates an audio file based on the default audio attributes of the audio content.
[0325] 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.
[0326] 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.
[0327] 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.
[0328] The first target audio attribute may include one or more of the following: a first target speech rate, a first target volume, a first target timbre, etc.
[0329] The audio file may include the audio content adjusted according to the first target audio attribute. The audio file may also include the first target audio attribute. The audio file may also include an audio attribute adjustment identifier, etc.
[0330] Exemplarily, the first target speech rate may also be Figure 4Q The first target volume can also be Figure 4Q The first target tone can also be 40% of the maximum volume of the electronic device shown. Figure 4Q Original soundtrack shown.
[0331] S509 : The electronic device 100 sends the audio file to the electronic device 200 via the communication connection.
[0332] 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.
[0333] For example, the audio file may be Figure 4K The voice message corresponding to voice message identifier 4301 sent to contact "Lisa" is shown.
[0334] S510: The electronic device 200 plays the audio content in the audio file.
[0335] After the electronic device 200 acquires the audio file through the communication connection, the electronic device 100 can play the audio content in the audio file.
[0336] In some embodiments, S509 - S510 may not be executed, and the electronic device 100 may simply save the generated audio file locally on the electronic device 100 .
[0337] In a possible implementation, the audio file may be carried with 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, and the electronic device 200 may directly play the audio content in the audio file based on the audio attribute adjustment identifier, and the audio content in the audio file is the audio content that has been adjusted based on the first target audio attribute.
[0338] 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 may obtain locally whether there is an audio playback speech rate card. In the case where the electronic device 200 stores an audio playback speech rate card locally, the electronic device 200 may adjust the audio attributes of the audio content in the audio file based on the second target audio attributes defined by the audio playback speech rate card, and play the audio content adjusted based on the second target audio attributes. In the case where the electronic device 200 does not store an audio playback speech rate card locally, the electronic device 200 may 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 attribute. For how the electronic device 200 plays audio content, please refer to Figure 7A-7B and Figure 8 Description in the Examples.
[0339] In some embodiments, the electronic device 100 may also receive a user operation to modify the first target audio attribute defined by the audio generation speech rate card. For details, please refer to Figure 9A-9E The description of modifying the second target audio attribute defined by the audio playback speech rate card introduced in the embodiment will not be repeated in this application.
[0340] In some embodiments, audio generation speech speed cards can also be shared between devices. For details, please refer to Figures 11A-11D and Fig.12 The description of how the audio playback speech speed cards introduced in the embodiment are shared between devices will not be repeated in this application.
[0341] Next, it is introduced how the electronic device 100 creates and uses audio playback speed cards.
[0342] 2. The electronic device 100 creates an audio playback speed card.
[0343] 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.
[0344] 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.
[0345] In some embodiments, the electronic device 100 can change the speech rate of the audio content in the audio file to be played based on the second target speech rate defined in the audio playback speech rate card, for example, increasing the speech rate of the audio content in the audio file to be played or slowing down the speech rate of the audio content in the audio file to be played.
[0346] 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.
[0347] 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 specified in the audio playback speech rate card. The timbre may include but is not limited to; original voice, uncle, girl, shota, queen, loli, magnetic, sweet, children's voice, old female voice, old male voice, etc.
[0348] Optionally, the audio playback speed card can also simultaneously change any two or more of the speed, volume, and timbre of the audio content in the audio file to be played.
[0349] 1. The electronic device 100 creates a triggering timing for an audio playback speech rate card.
[0350] Trigger 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 speed card.
[0351] Before receiving a user operation to play audio content, if the electronic device 100 detects that the electronic device 100 has no audio playback speech rate card saved, the electronic device 100 may prompt the user whether to create and use the audio playback speech rate card.
[0352] When playing a contact's voice message, a recording file, or a video, the electronic device 100 can prompt the user whether to create an audio playback speed card.
[0353] 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 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 playing 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. Then, the audio file is played based on the audio content with the adjusted speech speed and sent to the electronic device 200. User B can play the audio content with the adjusted speech speed of user A through the electronic device 200.
[0354] 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. In order to allow the user to 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, and the user can choose to slow down the speed of the audio content output by the user. Then, the audio file is played based on the audio content with the slowed speed.
[0355] For another example, in a camera application, a user can choose to record a video, which may include audio content and image data. For another example, a user can watch a video of a teacher giving a lecture or other learning-related video. In order to allow the user to clearly hear the audio content in the video, when recording the video, the user can choose to slow down the speed of the audio content output by the user. Then, the audio file is played based on the slowed-down audio content.
[0356] Not limited to scenarios where audio content is collected, such as when collecting a user's voice message, recording audio, or recording video, the electronic device 100 can also prompt the user whether to create an audio playback speech speed card in other scenarios where audio content is collected, and this application does not limit this.
[0357] Trigger timing two: the electronic device 100 receives a user operation and actively creates an audio playback speed card.
[0358] The electronic device 100 can receive the user's operation and actively trigger the creation of an audio playback speech speed card. For example, the user can find the play option of the audio playback speech speed card through the entrance of the audio playback speech speed card, set the audio properties of the audio playback speech speed card based on the play option of the audio playback speech speed card, and save the audio playback speech speed card.
[0359] Exemplarily, the electronic device 100 may create a system-level audio playback speech rate card upon receiving a user operation in a system setting application.
[0360] Exemplarily, the electronic device 100 may create an application-level audio playback speed card upon receiving an operation of the user within the first application.
[0361] Trigger timing three: the electronic device 100 can automatically create an audio playback speed card.
[0362] 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 an audio playback speed card to the user based on the user profile. The audio playback speed card includes audio attributes obtained based on the user profile.
[0363] For example, the electronic device 100 may monitor the audio properties of voice messages sent by one or more other users in the instant messaging application of the electronic device 100 within a certain period of time to obtain a user portrait. The user portrait may include information such as the speech speed, volume, and timbre of the voice messages sent by one or more other users in the instant messaging application. The electronic device 100 may automatically create an audio playback speech speed card of the chat voice class based on the user portrait, and recommend an audio playback speech speed card of the chat voice class to the user.
[0364] Not limited to the above triggering moments, the electronic device 100 may also prompt the user to create an audio playback speed card in other scenarios, and this application does not limit this.
[0365] 2. Scope of application of audio playback speed cards.
[0366] (1) Audio playback speed cards can be related to the audio type.
[0367] The audio playback speech rate card is related to the audio type, which means that one audio playback speech rate card is associated with one audio type.
[0368] Audio types include but are not limited to one or more of the following: chat voice, music, news, learning, entertainment, etc.
[0369] 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 play the 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.
[0370] For example, the electronic device 100 stores audio playback speed cards of the chat voice type, and the attributes of the audio files defined by the audio playback speed cards of the chat voice type include but are not limited to: playing the audio files of the chat voice type at medium or low speeds.
[0371] 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, such as 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.
[0372] Exemplarily, 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 speech speed card of the chat voice class, for example, adjust the audio content in the audio file according to medium and low speed, and play the audio content in the audio file at medium and low speed.
[0373] (2) Audio playback speed cards can be related to the application.
[0374] The audio playback speech speed card is related to the application, which means that one audio playback speech 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 speech speed card. The same application can include multiple types of audio, and multiple types of audio in the same application can share the audio playback speech speed card of the application. The audio playback speech speed cards of different applications are different.
[0375] Exemplarily, a first application is installed on the electronic device 100, and the electronic device 100 can receive a user operation to create an audio playback speech rate card of the first application. The electronic device 100 can obtain an audio file through the first 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 first application based on the audio playback speech rate card of the first application, and play the audio content with the adjusted audio properties.
[0376] Exemplarily, the electronic device 100 is installed with a second application, and the electronic device 100 can receive a user operation to create an audio playback speech rate card of 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 speech rate card of the second application, and play the audio content with the adjusted audio properties.
[0377] (3) Audio playback speed cards can be associated with objects within the application.
[0378] In some embodiments, the object within the application may be a contact in an instant messaging application.
[0379] Exemplarily, an instant messaging application is installed on the electronic device 100, and the electronic device 100 can receive an operation of the user in the first application to play an 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 speech rate card corresponding to the contact user B. The audio playback speech rate card corresponding to user B can limit the speech rate of the audio file to medium and low speeds. 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 speech rate card corresponding to user B, for example, adjust the speech rate of the audio content sent by user B to medium and low speeds, and then play the audio content in the audio file sent by contact user B at medium and low speeds.
[0380] Exemplarily, an instant messaging application is installed on the electronic device 100, and the electronic device 100 can receive an operation of the user in the first application to play an 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 speech speed card corresponding to the contact user C. The audio playback speech speed card corresponding to user C can limit the speech 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 speech speed card corresponding to user C, for example, adjust the speech 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.
[0381] 3. The electronic device 100 creates and saves the audio playback speed card.
[0382] 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.
[0383] 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.
[0384] How the electronic device 100 receives a user operation to create an audio playback speech rate card is similar to how the electronic device 100 receives a user operation to create an audio generation speech rate card. Figure 4A-Figure 4R The description in the embodiments will not be repeated in this application.
[0385] Fig. 6A and Figure 6B A schematic diagram of an application-level audio playback speech rate card is shown.
[0386] refer to Figure 4O-Figure 4P As described in the embodiment, the electronic device 100 may receive a user operation to view an audio playback speech rate card at the application level.
[0387] Fig. 6A An audio playback speech rate card 6001 is shown. The audio playback speech rate card 6001 defines that the audio type that can use the card to adjust the audio properties is chat voice audio, the audio playback speech rate card 6001 defines that the card can adjust the speech rate of the audio content to medium and low speeds, the audio playback speech rate card 6001 defines that the card can adjust the volume of the audio content to 40% of the maximum volume of the electronic device, and the audio playback speech rate card 6001 defines that the 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 speech rate card 6001 only when playing chat voice audio in the instant messaging application.
[0388] Figure 6B An audio playback speech rate card 6002 is shown. The audio playback speech rate card 6002 defines that the audio type that can use the card to adjust the audio properties is chat voice audio, the audio playback speech rate card 6002 defines that the application that can use the card to adjust the audio properties is an instant messaging application, and the audio playback speech rate card 6002 defines that the audio properties of the audio content can only be adjusted when playing a voice message sent by the contact "Lisa" in the instant messaging application. The audio playback speech rate card 6002 defines that the speech rate of the audio content can be adjusted to medium and low speeds, the audio playback speech rate card 6002 defines that the card can adjust the volume of the audio content to 40% of the maximum volume of the electronic device, and the audio playback speech rate card 6002 defines that the 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 speech rate card 6002 only when playing the chat voice audio sent by the contact "Lisa" in the instant messaging application.
[0389] Figure 6C-Figure 6E A schematic diagram showing several system-level audio playback speech rate cards.
[0390] Figure 6CAn audio playback speech rate card 6003 is shown. The audio playback speech rate card 6003 defines that the audio type that can use the card to adjust the audio properties is music, the audio playback speech rate card 6003 defines that the card can adjust the speech rate of the audio content to medium-high speed, the audio playback speech rate card 6003 defines that the card can adjust the volume of the audio content to 50% of the maximum volume of the electronic device, and the audio playback speech rate card 6003 defines that the 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 speech rate card 6001 when playing audio content of the audio class in all applications on the electronic device 100.
[0391] Fig.6D An audio playback speech rate card 6004 is shown. The audio playback speech rate card 6004 defines that the application that can use the card to adjust the audio properties is the Huawei video application, the audio playback speech rate card 6004 defines that the card can adjust the speech rate of the audio content to medium-high speed, the audio playback speech rate card 6004 defines that the card can adjust the volume of the audio content to 50% of the maximum volume of the electronic device, and the audio playback speech rate card 6004 defines that the 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 speech rate card 6004 when playing audio content of the audio class in the Huawei video application on the electronic device 100.
[0392] Fig. 6E An audio playback speech speed card 6005 is shown. The audio playback speech speed card 6005 limits the application that can use the card to adjust the audio properties to the Huawei video application, and is limited to the learning audio in the Huawei video application. The audio playback speech speed card 6005 limits the card to adjust the speech speed of the audio content to medium and high speed. The audio playback speech speed card 6005 limits the card to adjust the volume of the audio content to 50% of the maximum volume of the electronic device. The audio playback speech speed card 6005 limits the card to 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 speech speed card 6004 when playing the learning audio in the Huawei video application on the electronic device 100.
[0393] It should be noted that Figure 6A-6E Only several display styles of audio playback speech speed cards are shown as examples. The audio playback speech speed cards can also have other display styles, which are not limited in this application.
[0394] 4. The electronic device 100 uses audio to play the speech speed card.
[0395] 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 properties of the audio content based on the second target audio properties defined in the audio playback speech rate card, and play the audio content with modified audio properties.
[0396] Figure 7A-7G A schematic diagram showing the electronic device 100 playing an audio file based on an application-level audio playback speech rate card.
[0397] in, Figure 7A-7C A schematic diagram showing the electronic device 100 playing an audio file based on an application-level audio playback speech rate card.
[0398] For example, Fig. 7A As shown, user interface 7100 is a real-time chat interface of contact "Lisa". User interface 7100 includes multiple chat records. The multiple chat records include a voice message identifier 7101, which is used to indicate a voice message recently sent by contact "Lisa". The user can click on the voice message identifier 7101 to play the voice message.
[0399] like Fig. 7A As shown, the electronic device 100 can receive a user input operation (eg, a single click) for the voice message identifier 7101, and in response to the user's input operation, the electronic device 100 can play the voice message.
[0400] In some embodiments, before the electronic device 100 plays the voice message, 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 Figure 7B The prompt information 7102 shown includes "The audio playback speech speed card has been matched, do you want to use it?" The prompt information 7102 also includes a yes option and a no option, wherein the user can confirm the use of the audio playback speech speed card through the yes option, and the user can also refuse to use the audio playback speech speed card through the no option.
[0401] For example, Figure 7B As shown, 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 speech rate card, and modify the audio attributes of the voice message based on the audio attributes specified by the audio playback speech rate card to obtain a voice message with modified audio attributes. The electronic device 100 then plays the voice message with modified audio attributes.
[0402] For example, in order to prompt that the voice message played by the electronic device 100 is a result of the audio attribute of the voice message being modified based on the audio playback speech rate card, the electronic device 100 may display Figure 7C The prompt information 7103 shown is used to remind the user that the audio playback speed card is currently being used. The user can also stop the electronic device 100 from displaying the prompt information 7103 by clicking the "no more reminder" option in the prompt information 7103.
[0403] In some embodiments, the electronic device 100 may receive a user input operation (e.g., a single click) for a 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.
[0404] 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.
[0405] In some embodiments, before the electronic device 100 plays 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.
[0406] For example, Fig.7D As shown, the electronic device 100 can receive a user input operation (such as a long press operation) for the voice message identifier 7101, and in response to the user's input operation, the electronic device 100 can display Fig. 7E The selection bar 7110 shown in the figure shows a plurality of voice playback options, for example, the plurality of voice playback options may include a handset playback suspension, a favorite option, a text conversion option, a delete option, a reminder option, a speech speed card option, etc. In some embodiments, if the instant messaging application does not set an audio playback speech speed card, the speech speed card option may not be displayed in the selection bar 7110.
[0407] like Fig. 7E As shown, the electronic device 100 can receive the user's input operation (such as 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 to obtain a voice message with modified audio attributes, and 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 through the speech rate card option in the selection bar 7110, and this application will not be repeated here.
[0408] 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 Figure 7C The prompt information 7103 shown is used to prompt the user that the electronic device 100 is using the audio to play the speech speed card.
[0409] In other embodiments, Fig.7D As shown, the electronic device 100 can receive a user input operation (such as a long press operation) for the voice message identifier 7101, and in response to the user's input operation, the electronic device 100 can display Figure 7F The selection bar 7140 shown in the figure shows a plurality of voice playback options, for example, the plurality of voice playback options may include a handset playback suspension, a favorite option, a text conversion 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.
[0410] like Figure 7F As shown, the electronic device 100 can receive the user's input operation (such as 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 a modified speech rate, and the electronic device 100 then plays the speech message with a 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 adjusting the speech rate option, the volume option, or the timbre option in the selection bar 7140, and this application will not be repeated here.
[0411] in, Figure 7G-7L A schematic diagram showing the electronic device 100 playing an audio file based on a system-level audio playback speech rate card.
[0412] For example, Figure 7G As shown, the electronic device 100 can display a music playing interface 7200. The music playing interface 7200 includes a music name, a start playing music option, a switch to play the previous music option, a switch to play the next music option, a play progress bar, and the like.
[0413] like Figure 7G As shown, the electronic device 100 can receive a user input operation (eg, a single click) for starting to play a music option, and in response to the user's input operation, the electronic device 100 can play music.
[0414] 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 Figure 7H The prompt information 7102 shown includes "The audio playback speech speed card has been matched, do you want to use it?" The prompt information 7102 also includes a yes option and a no option, wherein the user can confirm the use of the audio playback speech speed card through the yes option, and the user can also refuse to use the audio playback speech speed card through the no option.
[0415] For example, Figure 7H As shown, 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 speech rate card, and modify the audio attributes of the music based on the audio attributes specified by the audio playback speech rate card to obtain the music with modified audio attributes. The electronic device 100 then plays the music with modified audio attributes.
[0416] In some embodiments, in order to prompt that the music played by the electronic device 100 is based on the audio playing speech speed card to modify the audio properties of the music, the electronic device 100 may display Fig.7I The prompt information 7103 shown is used to remind the user that the audio playback speed card is currently being used. The user can also stop the electronic device 100 from displaying the prompt information 7103 by clicking the "no more reminder" option in the prompt information 7103.
[0417] In some embodiments, the electronic device 100 may receive a user input operation (e.g., a single click) for a 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 attributes of the music.
[0418] In some embodiments, in order to prompt that the music played by the electronic device 100 is based on the audio playing speech speed card to modify the audio properties of the music, the electronic device 100 may display Figure 7J The prompt information 7120 shown is used to prompt the user that the audio playback speed card is currently being used. Optionally, the electronic device 100 can also receive an input operation (such as a single click) from the user with respect to 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 Figure 7KThe prompt bar 7121 shown in the figure, the user can 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., which will not be repeated in this application. The prompt information 7120 is not limited to the representation method in the figure, and other graphics or controls can also be used to indicate that a certain audio playback card is currently used.
[0419] 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 playing interface 7200, the electronic device 100 can still continue to play the music in the music application. Figure 7L The music card 7122 shown in the figure shows the name of the music, a play progress bar, an option to pause the music, a switch to play the previous music option, a switch to play the next music option, etc. Optionally, in order to prompt that the electronic device 100 is using an audio playback speed card to play music, the electronic device 100 may display a prompt message 7120 near the play progress bar for starting to play the music option, switching to play the previous music option, and switching to play the next music option. The prompt message 7120 is used to prompt the user that the electronic device 100 is using an audio playback speed card. Optionally, the electronic device 100 may also receive an input operation (such as a single click) from the user with respect to the prompt message 7120. In response to the user's input operation, the electronic device 100 may display a similar Figure 7K As shown in the prompt bar 7121, the user can 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., which will not be repeated in this application.
[0420] 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.
[0421] Figure 8 A schematic flow chart of a method for the electronic device 100 to play audio based on audio playback speech speed cards is shown.
[0422] S801. The electronic device 100 obtains an audio file and receives a user operation to play audio content in the audio file.
[0423] The audio file obtained by the electronic device 100 may be sent by the electronic device 200 with which the communication connection is established, or may be obtained from a server.
[0424] After the electronic device 100 acquires the audio file, the electronic device 100 may receive a user operation to play the audio content in the audio file.
[0425] Optionally, the audio file may be an audio file that the electronic device 100 receives and sends from the electronic device 200. For example, the audio file may be music, a voice message, a video, etc. For example, the voice message may be Fig. 7A Voice message from contact "Lisa" shown.
[0426] 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.
[0427] 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.
[0428] In some embodiments, the audio file includes audio content, or default audio attributes and audio content. The default audio attributes include default speech rate, default volume, default timbre, etc. The default audio attributes can be attribute values preset when the server or electronic device 200 generates an audio file.
[0429] In some embodiments, the audio file includes audio content, or a first target audio attribute and audio content. The first target audio attribute includes a first target speech rate, a first target volume, a first target timbre, etc. The first target audio attribute can be an audio attribute defined by an audio generation speech rate card stored in a server or electronic device 200. The audio content included in the audio file is audio content adjusted based on the first target audio attribute.
[0430] For example, the audio content may be Fig. 7A The voice information corresponding to the voice message identifier 7101 shown includes text information input by the user.
[0431] Exemplarily, the audio content may also be Figure 7G The audio content of the music shown may include lyrics, music melody, etc.
[0432] Exemplarily, the first target speech rate may also be Figure 4Q The first target volume can also be Figure 4Q The first target tone can also be 40% of the maximum volume of the electronic device shown. Figure 4Q Original soundtrack shown.
[0433] 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, and 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 based on the audio attribute adjustment identifier. 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.
[0434] S802: The electronic device 100 needs to determine whether an audio playback speech speed card is stored in the electronic device 100.
[0435] 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.
[0436] 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.
[0437] 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.
[0438] If it is determined that no audio generation speech rate card is saved, the electronic device 100 can prompt the user to create an audio playback speech rate card, and receive the user's operation to create and save the audio playback speech rate card. Afterwards, the electronic device 100 can adjust the audio properties of the audio content obtained by the electronic device 100 based on the audio playback speech rate card, that is, execute S804, S805, S806, S807 and S808.
[0439] 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 one of the following methods.
[0440] Method 1: The electronic device 100 can determine the audio type to which the audio content acquired by the electronic device 100 belongs, and determine whether an audio playback speech speed card is stored on the electronic device 100 based on the audio type.
[0441] 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 to which the audio content acquired by the electronic device 100 belongs.
[0442] Optionally, the electronic device 100 may determine the audio type of the audio file by combining one or any combination of the source of the audio file, feature analysis of the audio content, and the identifier / title of the audio file.
[0443] Method 2: The electronic device 100 can determine the application to which the audio content acquired by the electronic device 100 belongs, and determine whether an audio playback speech speed card is saved on the electronic device 100 based on the identification of the application.
[0444] Based on the above description, the audio playback speech rate card can be associated with the 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.
[0445] Method three: The electronic device 100 can determine the application and the object within the application to which the audio content obtained by the electronic device 100 belongs, 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.
[0446] 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.
[0447] S803: The electronic device 100 obtains an audio playback speech speed card.
[0448] When it is determined that the audio playback speech speed card is stored on the electronic device 100 , the electronic device 100 may obtain the audio playback speech speed card.
[0449] S804: The electronic device 100 prompts the user to create an audio playback speed card.
[0450] 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.
[0451] For example, the electronic device 100 may display a similar Figure 4D The prompt bar 4209 shown is used to prompt the user whether to create an audio playback speed card.
[0452] S805: The electronic device 100 needs to confirm whether an audio playback speech speed card has been created.
[0453] 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.
[0454] When it is confirmed that an audio playback speech speed card is saved in the electronic device 100 , that is, the user has created an audio playback speech speed card, S807 is executed.
[0455] When it is confirmed that no audio playback speech speed card is saved in the electronic device 100 , that is, the user has not created an audio playback speech speed card, S806 is executed.
[0456] In some embodiments, the electronic device 100 may not execute S804 and S805. If it is determined in S803 that no audio playback speech speed card is saved on the electronic device 100, the electronic device 100 may directly execute S806.
[0457] In some embodiments, when the electronic device 100 receives a user operation to create an audio playback speech rate card, the electronic device 100 can determine an audio playback speech rate card template based on the audio type of the audio content in the audio file. Different audio types correspond to different audio playback speech rate card templates. The audio playback speech rate card template has preset audio attributes, and different audio playback speech rate card templates correspond to different preset audio attributes. In this way, the electronic device 100 can directly obtain the audio playback speech rate card template based on the audio type matching, without the user having to follow similar Figure 4E-4H The steps shown in the figure set the audio attributes of the audio playback speech speed card, which can save user operations. The user can choose to use the preset audio attributes corresponding to the audio playback speech speed card template as the target audio attributes of the audio playback speech speed card set by the user, and the user can also modify the preset audio attributes corresponding to the audio playback speech speed card template to obtain the target audio attributes of the audio playback speech speed card.
[0458] 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.
[0459] When it is confirmed that the electronic device 100 has not saved or 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 default attributes or the first target audio attributes.
[0460] S807: The electronic device 100 adjusts the audio attribute of the audio content based on the second target audio attribute defined by the audio playback speech rate card.
[0461] S808. In response to the user operation, the electronic device 100 plays the audio content adjusted based on the second target audio attribute.
[0462] When it is confirmed that the electronic device 100 has saved an audio playback speech rate card or the electronic device 100 receives a user operation to create an audio playback speech rate card, the electronic device 100 can adjust the audio properties of the audio content based on the second target audio properties defined by the audio playback speech rate card. Afterwards, the electronic device 100 can 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: second target speech rate, second target volume, and second target timbre.
[0463] For example, the second target speaking rate may be Fig. 6A or Figure 6B At low to medium speeds as shown, the second target volume can be Fig. 6A or Figure 6B 40% of the maximum volume of the electronic device shown. The second target tone can also be Fig. 6A or Figure 6B Original soundtrack shown.
[0464] Exemplarily, the second target speech rate may also be Figure 6C or Fig.6D or Fig. 6E The second target volume can also be Figure 6C or Fig.6D or Fig. 6E 50% of the maximum volume of the electronic device shown. The second target tone can also be Figure 6C or Fig.6D or Fig. 6E Original soundtrack shown.
[0465] 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. In the case where the audio file carries an audio attribute adjustment identifier, the electronic device 100 may no longer adjust the audio attribute 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, and the audio content in the audio file is the audio content that has been adjusted based on the first target audio attribute.
[0466] Through this method, when playing audio, the electronic device 100 can adjust the audio properties of the audio based on the audio playback speech rate card set by the user, without the need for the user to manually adjust the audio properties, so that the audio effect of the audio played by the electronic device meets the audio effect expected by the user, thereby improving the user experience.
[0467] 5. The electronic device 100 receives a user operation to modify the second target audio attribute defined by the audio playback speech rate card.
[0468] Figure 9A-9EA schematic diagram is shown in which the electronic device 100 receives a user operation to modify a second target audio attribute defined by an audio playback speech rate card.
[0469] 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 defined in the audio playback speech rate card.
[0470] For example, Fig.9A As shown, the electronic device 100 can display an audio playback speech speed card 6003 on the negative first screen, and option 9001 is displayed in the audio playback speech speed card 6003. The user can modify the audio playback speech speed card 6003 through option 9001 or share the audio playback speech speed card 6003 with other devices.
[0471] like Fig.9A As shown, the electronic device 100 can receive an input operation (such as a single click) from a user for option 9001 in the audio playback speech speed card 6003. In response to the user's input operation, the electronic device 100 can display Fig. 9B The selection box 9002 shown includes a modification option and a sharing option. The user can modify the audio properties defined by the audio playback speech speed card 6003 through the modification option. The user can also share the audio playback speech speed card 6003 to other devices through the sharing option.
[0472] For example, Fig. 9B As shown, the electronic device 100 may receive an input operation (such as a click) from a user for modifying an option in the selection box 9002. In response to the input operation from the user, the electronic device 100 may display Fig. 9C The editing box 9003 shown includes multiple editing options, and the user can modify the audio properties defined by the audio playback speed card 6003 through different editing options.
[0473] For example, the edit box 9003 includes edit options 9004, 9005, 9006, and 9007. Among them, the user can modify the audio type applicable to the audio playback speech rate card 6003 through the edit option 9004. The user can modify the speech rate specified by the audio playback speech rate card 6003 through the edit option 9005. The user can modify the audio specified by the audio playback speech rate card 6003 through the edit option 9006. The user can modify the timbre specified by the audio playback speech rate card 6003 through the edit option 9007. The edit box 9003 also includes a cancel option and a save option. The user can stop modifying the audio properties specified by the audio playback speech rate card 6003 through the cancel option and display the result. Fig.9AThe user interface shown in FIG. 6004 can also save the modified audio properties in the audio playback speech speed card 6003 through the save option.
[0474] For example, Fig.9D As shown, the user sets the audio type applicable to the audio playback speed card to voice chat, the user adjusts the speed limited by the audio playback speed card to medium-high speed, the user adjusts the volume limited by the audio playback speed card to 60% of the maximum volume of the electronic device, and the user sets the timbre limited by the audio playback speed card to original sound, that is, the timbre of the audio content is not adjusted.
[0475] For example, Fig.9D As shown, the electronic device 100 may receive a user input operation (eg, click) for a save option in the edit box 9003, and in response to the user input operation, the electronic device 100 may display Fig.9E The audio playback speech speed card 9008 shown is the card corresponding to the audio playback speech speed card 6003 after the audio properties are modified.
[0476] 6. The electronic device 100 receives a user operation to view one or more audio generation speed cards and / or audio playback speed cards.
[0477] Figures 10A-10F A schematic diagram showing the electronic device 100 receiving a user operation to view a speech rate card.
[0478] For example, Fig. 10A As shown, 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 audio generation speed cards or audio playback speed cards that are not displayed.
[0479] For example, Fig. 10A As shown, the electronic device 100 receives a sliding operation (eg, a sliding operation to the left) performed by the user on the audio playback speech rate card 6003. In response to the sliding operation of the user, the electronic device 100 may display Fig. 10B The audio playback speed card 1001 shown. The audio type applicable to the audio playback speed card 1001 is learning type. The speed specified by the audio playback speed card 1001 is slow. The volume specified by the audio playback speed card 1001 is 60% of the maximum volume of the electronic device. The timbre specified by the audio playback speed card 1001 is original sound, that is, the timbre of the audio content is not adjusted.
[0480] In some embodiments, the electronic device 100 may also receive a user operation to view multiple speech rate cards simultaneously.
[0481] For example, Fig. 10C As shown, the electronic device 100 may receive an input operation (such as a click) from a user for more options. In response to the input operation from the user, the electronic device 100 may display Fig. 10D The user interface 1002 shown includes a plurality of speech rate cards.
[0482] like Fig. 10D As shown, the user interface 1002 includes an audio playback speech rate card 6003 and an audio playback speech rate card 1001. The electronic device 100 can receive an upward or downward sliding operation by the user on the user interface 1002 to view other more undisplayed audio playback speech rate cards or audio generation speech rate cards.
[0483] 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. In order to save the display position occupied by the speed card, the electronic device 100 can overlay 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 of different objects.
[0484] For example, the electronic device 100 may display Fig.10E The user interface 1005 shown includes a speech rate card group. Among them, multiple audio playback speech rate cards are superimposed and displayed in the speech rate card group 1006. For example, the audio playback speech rate card 6002, the audio playback speech rate card 1003 and the audio playback speech rate card 1004. Among them, the audio playback speech rate card 1003 and the audio playback speech rate card 1004 are not fully displayed.
[0485] The audio playback speed card is exemplary, such as Fig.10E As shown, the electronic device 100 may receive a sliding operation (eg, a left sliding operation) performed by a user on the speech rate card group 1006. In response to the sliding operation of the user, the electronic device 100 may display Fig.10F User interface 1007 is shown.
[0486] like Fig.10F As shown, 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.
[0487] The audio type applicable to the audio playback speed card 1003 is the chat voice type. The audio playback speed card 1003 is limited to use in instant messaging applications. The audio playback speed card 1003 is limited to use when receiving a voice message sent by the contact "TOM" in the instant messaging application. The speed limited by the audio playback speed card 1003 is medium-high speed. The volume limited by the audio playback speed card 1003 is 50% of the maximum volume of the electronic device. The timbre limited by the audio playback speed card 1003 is a lolita sound, that is, the timbre of the audio content is adjusted from the original sound to the lolita sound to achieve voice change.
[0488] 7. The electronic device 100 receives the user's operation to share the audio playback speed card.
[0489] 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 devices 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.
[0490] Figures 11A-11D A schematic diagram showing electronic device 100 sharing a speech speed card with electronic device 200 is shown.
[0491] This application is explained by taking the example of electronic device 100 sharing an audio playback speech speed card with electronic device 200.
[0492] The electronic device 100 may share the audio playback speech speed card with the electronic device 200 through an application, or the electronic device 100 may share the audio playback speech speed card with the electronic device 200 through a short-range communication connection. The present application does not limit the sharing method.
[0493] The following embodiments of the present application are described by taking the electronic device 100 sharing an audio playback speech speed card with the electronic device 200 via a Bluetooth connection as an example.
[0494] refer to Figure 9A-9B In the description of the embodiment, the electronic device 100 can display Fig. 9BThe selection box 9002 shown in FIG. 9002 includes a modification option and a sharing option. The user can modify the audio properties defined by the audio playback speech speed card 6001 through the modification option. The user can also share the audio playback speech speed card 6001 to other devices through the sharing option.
[0495] like Fig.11A As shown, the electronic device 100 may receive an input operation (eg, a single click) from a user for a share option in the selection box 9002. In response to the input operation from the user, the electronic device 100 may display Fig. 11B The selection box 1101 shown shows the device identifications of multiple devices discovered by the electronic device 100 via Bluetooth.
[0496] Optionally, after the electronic device 100 receives the user's input operation for the sharing option in the selection box 9002 , if the Bluetooth of the electronic device 100 is not turned on, the electronic device 100 may prompt to start the Bluetooth of the electronic device 100 .
[0497] like Fig. 11B As shown, the device identification shown in the selection box 1101 may include "TOM's Mate 50" and "Nacy's NOVA 11". Among them, 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 other electronic devices. The user may select the device identification "TOM's Mate 50". Afterwards, the electronic device 100 may receive the user's input operation (such as 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 speed card 6001 to the electronic device 200.
[0498] 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 .
[0499] After receiving the audio playback speech speed card 6001 shared by the electronic device 100, the electronic device 200 may display Fig. 11CThe prompt bar 1102 shown. The prompt bar 1102 includes the prompt information "Found the audio playback speed card sent by "WY's HUAWEIP60", 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 rejection option and a reception option. The user can refuse to receive the audio playback speed card shared by the electronic device 100 through the rejection option. The user can also receive and save the audio playback speed card shared by the electronic device 100 through the reception option.
[0500] For example, Fig. 11C As shown, the electronic device 200 can receive an input operation (such as a click) from a user for receiving an option in the prompt bar 1102. In response to the user's input operation, the electronic device 200 can Fig.11D The user interface 1103 shown may be the negative first screen of the electronic device 200. An audio playback speech speed card 1104 is displayed in the user interface 1103. The audio playback speech speed card 1104 may be an audio playback speech speed card shared by the electronic device 100 to the electronic device 200.
[0501] Fig.12 A flow chart of a method for electronic device 100 to share speech speed cards with electronic device 200 is shown.
[0502] S1201: A communication connection is established between the electronic device 100 and the electronic device 200.
[0503] 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.
[0504] S1202: The electronic device 100 receives a user operation and shares a first audio playback speed card with the electronic device 200.
[0505] S1203: The electronic device 100 obtains first card information of a first audio playback speech speed card.
[0506] The electronic device 100 may receive a user operation and share the first audio playback speed card with the electronic device 200.
[0507] Exemplarily, the first audio playback speed card can be Fig.11A The audio playback speed card 6003 is shown.
[0508] The first card information is displayed on the first audio playing speech speed card. The first card information includes but is not limited to: classification information of the first audio playing speech speed card and the second target audio attribute of the first audio playing speech speed card.
[0509] 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.
[0510] 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.
[0511] 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.
[0512] S1204 . In response to the user operation, the electronic device 100 sends the first card information to the electronic device 200 .
[0513] In response to the user operation, after the electronic device 100 acquires 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 speech rate card.
[0514] S1205. The electronic device 200 receives and stores the first card information, and generates a second audio playback speed card.
[0515] S1206: The electronic device 200 displays a second audio playback speech speed card, and the card information displayed on the second audio playback speech speed card is the first card information.
[0516] In some embodiments, after the electronic device 200 receives the first card information sent by the electronic device 100, before generating the second audio playback speech speed card, the electronic device 200 may prompt the user whether to agree to receive the audio generation speech speed card shared by the electronic device 200. If the user agrees, the electronic device 100 saves the first card information and generates the second audio playback speech speed card. Fig. 11C Description in the Examples.
[0517] 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.
[0518] Exemplarily, the second audio playback speed card can be Fig.11D The audio playback speech rate card 1104 is shown.
[0519] The second audio playback speech speed card is not limited to being displayed on the negative first screen. The electronic device 200 may also display the second audio playback speech speed card at other locations, and this application does not impose any limitation on this.
[0520] 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.
[0521] Fig.13 A flowchart of an audio playback system provided in this application.
[0522] S1301. A first electronic device is configured to send a first audio attribute to a second electronic device through a communication connection in response to a first operation, where the first audio attribute includes one or more of the following: a first volume, a first timbre, and a first speech speed.
[0523] 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.
[0524] 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 may receive a user operation and share the speech rate card with other devices. Other devices may receive the first audio attribute and use the first audio attribute. There is no need to receive a user operation to create a speech rate card, which can save user operations. For details, please refer to Figures 11A-11D Description in the Examples.
[0525] 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.
[0526] This method can adjust the audio properties of the audio content, and the device can play the audio content based on the audio properties. There is no need for the user to manually adjust the audio properties of the audio content, which not only saves user operations but also improves the diversity of audio playback of the device.
[0527] 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.
[0528] The first audio attribute may be an audio attribute defined in the first speech rate card. In this way, the first electronic device may receive a user operation and share the first speech rate card with other devices. Other devices may receive the first audio attribute and use the first audio attribute. There is no need to receive a user operation to create a speech rate card, which can save user operations.
[0529] 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.
[0530] In some embodiments, the first speech rate card may be an audio playback speech rate card or an audio generation speech rate card.
[0531] 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.
[0532] Exemplarily, the first speech rate card can be Fig.11A In the audio playback speech speed card 6003 shown, the first operation may be an input operation (eg, single click) for the share option in the selection box 9002 .
[0533] In one possible implementation, the first electronic device is also used to display a first prompt message, wherein the first prompt message includes a first device identifier, and the first device identifier is a device identifier of a 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 a second operation of the user on the first device identifier.
[0534] In this way, the user can select a target device for sharing the first audio attribute, so as to achieve sharing of the audio attribute of the audio content between the devices.
[0535] Exemplarily, the first prompt information may be Fig. 11C Prompt bar 1102 is shown.
[0536] Exemplarily, the device identification of the second electronic device may be the device identification “TOM's Mate 50”.
[0537] In a possible implementation manner, the second electronic device is further configured to generate and display a second speech rate card according to the first audio attribute, where the second speech rate card includes the first audio attribute.
[0538] 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, so that the user can view and modify the audio attributes defined by the second speaking speed card.
[0539] Exemplarily, the second speech rate card can be Fig.11D The audio playback speech rate card 1104 is shown.
[0540] 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, wherein 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.
[0541] In this way, the first audio attribute can 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 can play the audio content based on the audio attribute corresponding to the audio content.
[0542] 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.
[0543] Exemplarily, the second prompt information may be Figure 7C Prompt message 7103 is shown.
[0544] Exemplarily, the second prompt information may be Fig.7I Prompt message 7103 is shown.
[0545] Exemplarily, the second prompt information may be Figure 7J Prompt message 7120 is shown.
[0546] Exemplarily, the second prompt information may be Figure 7L Prompt message 7103 is shown.
[0547] 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.
[0548] 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.
[0549] For example, the first application may be an instant messaging application. When users send voice messages to each other in the instant messaging application, the electronic device may change the audio attributes of the voice message, and when the device plays the voice message, it may play the voice message based on the audio attributes carried by the voice message, thereby increasing the fun of interaction between devices and improving the user experience.
[0550] Exemplarily, the first voice information may be Fig. 7A The voice information corresponding to the voice message identifier 7101 is shown.
[0551] In a possible implementation manner, the first object identifier is a sender identifier of the first voice information in the first application.
[0552] Exemplarily, the first object identifier may be the contact “Lisa”.
[0553] In one possible implementation, the first audio attribute is an audio attribute corresponding to a first audio type or a first application identifier or a first object identifier within a 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 including one or more of the following: a second volume, a second timbre, and a 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.
[0554] In some embodiments, the second audio file may be an audio file stored locally in the first electronic device, an audio file sent by other devices and received by the first electronic device, or an audio file downloaded from a server by the first electronic device.
[0555] When the first electronic device plays the second audio content in the second audio file, the first electronic device can determine whether the audio attributes of the second audio content are stored locally. In some cases, the first electronic device can play the second audio content based on the matched audio attributes. In this way, there is no need for the user to manually adjust the audio attributes of the audio content, which not only saves user operations, but also improves the diversity of audio playback by the device.
[0556] In a possible implementation, the first electronic device is further used to: display a third prompt message; receive a second operation of 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.
[0557] 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.
[0558] When the first electronic device plays the second audio content in the second audio file, the first electronic device can determine whether the audio attribute of the second audio content is stored locally. In some cases, the first electronic device can prompt the user whether to use the audio attribute to play the second audio content. If the user agrees, the first electronic device can play the second audio content based on the matched audio attribute. If the user disagrees, the first electronic device can play the second audio content based on the audio attribute carried by the second audio content.
[0559] Exemplarily, the third prompt information may be Figure 7B The prompt information 7102 is shown. The first option can be Figure 7B The prompt information 7102 shown is an option. The second option can be Figure 7B The No option in the prompt message 7102 is shown.
[0560] Exemplarily, the third prompt information may be Figure 7H The prompt information 7102 is shown. The first option can be Figure 7H The prompt information 7102 shown is an option. The second option can be Figure 7H The No option in the prompt message 7102 is shown.
[0561] 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, the preset audio attributes include one or more of the following: preset volume, preset timbre, preset speaking speed; receive a user operation to modify the preset audio attributes in the first preset card, and obtain the first audio attributes; in response to a user operation of saving the first template card after modifying the preset audio attributes to the first audio attributes, 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 attributes are the same as the first audio attributes.
[0562] In some embodiments, 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 a first application. A plurality of preset cards of different types are stored on the first electronic device. When it is detected that a speech rate 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 of the collected audio content or the first application identifier or the first object identifier in the first application. 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 speech rate card. The user can also modify the preset audio attributes of the first preset card and save it to obtain a first speech rate card. The efficiency of users creating speech rate cards on electronic devices is improved.
[0563] Exemplarily, the first preset card may be Fig. 4I The preset audio attribute of the first preset card may be the audio attribute shown in the prompt bar 4213.
[0564] 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.
[0565] The present application provides a computer-readable storage medium, including instructions, which, when executed on a first electronic device, enable the first electronic device to execute an audio control method provided in the embodiment of FIG. 11 .
[0566] 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 the embodiment of Figure 11.
[0567] The present application provides a computer program product including 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 FIG. 11 .
[0568] 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.
[0569] The present application provides a computer-readable storage medium, including instructions, which, when executed on a second electronic device, enable the second electronic device to execute an audio control method provided in the embodiment of FIG. 11 .
[0570] 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 the embodiment of Figure 11.
[0571] 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 FIG. 11 .
[0572] The various implementation modes of the present application can be combined arbitrarily to achieve different technical effects.
[0573] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part 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, the process or function described in the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can 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. The available medium can 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 disk (SSD)), etc.
[0574] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
[0575] In short, the above description is only an embodiment of the technical solution of the present invention, and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention shall be included in the protection scope 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 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 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 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 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 a preset audio attribute, and the preset audio attribute includes 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 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 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.