Broadcast control method in electronic equipment and electronic equipment
By detecting and controlling the audio playback needs of multiple applications in electronic devices, the problem of voice message mixing caused by multiple applications sharing speakers is solved and the user experience is improved.
Patent Information
- Application Number
- CN202111201929.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-15
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-10-15
AI Technical Summary
In electronic devices, when multiple applications play voice messages at the same time, the voice messages are easily mixed due to the shared speakers, affecting the user experience.
By detecting the user's playback control operation on the first application, it is determined whether there is an audio playback requirement for the second application, and playback control is performed based on the duration of the voice message and the application status to avoid playing the first voice message and the reference audio information at the same time to prevent Mix.
It effectively avoids mixing problems during voice playback, improves user experience, and ensures that users can clearly hear specific voice messages.
Smart Images

Figure CN113934397B
Abstract
Description
Technical Field
[0001] The present application belongs to the general data processing field of the Internet industry, and specifically relates to a broadcast control method in an electronic device and the electronic device. Background Art
[0002] Currently, multiple applications in electronic devices can support audio playback. When voice messages need to be played in multiple applications at the same time, since they all use the same speaker to play, the voice message playback will be mixed, resulting in users being unable to hear the specific voice message clearly, resulting in a poor user experience. Summary of the invention
[0003] The present application provides a broadcast control method in an electronic device and an electronic device, so as to avoid the problem of mixing when the voice information of multiple applications is played by the same speaker at the same time, thereby improving the user experience.
[0004] In a first aspect, an embodiment of the present application provides a method for controlling a broadcast in an electronic device, comprising:
[0005] When detecting a user's play control operation on a first voice message of a first application, detecting whether the electronic device also runs a second application that supports an audio play function;
[0006] If it is detected that the electronic device is running the second application, determining a reference time period according to the first voice message, and judging whether the second application has an audio playback demand within the reference time period according to the running state of the second application;
[0007] If it is determined that the second application needs to play the reference audio information within the reference time period, the first voice message and the reference audio information are played back to avoid playing the first voice message and the reference audio information simultaneously through the same speaker.
[0008] It can be seen that in the embodiment of the present application, when the electronic device detects the user's playback control operation for the first voice message of the first application, it detects whether the electronic device is also running a second application that supports the audio playback function. If the second application is running, the reference time period is determined according to the first voice message, and it is determined whether the second application has an audio playback demand within the reference time period according to the running state of the second application. If there is a demand to play the reference audio information, the playback of the first voice message and the reference audio information is controlled. In this way, the problem of mixing when the voice is played can be avoided by playing the first voice message and the reference audio information at the same time through the same speaker, thereby improving the user experience.
[0009] In a second aspect, an embodiment of the present application provides a broadcast control device in an electronic device, comprising a processing unit and a communication unit, wherein:
[0010] The processing unit is used to detect whether the electronic device is also running a second application that supports an audio playback function when detecting a user's playback control operation for a first voice message of a first application through the communication unit; if it is detected that the electronic device is running the second application, determine a reference time period according to the first voice message, and judge whether the second application has an audio playback demand within the reference time period according to the running status of the second application; if it is judged that the second application has a demand to play reference audio information within the reference time period, control the playback of the first voice message and the reference audio information to avoid playing the first voice message and the reference audio information simultaneously through the same speaker.
[0011] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory and a communication interface; the memory and the communication interface are connected to the processor; the memory is used to store computer program code, and the computer program code includes instructions. When the processor executes the instructions, the electronic device executes the method described in the first aspect above.
[0012] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in any method of the first aspect of the embodiment of the present application.
[0013] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in any method of the first aspect of the embodiment of the present application. The computer program product may be a software installation package. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 It is a flowchart of a method for controlling a broadcast in an electronic device provided in an embodiment of the present application;
[0015] Figure 2 is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0016] Figure 3 It is a block diagram of the functional units of a broadcast control device in an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0017] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be accurately and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0018] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but optionally includes steps or modules that are not listed, or optionally includes other steps or modules inherent to these processes, methods, products or devices.
[0019] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0020] like Figure 1 As shown, Figure 1 It is a flowchart of a method for controlling a broadcast in an electronic device provided in an embodiment of the present application.
[0021] As shown in the figure, the broadcast control method in the electronic device includes:
[0022] Step 201: When a user's play control operation on a first voice message of a first application is detected, it is detected whether the electronic device is also running a second application that supports an audio play function.
[0023] Among them, the application types of the first application and the second application can be the same, or the first application and the second application can be different application types. Application types may include chat applications, navigation applications, video and music applications, etc. That is, the first application and the second application can both be chat applications, or the first application can be a chat application and the second application can be a navigation application. Specifically, during the operation of the second application, it is not necessary to start playing the voice through the user's operation, that is, when the second application is running, it can automatically play the voice information after the conditions are met. For example, when the second application is a navigation application, after the user arrives at the preset address, the navigation application will automatically play the navigation information, or the second application is also a chat application. Since the chat application has multiple voices to play, when the electronic device detects the user's playback operation for the first voice, the chat application will automatically play the subsequent multiple voices until the voice on the chat interface is played.
[0024] Step 202: If it is detected that the electronic device is running the second application, a reference time period is determined according to the first voice message.
[0025] Wherein, the reference time period is greater than or equal to the message duration of the first voice message. If it is not detected that the electronic device is running the second application, the first voice message is played through the speaker.
[0026] Step 203: determine whether the second application has an audio playback demand within the reference time period according to the running state of the second application.
[0027] The running state can be used to indicate whether the second application is allowed to use the speaker to play audio during this operation. If not, it can be determined that there is no audio playback demand within the reference period. The running state can also be used to indicate whether the second application is currently playing audio and has not yet finished playing, or whether there is audio that needs to be played within the reference period. If so, it is determined that there is an audio playback demand within the reference period.
[0028] Step 204: If it is determined that the second application needs to play the reference audio information within the reference time period, the first voice message and the reference audio information are controlled to be played.
[0029] The reference audio information is the audio information that the second application needs to play within the reference time period. The play control is used to control the play time of the first voice message and the reference audio information to avoid playing the first voice message and the reference audio information simultaneously through the same speaker.
[0030] It can be seen that in this example, when the electronic device detects the user's playback control operation for the first voice message of the first application, it detects whether the electronic device is also running a second application that supports the audio playback function. If the second application is running, the reference time period is determined according to the first voice message, and whether the second application has an audio playback demand within the reference time period is determined according to the running state of the second application. If there is a demand to play the reference audio information, the playback of the first voice message and the reference audio information is controlled. This can avoid playing the first voice message and the reference audio information through the same speaker at the same time, resulting in mixing problems during voice playback, thereby improving the user experience.
[0031] In a possible example, determining a reference time period based on the first voice message includes: detecting whether there is a second voice message in the first application that is after the first voice message and has no text message interval between the first voice message and the first voice message; if so, determining the reference time period based on the duration of the first voice message and the duration of the second voice message; if not, determining the reference time period based on the duration of the first voice message.
[0032] The second voice message may be a plurality of continuous voice messages, that is, a plurality of voice messages to be played are continuously included after the first voice message. The electronic device may automatically play the second voice message after receiving a play control operation for the first voice message.
[0033] In a specific implementation, when the second voice message includes multiple messages, it is possible to first determine whether the sender of the second voice message is the same as the sender of the first voice message. If they are the same, the reference time period is determined according to the duration of the first voice message and the duration of the second voice message; if they are not the same, the reference time period is determined according to the duration of the first voice message; if there is a third voice message in the second voice message whose sender is the same as the first voice message, the number of voice messages between the third voice message and the first voice message is determined. When the number is less than a preset number, the reference time period is determined according to the duration of the first voice message, the third voice message, and the voice messages between the first voice message and the third voice message. In this way, the user can fully obtain the message that the sender of the first voice message wants to convey without taking up too much time on the speaker.
[0034] It can be seen that in this example, obtaining the reference time period according to the duration of the first voice message can enable the user to obtain the complete voice content.
[0035] In a possible instance, the second application is a navigation application, and the running status of the second application includes navigation route information of the navigation application being run and the location of the electronic device; judging whether the second application has an audio playback demand within the reference time period based on the running status of the second application includes: predicting a local navigation route that the electronic device will pass through within the reference time period based on the navigation route information of the navigation application being run and the location of the electronic device; judging whether there is a location in the local navigation route that requires voice prompts; if so, judging that the second application has an audio playback demand within the reference time period; if not, judging that the second application has no audio playback demand within the reference time period.
[0036] Among them, predicting the local navigation route that the electronic device will pass within the reference time period based on the navigation route information of the running navigation application and the position of the electronic device can include: acquiring the current first moving speed of the electronic device, determining the first moving distance of the electronic device based on the first moving speed and the reference time period, determining the road condition within the route starting from the position of the electronic device and moving the first moving distance based on the navigation route information, correcting the first moving speed based on the road condition to obtain a second moving speed, determining the second moving distance based on the second moving speed and the reference time, and predicting the local navigation route that will be passed based on the second moving distance, the navigation route information and the position of the electronic device.
[0037] It can be seen that in this example, when the second application is a navigation application, whether there is an audio playback demand within the reference time is determined based on the location of the electronic device and the navigation route. The audio playback demand of the second application can be predicted in advance to avoid playing the first voice message and the voice message of the navigation application through the same speaker at the same time, which may cause mixing and other problems, thereby improving user experience.
[0038] In a possible instance, the playback control of the first voice message and the reference audio information to avoid playing the first voice message and the reference audio information simultaneously through the same speaker includes: predicting the user's familiarity with the navigation route information currently being run by the navigation application; if the familiarity is greater than or equal to a preset familiarity, calling the speaker of the electronic device to play the reference voice message of the first voice, and prohibiting the navigation application from calling the speaker of the electronic device until the timing range of the reference time period is exceeded, and the reference voice message at least includes the first voice message; if the familiarity is less than the preset familiarity, predicting that the interval duration between two adjacent voice reminder events in an untraveled route of the navigation route of the navigation application is greater than a target time period of the reference time period, calling the speaker of the electronic device to play the reference audio information according to the instruction of the navigation application, and delaying the calling of the speaker of the electronic device to play the reference voice message of the first application until the target time period.
[0039] Wherein, the target time period is the interval period between two navigation voice reminder events, that is, the period between the completion of the first navigation voice and the start point of the second navigation voice. When the user is more familiar with the navigation route information, the user's reliance on the navigation voice will be relatively small. At this time, the reference voice message of the first application can be played first. When the user is less familiar with the navigation route information, the user's reliance on the navigation voice is higher. Therefore, in order to ensure the smooth travel of the user, the navigation voice is played first. However, since the first navigation voice and the second navigation voice are separated by a target period, the voice of the first application can be played within this target period. And when the first application includes multiple voice messages that need to be played, these multiple voice messages can be played within this interval period, or at least the first voice message needs to be played. Specifically, when the duration of the interval period between the two navigation voices is less than the duration of the reference period, the voice message of the first application can be played within this interval period until the next interval period is reached, and then the unplayed voice message in the first application is continued to be played.
[0040] It can be seen that in this example, by controlling the playback mode of the navigation voice and the voice of the first application according to the user's familiarity with the navigation route information, it is possible to avoid playing the first voice message and the voice message of the navigation application through the same speaker at the same time, causing problems such as mixing, and at the same time ensure smooth travel for users and improve user experience.
[0041] In one possible instance, predicting the user's familiarity with the navigation route information currently being run by the navigation application includes: querying historical navigation data of the electronic device based on the navigation route information currently being run by the navigation application to determine the number of times the navigation route information is used; and determining the user's familiarity with the navigation route information currently being run by the navigation application based on the number of times it is used.
[0042] Among them, when the number of times used is greater than the preset number of times, it can be determined that the user's familiarity with the running navigation route is greater than the preset familiarity, otherwise it is less than the preset familiarity. In particular, determining the user's familiarity with the navigation route information currently being run by the navigation application based on the number of times used can also include: determining the destination attribute of the navigation route, and determining the familiarity based on the destination attribute and the number of times the navigation route information is used. When the destination attribute is a frequently visited address such as "home" or "company", it can be determined that the user's familiarity with the navigation route information is greater than the preset familiarity even if the number of times used is less than the preset number.
[0043] It can be seen that in this example, determining the user's familiarity with the navigation route information being run based on the user's historical navigation data can improve the accuracy of the electronic device's control over audio playback.
[0044] In a possible instance, the playback control of the first voice message and the reference audio information to avoid playing the first voice message and the reference audio information simultaneously through the same speaker includes: querying a preset application priority list to obtain the first priority of the first application and the second priority of the navigation application; if the first priority is greater than the second priority, calling the speaker of the electronic device to play the reference voice message of the first voice, and prohibiting the navigation application from calling the speaker of the electronic device until the timing range of the reference time period is exceeded, and the reference voice message at least includes the first voice message; if the first priority is less than the second priority, predicting that the interval duration between two adjacent voice reminder events in the untraveled route of the navigation route of the navigation application is greater than the target time period of the reference time period, calling the speaker of the electronic device to play the reference audio information according to the instruction of the navigation application, and delaying the calling of the speaker of the electronic device to play the reference voice message of the first application until the target time period.
[0045] The application priority list can be divided according to the application name or the application type. For example, the application priority list includes the priority information of application A, application B and application C, or the application priority list includes the priority information of chat application, navigation application and video playback application. When the priority is divided according to the application type, the priority of applications of the same type with different names can be divided again. The priority of each application type or application name in the application priority list can be set at the factory or modified and determined by the user.
[0046] When the priority of the navigation application is lower, the audio message of the first application is played first. In particular, if the first application includes multiple voice messages that need to be played, it is necessary to play these multiple voice messages first before playing the voice message of the navigation application, or at least it is necessary to wait until the first voice message is played before playing the voice message of the navigation application. When the priority of the navigation application is higher, the voice message of the navigation application is played first. Since there is an interval between every two voice messages of the navigation application, the voice message of the first application can be played during this interval. Specifically, when the interval between two navigation voices is shorter than the reference period, the voice message of the first application can be played during this interval until the next interval is reached, and then the unplayed voice message of the first application can be played.
[0047] It can be seen that in this example, playing control is performed according to the priorities corresponding to the first voice message and the reference audio information, which can avoid playing the first voice message and the voice message of the navigation application through the same speaker at the same time, causing mixing and other problems, thereby improving the user experience.
[0048] In a possible example, before the delay until the target time period calls the speaker of the electronic device to play the reference voice message of the first application, the method further includes: detecting that the interval between the start time of the target time period and the current system time is less than a preset duration.
[0049] Among them, when the interval between the start time of the target time period and the current system time is less than the preset time period, it means that the first voice message can be played soon, and the start time of the target time period is the time to start playing the first voice message of the first application.
[0050] It can be seen that when the interval between the start time of the target time period and the current system time is less than the preset time period, the playback time of the first voice message will be delayed to the target time period. This can avoid playing the first voice message and the voice message of the navigation application through the same speaker at the same time, causing mixing and other problems, and can also ensure that the user can hear the voice message of the first application in time.
[0051] In a possible example, the method further includes: detecting that the interval between the start time of the target time period and the current system time is greater than or equal to the preset duration; converting the reference voice message of the first application into text, and displaying the text conversion result.
[0052] Among them, if the interval between the start time of the target time period and the current system time is greater than or equal to the preset time period, it means that the user cannot hear the voice message of the first application in time. However, in order to allow the user to obtain the content corresponding to the voice message and to ensure that the voice message in the navigation application can be clearly conveyed to the user, the voice message of the first application can be converted into text first so that the user can understand the content corresponding to the voice message. After displaying the text conversion result, the user identifier can be obtained. When the user identifier indicates that the user has read it, the reference voice message will no longer be played during the target time period. When the user identifier indicates that the user has not read it, the reference voice message will be played during the target time period. The method for obtaining the user identifier can include receiving a click operation of the user on the reference voice message, and then determining that the user identifier indicates that the user has read it, otherwise it indicates that the user has not read it.
[0053] It can be seen that in this example, when the interval between the start time of the target time period and the current system time is greater than or equal to the preset time length, the reference voice message will be converted into text and displayed. This can avoid the problem of mixing when the first voice message and the voice message of the navigation application are played simultaneously through the same speaker, and can also ensure that the user can obtain the content of the voice message of the first application in a timely manner.
[0054] For the method embodiment consistent with the above, please refer to Figure 2 , Figure 2 It is a structural diagram of an electronic device 200 provided in an embodiment of the present application. As shown in the figure, the electronic device 200 includes a processor 210, a memory 220, a communication interface 230 and one or more programs 221, wherein the one or more programs 221 are stored in the above-mentioned memory 220 and are configured to be executed by the above-mentioned processor 210, and the one or more programs 221 include instructions for executing any step in the above-mentioned method embodiment.
[0055] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0056] The embodiment of the present application can divide the electronic device into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0057] Figure 3 This is a functional unit composition block diagram of a broadcast control device in an electronic device provided by an embodiment of the present application. The broadcast control device 3 in the electronic device includes a processing unit 30 and a communication unit 31, wherein the processing unit 30 is used to detect whether the electronic device is also running a second application that supports the audio playback function when detecting the user's playback control operation for the first voice message of the first application through the communication unit 31; if it is detected that the electronic device is running the second application, a reference time period is determined according to the first voice message, and whether the second application has an audio playback demand within the reference time period is determined according to the running state of the second application; if it is determined that the second application has a demand to play the reference audio information within the reference time period, the first voice message and the reference audio information are played and controlled to avoid playing the first voice message and the reference audio information simultaneously through the same speaker.
[0058] In a possible example, in terms of determining the reference time period based on the first voice message, the processing unit 30 is specifically used to: detect whether there is a second voice message in the first application that is after the first voice message and has no text message interval between the first voice message and the first voice message; if so, determine the reference time period based on the duration of the first voice message and the duration of the second voice message; if not, determine the reference time period based on the duration of the first voice message.
[0059] In a possible instance, the second application is a navigation application, and the running status of the second application includes navigation route information of the navigation application being run and the location of the electronic device. In terms of judging whether the second application has an audio playback demand within the reference time period based on the running status of the second application, the processing unit 30 is specifically used to: predict a local navigation route that the electronic device will pass through within the reference time period based on the navigation route information of the navigation application being run and the location of the electronic device; judge whether there is a location in the local navigation route that requires voice prompts; if so, judge that the second application has an audio playback demand within the reference time period; if not, judge that the second application has no audio playback demand within the reference time period.
[0060] In a possible example, in controlling the playback of the first voice message and the reference audio information to avoid playing the first voice message and the reference audio information simultaneously through the same speaker, the processing unit 30 is specifically used to: predict the user's familiarity with the navigation route information currently being run by the navigation application; if the familiarity is greater than or equal to a preset familiarity, call the speaker of the electronic device to play the reference voice message of the first voice, and prohibit the navigation application from calling the speaker of the electronic device until the timing range of the reference time period is exceeded, and the reference voice message at least includes the first voice message; if the familiarity is less than the preset familiarity, predict that the interval duration between two adjacent voice reminder events in the untraveled route of the navigation route of the navigation application is greater than the target time period of the reference time period, call the speaker of the electronic device to play the reference audio information according to the instruction of the navigation application, and delay calling the speaker of the electronic device to play the reference voice message of the first application until the target time period.
[0061] In a possible instance, in terms of predicting the user's familiarity with the navigation route information currently being run by the navigation application, the processing unit 30 is specifically used to: query the historical navigation data of the electronic device based on the navigation route information currently being run by the navigation application to determine the number of times the navigation route information is used; and determine the user's familiarity with the navigation route information currently being run by the navigation application based on the number of times it is used.
[0062] In a possible example, in controlling the playback of the first voice message and the reference audio information to avoid playing the first voice message and the reference audio information simultaneously through the same speaker, the processing unit 30 is specifically configured to: query a preset application priority list to obtain a first priority of the first application and a second priority of the navigation application;
[0063] If the first priority is greater than the second priority, the speaker of the electronic device is called to play the reference voice message of the first voice, and the navigation application is prohibited from calling the speaker of the electronic device until the timing range of the reference time period is exceeded, and the reference voice message at least includes the first voice message; if the first priority is less than the second priority, it is predicted that the interval duration between two adjacent voice reminder events in the untraveled route of the navigation route of the navigation application is greater than the target time period of the reference time period, and the speaker of the electronic device is called to play the reference audio information according to the instruction of the navigation application, and the calling of the speaker of the electronic device to play the reference voice message of the first application is delayed until the target time period.
[0064] In a possible instance, before the delay to the target time period to call the speaker of the electronic device to play the reference voice message of the first application, the processing unit 30 is specifically used to: detect that the interval between the start time of the target time period and the current system time is less than a preset duration.
[0065] In a possible instance, the processing unit 30 is further used to: detect that the interval between the start time of the target time period and the current system time is greater than or equal to the preset duration; convert the reference voice message of the first application into text, and display the text conversion result.
[0066] Among them, all relevant contents of each scenario involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. The address query device in the above navigation scenario can execute the above Figure 1 Steps in the address query method in the navigation scenario shown.
[0067] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented using software, the above embodiments 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 or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of 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 one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. 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 contains one or more available media sets. 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. The semiconductor medium can be a solid-state hard disk.
[0068] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.
[0069] The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes an electronic device.
[0070] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0071] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0072] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0073] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0074] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0075] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0076] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.
[0077] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for controlling broadcasting in an electronic device, characterized in that: include: When detecting a user's play control operation on a first voice message of a first application, detecting whether the electronic device also runs a second application that supports an audio play function; If it is detected that the electronic device is running the second application, determining a reference time period according to the first voice message, and judging whether the second application has an audio playback demand within the reference time period according to the running state of the second application; If it is determined that the second application needs to play the reference audio information within the reference time period, controlling the playing of the first voice message and the reference audio information to avoid playing the first voice message and the reference audio information simultaneously through the same speaker; The second application is a navigation application, and the running state of the second application includes navigation route information of the navigation application being run and the location of the electronic device; The determining, according to the running state of the second application, whether the second application has an audio playback demand within the reference time period includes: predicting a local navigation route that the electronic device will pass through within the reference time period according to navigation route information that the navigation application is running and the location of the electronic device; Determining whether there is a location in the local navigation route that requires voice prompting; If yes, it is determined that the second application has an audio playback demand within the reference time period; If not, it is determined that the second application has no audio playback demand within the reference time period; The playing control of the first voice message and the reference audio information to avoid playing the first voice message and the reference audio information simultaneously through the same speaker includes: predicting the user's familiarity with the navigation route information currently being run by the navigation application; If the familiarity is greater than or equal to a preset familiarity, calling the speaker of the electronic device to play a reference voice message of the first voice, and prohibiting the navigation application from calling the speaker of the electronic device until the timing range of the reference time period is exceeded, and the reference voice message at least includes the first voice message; If the familiarity is less than the preset familiarity, it is predicted that the interval duration between two adjacent voice reminder events in the untraveled route of the navigation route of the navigation application is greater than the target time period of the reference time period, and the speaker of the electronic device is called to play the reference audio information according to the instruction of the navigation application, and the calling of the speaker of the electronic device to play the reference voice message of the first application is delayed until the target time period.
2. The method according to claim 1, characterized in that Determining the reference time period according to the first voice message includes: detecting whether there is a second voice message in the first application that is after the first voice message and has no text message interval between the first voice message and the first voice message; If yes, determining the reference time period according to the duration of the first voice message and the duration of the second voice message; If not, the reference time period is determined according to the duration of the first voice message.
3. The method according to claim 1, characterized in that The predicting the user's familiarity with the navigation route information currently being run by the navigation application includes: querying historical navigation data of the electronic device according to the navigation route information currently being run by the navigation application to determine the number of times the navigation route information is used; The user's familiarity with the navigation route information currently being run by the navigation application is determined based on the number of uses.
4. The method according to claim 1, characterized in that: The playing control of the first voice message and the reference audio information to avoid playing the first voice message and the reference audio information simultaneously through the same speaker includes: querying a preset application priority list to obtain a first priority of the first application and a second priority of the navigation application; If the first priority is greater than the second priority, calling the speaker of the electronic device to play a reference voice message of the first voice, and prohibiting the navigation application from calling the speaker of the electronic device until the timing range of the reference time period is exceeded, and the reference voice message at least includes the first voice message; If the first priority is lower than the second priority, it is predicted that the interval between two adjacent voice reminder events in the untraveled route of the navigation route of the navigation application is greater than the target time period of the reference time period, and the speaker of the electronic device is called to play the reference audio information according to the instruction of the navigation application, and the calling of the speaker of the electronic device to play the reference voice message of the first application is delayed until the target time period.
5. The method according to claim 1 or 4, characterized in that: Before the delay until the target time period calls the speaker of the electronic device to play the reference voice message of the first application, the method further includes: detecting that the interval between the start time of the target time period and the current system time is less than a preset duration.
6. The method according to claim 5, characterized in that The method further comprises: Detecting that the interval between the start time of the target time period and the current system time is greater than or equal to the preset time period; The reference voice message of the first application is converted into text, and the text conversion result is displayed.
7. An electronic device, characterized in that: It includes a processor, a memory and a communication interface; the memory and the communication interface are connected to the processor; the memory is used to store computer program code, the computer program code includes instructions, and when the processor executes the instructions, the electronic device executes the method as described in any one of claims 1-6.
