CN110086941B - Voice playing method and device and terminal equipment - Google Patents

Voice playing method and device and terminal equipment Download PDF

Info

Publication number
CN110086941B
CN110086941B CN201910363098.XA CN201910363098A CN110086941B CN 110086941 B CN110086941 B CN 110086941B CN 201910363098 A CN201910363098 A CN 201910363098A CN 110086941 B CN110086941 B CN 110086941B
Authority
CN
China
Prior art keywords
voice playing
voice
time
instruction
responding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910363098.XA
Other languages
Chinese (zh)
Other versions
CN110086941A (en
Inventor
曾鸿坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910363098.XA priority Critical patent/CN110086941B/en
Publication of CN110086941A publication Critical patent/CN110086941A/en
Application granted granted Critical
Publication of CN110086941B publication Critical patent/CN110086941B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application is applicable to the technical field of software, and provides a voice playing method, a voice playing device and terminal equipment, wherein the voice playing method comprises the following steps: if the terminal equipment receives a voice playing instruction, acquiring the current time; judging whether the difference value between the current time and the last time of finishing the voice playing is smaller than a preset time value or not; if the difference value between the current time and the last time of finishing the voice playing is smaller than a preset time value, judging whether at least 2 transmission links of the audio data exist currently; and if at least 2 audio data transmission links exist currently, pausing the response of the voice playing instruction. By the method, different playing sound effects caused by playing the voice by adopting different transmission links within a short time can be avoided.

Description

Voice playing method and device and terminal equipment
Technical Field
The present application belongs to the field of software technologies, and in particular, to a voice playing method, apparatus, terminal device, and computer-readable storage medium.
Background
Currently, in an instant messaging application installed in a terminal device (such as a mobile phone), transmission of voice, text and pictures can be supported. After receiving the voice, the user can realize the playing of the voice by clicking the voice.
However, when the existing instant messaging is applied to the process of playing voice, the situation of different playing volumes may occur in the process of playing voice of two adjacent times, so as to bring poor experience to the user.
Disclosure of Invention
In view of this, embodiments of the present application provide a voice playing method, a voice playing device, and a terminal device, so as to solve the problem that in the prior art, in the two adjacent voice playing processes, the playing volumes may be different, thereby bringing poor experience to a user.
A first aspect of an embodiment of the present application provides a voice playing method, including:
if the terminal equipment receives a voice playing instruction, acquiring the current time;
judging whether the difference value between the current time and the last time of finishing the voice playing is smaller than a preset time value or not;
if the difference value between the current time and the last time of finishing the voice playing is smaller than a preset time value, judging whether at least 2 transmission links of the audio data exist currently;
and if at least 2 audio data transmission links exist currently, pausing the response of the voice playing instruction.
A second aspect of the embodiments of the present application provides a voice playing apparatus, including:
the current time obtaining unit is used for obtaining the current time if the terminal equipment receives a voice playing instruction;
the current time comparison unit is used for judging whether the difference value between the current time and the last time of finishing the voice playing is smaller than a preset time value or not;
the number judgment unit of the transmission link is used for judging whether at least 2 transmission links of the audio data exist currently or not if the difference value between the current time and the time for finishing the voice playing last time is smaller than a preset time value;
and the voice playing instruction pause response unit is used for pausing and responding the voice playing instruction if at least 2 transmission links of the audio data exist currently.
A third aspect of embodiments of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method according to the first aspect when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, performs the steps of the method according to the first aspect.
Compared with the prior art, the embodiment of the application has the advantages that:
because the current time indicates the receiving time of the current voice playing instruction, when the difference value between the current time and the last time of finishing the voice playing is smaller than the preset time value and at least 2 transmission links of audio data exist in the terminal equipment currently, the currently received voice playing instruction is paused to be responded, so that different playing sound effects caused by playing voice by adopting different transmission links in a short time can be avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a voice playing method provided in an embodiment of the present application;
fig. 2 is a schematic diagram illustrating text and voice displayed on a mobile phone interface according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a voice playing apparatus according to an embodiment of the present application;
fig. 4 is a schematic diagram of a terminal device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the terminal devices described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the devices described above are not portable communication devices, but rather are desktop computers having touch-sensitive surfaces (e.g., touch screen displays and/or touch pads).
In the discussion that follows, a terminal device that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal device may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal device supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the terminal device may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
Example (b):
fig. 1 shows a flowchart of a voice playing method provided in an embodiment of the present application, which is detailed as follows:
step S11, if the terminal equipment receives the voice playing instruction, the current time is obtained;
taking a terminal device as a mobile phone as an example, as shown in fig. 2, when the mobile phone detects that a voice with a duration of 6 seconds (6 ") is clicked, the mobile phone determines that a voice playing instruction of the voice is received, and then obtains a current time of the mobile phone, where the obtained current time is used as a receiving time of the voice playing instruction.
Step S12, judging whether the difference between the current time and the last time of finishing the voice playing is less than the preset time value;
in this step, the current time corresponding to the currently received voice playing instruction is compared with the stored last time for ending the voice playing to obtain a difference value, and whether the difference value is smaller than a preset time value is judged. Specifically, when the terminal device responds to the adjacent voice playing instruction, the human ear can distinguish the time value of different playing sound effects as the preset time value, for example, the preset time value is set to 500ms, and of course, the preset time value may also be set to other values according to the actual situation, which is not limited herein.
In some embodiments, before the step S12, the method includes:
and acquiring the time of finishing the voice playing last time.
Specifically, if the terminal device does not respond to other voice playing instructions before receiving the voice playing instruction, the recorded last time of ending the voice playing is obtained. If the terminal equipment is responding to other voice playing instructions when receiving the voice playing instructions, the terminal equipment stops responding to the other voice playing instructions, the current time is obtained, and the obtained current time is used as the time for finishing the voice playing last time.
In this embodiment, after each voice playing is finished, the time for finishing the voice playing of the voice is recorded. In some embodiments, in order to reduce the memory usage, after responding to the next voice playing instruction, the recorded last voice playing ending time is deleted, and the voice playing ending time of the next voice is stored.
Step S13, if the difference between the current time and the last time of finishing the voice playing is less than the preset time value, judging whether at least 2 transmission links of the audio data exist currently;
in this step, at least 2 existing transmission links of audio data have different sound effects when playing the audio data.
Step S14, if there are at least 2 audio data transmission links currently, pausing to respond to the voice playing instruction.
Because the terminal equipment has at least 2 transmission links which can generate different sound effects when playing the audio data, and if the playing interval time of the audio data of two adjacent times is too short, the user can distinguish that the playing sound effects of the audio data of the two adjacent times are different, therefore, the user can be prevented from hearing the voices with different playing sound effects in a short time by pausing the response of the voice playing instruction. However, if the playing interval time of the two adjacent audio data is greater than or equal to the preset time value, the user cannot clearly distinguish that the playing sound effects of the two adjacent audio data are different, and therefore, if the difference between the current time and the last time of finishing the voice playing is greater than or equal to the preset time value, it is not necessary to determine whether there are at least 2 transmission links for the audio data currently, and the currently received voice playing instruction is directly responded.
In the embodiment of the application, if the difference between the current time and the last time of finishing the voice playing is smaller than the preset time value, whether at least 2 transmission links of the audio data exist currently is judged, and if at least 2 transmission links of the audio data exist currently, the voice playing instruction is paused to be responded. Because the current time indicates the receiving time of the current voice playing instruction, when the difference value between the current time and the last time of finishing the voice playing is smaller than the preset time value and at least 2 transmission links of audio data exist in the terminal equipment currently, the currently received voice playing instruction is paused to be responded, so that different playing sound effects caused by playing voice by adopting different transmission links in a short time can be avoided.
In some embodiments, before the pause of step S14 responds to the voice play instruction, or after the pause of step S14 responds to the voice play instruction, the method further comprises:
the user is prompted that the current operation is too frequent.
In this embodiment, the user is prompted by voice prompt or text prompt, which prompts that the current operation is too frequent.
In some embodiments, in order to respond to each received voice playing instruction as much as possible, after step S14, the method includes:
and buffering the voice playing instructions in a newly added buffer layer according to a receiving sequence, setting a time interval for responding to two adjacent voice playing instructions to be greater than the preset time value, and responding to the voice playing instructions according to the time interval.
In this embodiment, since the time interval for responding to the two adjacent voice playing instructions is set to be greater than the preset time value, even if the voice playing instructions of the buffer layer are responded through different transmission links, a user cannot distinguish different sound effects generated when the voice is played through different transmission links.
In some embodiments, in order to respond to the received voice playing instruction as soon as possible and reduce the waiting time of the user, the responding to the voice playing instruction according to the time interval includes:
and responding to the voice playing instruction by adopting the at least 2 transmission links of the audio data in turn in the time interval.
In this embodiment, since the terminal device currently includes at least 2 transmission links for transmitting audio data, and after 1 of the transmission links (assumed as transmission link a) is used to transmit audio data, the start time for directly starting another transmission link (assumed as transmission link B) to transmit audio data corresponding to the next voice playing instruction is shorter than the start time for transmitting audio data corresponding to the next voice playing instruction by using transmission link a again, so that the current transmission link of the terminal device is used in turn to respond to the voice playing instruction in the corresponding time interval, which can reduce the waiting time of the user and improve the response speed of the voice playing instruction.
In some embodiments, if too many voice playing instructions are stored in the cache layer, since it takes a certain time to respond to the stored voice playing instructions, in order to avoid that it is difficult to timely respond to the voice playing instructions received at the current time, the voice playing instructions are cached in the newly added buffer layer according to the receiving sequence, the time interval for responding to two adjacent voice playing instructions is set to be greater than the preset time value, and responding to the voice playing instructions according to the time interval includes:
buffering the voice playing instructions in the newly added buffer layer according to the receiving sequence, and judging whether the number of the voice playing instructions stored in the buffer layer is greater than or equal to a preset instruction number threshold value or not;
if the number of the voice playing instructions stored in the buffer layer is larger than or equal to a preset instruction number threshold value, prompting a user whether to give up the stored voice playing instructions, if the user gives up the stored voice playing instructions, deleting the stored voice playing instructions, if the user does not give up the stored voice playing instructions, setting a time interval for responding to two adjacent voice playing instructions to be larger than the preset time value, and responding to the voice playing instructions according to the time interval.
In this embodiment, if the number of the voice playing instructions stored in the buffer layer is greater than or equal to the preset instruction number threshold, whether the user agrees to give up the stored voice playing instructions is prompted through the prompt boxes (such as the "agreement" prompt box and the "rejection" prompt box), if the user clicks the "agreement" prompt box, it is indicated that the user gives up the stored voice playing instructions, and if the user clicks the "rejection" prompt box, it is indicated that the user does not give up the stored voice playing instructions.
In some embodiments, if the number of the voice playing instructions stored in the buffer layer is greater than or equal to the preset instruction number threshold, and the user does not abandon the stored voice playing instructions, the user is prompted to select to pause or continue to send the voice playing instructions according to the prompt.
In some embodiments, when the response to the voice playing instruction according to the time interval is performed, if a new voice playing instruction is received, the voice playing instruction stored in the response buffer layer is paused, but the new voice playing instruction is responded.
In this embodiment, since the buffer layer stores the voice playing instruction, and the terminal device is likely to receive a new voice playing instruction in the process of responding to the voice playing instruction, it is possible to improve the user experience by preferentially responding to the new voice playing instruction.
In some embodiments, since the bluetooth headset generally includes at least 2 transmission links for audio data, in order to quickly determine whether the terminal device currently has at least 2 transmission links for audio data, the determining whether there are at least 2 transmission links for audio data specifically includes:
and judging whether the terminal equipment is accessed to the Bluetooth headset or not, and judging that at least 2 audio data transmission links exist currently if the terminal equipment is accessed to the Bluetooth headset.
For example, a bluetooth headset typically has 2 transmission links: the bluetooth Audio Distribution Profile (A2 DP) and the Synchronous Connection Oriented (SCO).
A2DP is a unidirectional high-quality audio data transmission link, commonly used for playing stereo music;
the SCO is a bidirectional audio data transmission link, which only supports audio data of 8K and 16K monophony, and can only be used for transmission of ordinary voice.
Certainly, if the terminal device does not have access to the bluetooth headset, the number of the current transmission links for transmitting the audio data of the terminal device needs to be acquired, and whether at least 2 transmission links for transmitting the audio data exist in the terminal device is judged according to the acquired number.
In order to more clearly describe the voice playing method provided in the embodiment of the present application, a specific application example is described below.
Suppose the terminal device is a mobile phone and the voice to be played is WeChat voice.
1. After the mobile phone receives the WeChat voice sent by other users, the mobile phone stores the WeChat voice in a main Central Processing Unit (CPU) of the mobile phone, and a CPU module of the mobile phone is arranged in the main CPU of the mobile phone and used for controlling the audio function of the mobile phone.
2. When a user clicks the WeChat voice of the WeChat chat interface to play the voice, corresponding voice information is extracted from a main CPU of the mobile phone and then is transmitted into a PCAP integrated chip through an AP-SAP voice bus to carry out digital signal and analog signal (D/A) conversion. The AP-SAP voice bus is one of pulse code modulation, and is characterized in that a continuous analog signal/digital signal is converted into a discrete digital signal/analog signal which is transmitted in a channel; the PCAP integrated chip is a chip integrated with multiple functions, which is referred to as a power supply for short.
3. And amplifying the voice information after D/A conversion through an amplifier built in the mobile phone, and pushing a mobile phone loudspeaker or a Bluetooth headset to perform pronunciation broadcasting.
Specifically, when the user clicks the WeChat voice of the WeChat chat interface, the mobile phone receives the voice playing instruction, then obtaining the current time, judging whether the difference value between the current time and the time of finishing the voice playing last time is less than the preset time value, if the difference value between the current time and the time of finishing the voice playing last time is less than the preset time value, judging whether at least 2 transmission links of audio data exist currently, if at least 2 transmission links of audio data exist currently, pausing to respond to the voice playing instruction, if the difference value between the current time and the last time of finishing the voice playing is larger than or equal to a preset time value (or, if 1 transmission link of audio data exists currently), the voice information after D/A conversion is amplified through an amplifier arranged in the mobile phone, and a mobile phone loudspeaker or a Bluetooth headset is pushed to perform sound broadcasting.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 3 shows a schematic structural diagram of a voice playing apparatus provided in an embodiment of the present application, where the voice playing apparatus may be applied to a terminal device, such as a mobile phone. For convenience of explanation, only the portions related to the embodiments of the present application are shown:
the voice playback apparatus 3 includes: a current time obtaining unit 31, a current time comparing unit 32, a transmission link number judging unit 33, and a voice playing instruction pause responding unit 34. Wherein:
a current time obtaining unit 31, configured to obtain a current time if the terminal device receives the voice playing instruction;
a current time comparing unit 32, configured to determine whether a difference between the current time and the time when the voice playing is finished last time is less than a preset time value;
specifically, when the terminal device responds to the adjacent voice playing instruction, the human ear can distinguish the time value of different playing sound effects as the preset time value, for example, the preset time value is set to 500ms, and of course, the preset time value may also be set to other values according to the actual situation, which is not limited herein.
In some embodiments, the voice playing apparatus 3 further includes:
and the last time voice playing ending time acquisition unit is used for acquiring the last time voice playing ending time.
Specifically, if the terminal device does not respond to other voice playing instructions before receiving the voice playing instruction, the recorded last time of ending the voice playing is obtained. If the terminal equipment is responding to other voice playing instructions when receiving the voice playing instructions, the terminal equipment stops responding to the other voice playing instructions, the current time is obtained, and the obtained current time is used as the time for finishing the voice playing last time.
In some embodiments, in order to reduce the memory usage, after responding to the next voice playing instruction, the recorded last voice playing ending time is deleted, and the voice playing ending time of the next voice is stored.
A number of transmission links determining unit 33, configured to determine whether there are at least 2 transmission links of audio data currently if a difference between the current time and the time of finishing the audio playing last time is less than a preset time value;
wherein, the existing transmission links of at least 2 pieces of audio data have different sound effects when the audio data are played.
And a voice playing instruction pause responding unit 34, configured to pause responding to the voice playing instruction if there are at least 2 transmission links of audio data currently.
In some embodiments, the voice playing apparatus 3 further includes:
and the direct response unit is used for directly responding to the currently received voice playing instruction without judging whether at least 2 transmission links of the audio data exist currently or not if the difference value between the current time and the time for finishing the voice playing last time is judged to be larger than or equal to the preset time value.
In the embodiment of the application, because the current time indicates the receiving time of the current voice playing instruction, when the difference value between the current time and the time for finishing the voice playing last time is smaller than the preset time value and the terminal equipment currently has at least 2 transmission links of audio data, the currently received voice playing instruction is paused to respond, so that different playing sound effects caused by playing voice by adopting different transmission links within a short time can be avoided.
In some embodiments, the voice playing instruction pause response unit 34 is specifically configured to: and if at least 2 audio data transmission links exist currently, prompting a user that the current operation is too frequent, and pausing to respond to the voice playing instruction. Or, the voice playing instruction pause response unit 34 is specifically configured to: and if at least 2 audio data transmission links exist currently, pausing to respond to the voice playing instruction to prompt a user to operate too frequently currently.
Specifically, the user is prompted to operate too frequently at present through voice prompt or text prompt and the like.
In some embodiments, in order to be able to respond as much as possible to each received voice playback instruction, the voice playback apparatus 3 further includes:
and the voice playing instruction sequence caching unit is used for caching the voice playing instructions in a newly added buffer layer according to a receiving sequence, setting a time interval for responding to two adjacent voice playing instructions to be greater than the preset time value, and responding to the voice playing instructions according to the time interval.
In this embodiment, since the time interval for responding to the two adjacent voice playing instructions is set to be greater than the preset time value, even if the voice playing instructions of the buffer layer are responded through different transmission links, a user cannot distinguish different sound effects generated when the voice is played through different transmission links.
In some embodiments, in order to respond to the received voice playing instruction as soon as possible and reduce the waiting time of the user, when the voice playing instruction sequence caching unit responds to the voice playing instruction according to the time interval, the voice playing instruction sequence caching unit includes:
and responding to the voice playing instruction by adopting the at least 2 transmission links of the audio data in turn in the time interval.
In this embodiment, since the terminal device currently includes at least 2 transmission links for transmitting audio data, and after 1 of the transmission links (assumed as transmission link a) is used to transmit audio data, the start time for directly starting another transmission link (assumed as transmission link B) to transmit audio data corresponding to the next voice playing instruction is shorter than the start time for transmitting audio data corresponding to the next voice playing instruction by using transmission link a again, so that the current transmission link of the terminal device is used in turn to respond to the voice playing instruction in the corresponding time interval, which can reduce the waiting time of the user and improve the response speed of the voice playing instruction.
In some embodiments, if too many voice playing instructions are stored in the cache layer, since it will take a certain time to respond to the stored voice playing instructions, in order to avoid that it is difficult to respond to the voice playing instructions received at the current time in time, the voice playing instruction sequence cache unit is specifically configured to:
buffering the voice playing instructions in the newly added buffer layer according to the receiving sequence, and judging whether the number of the voice playing instructions stored in the buffer layer is greater than or equal to a preset instruction number threshold value or not;
if the number of the voice playing instructions stored in the buffer layer is larger than or equal to a preset instruction number threshold value, prompting a user whether to give up the stored voice playing instructions, if the user gives up the stored voice playing instructions, deleting the stored voice playing instructions, if the user does not give up the stored voice playing instructions, setting a time interval for responding to two adjacent voice playing instructions to be larger than the preset time value, and responding to the voice playing instructions according to the time interval.
In this embodiment, if the number of the voice playing instructions stored in the buffer layer is greater than or equal to the preset instruction number threshold, whether the user agrees to give up the stored voice playing instructions is prompted through the prompt boxes (such as the "agreement" prompt box and the "rejection" prompt box), if the user clicks the "agreement" prompt box, it is indicated that the user gives up the stored voice playing instructions, and if the user clicks the "rejection" prompt box, it is indicated that the user does not give up the stored voice playing instructions.
In some embodiments, when the response to the voice playing instruction according to the time interval is performed, if a new voice playing instruction is received, the voice playing instruction stored in the response buffer layer is paused, but the new voice playing instruction is responded.
In some embodiments, since the bluetooth headset usually has at least 2 transmission links for audio data, in order to quickly determine whether at least 2 transmission links for audio data currently exist in the terminal device, when determining whether at least 2 transmission links for audio data currently exist, the transmission link quantity determining unit 33 is specifically configured to:
and judging whether the terminal equipment is accessed to the Bluetooth headset or not, and judging that at least 2 audio data transmission links exist currently if the terminal equipment is accessed to the Bluetooth headset.
Certainly, if the terminal device does not have access to the bluetooth headset, the number of the current transmission links for transmitting the audio data of the terminal device needs to be acquired, and whether at least 2 transmission links for transmitting the audio data exist in the terminal device is judged according to the acquired number.
Fig. 4 is a schematic diagram of a terminal device according to an embodiment of the present application. As shown in fig. 4, the terminal device 4 of this embodiment includes: a processor 40, a memory 41 and a computer program 42 stored in said memory 41 and executable on said processor 40. The processor 40, when executing the computer program 42, implements the steps in the various method embodiments described above, such as the steps S11-S14 shown in fig. 1. Alternatively, the processor 40, when executing the computer program 42, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 31 to 34 shown in fig. 3.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 42 in the terminal device 4. For example, the computer program 42 may be divided into a current time obtaining unit, a current time comparing unit, a transmission link quantity determining unit, and a voice playing instruction pause responding unit, where the specific functions of each unit are as follows:
the current time obtaining unit is used for obtaining the current time if the terminal equipment receives a voice playing instruction;
the current time comparison unit is used for judging whether the difference value between the current time and the last time of finishing the voice playing is smaller than a preset time value or not;
the number judgment unit of the transmission link is used for judging whether at least 2 transmission links of the audio data exist currently or not if the difference value between the current time and the time for finishing the voice playing last time is smaller than a preset time value;
and the voice playing instruction pause response unit is used for pausing and responding the voice playing instruction if at least 2 transmission links of the audio data exist currently.
The terminal device 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is merely an example of a terminal device 4 and does not constitute a limitation of terminal device 4 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal device 4, such as a hard disk or a memory of the terminal device 4. The memory 41 may also be an external storage device of the terminal device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal device 4. The memory 41 is used for storing the computer program and other programs and data required by the terminal device. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for playing speech, comprising:
if the terminal equipment receives a voice playing instruction, acquiring the current time, wherein the terminal equipment receives the voice playing instruction after the terminal equipment detects that the voice is clicked;
judging whether the difference value between the current time and the last time of finishing the voice playing is smaller than a preset time value or not;
if the difference value between the current time and the last time of finishing the voice playing is smaller than a preset time value, judging whether at least 2 audio data transmission links of the Bluetooth headset exist currently;
and if at least 2 audio data transmission links of the Bluetooth headset exist currently, pausing the response of the voice playing instruction.
2. The voice playing method according to claim 1, wherein before the pause responding to the voice playing instruction or after the pause responding to the voice playing instruction, comprising:
the user is prompted that the current operation is too frequent.
3. The voice playback method of claim 1, after the pausing in response to the voice playback instruction, comprising:
and buffering the voice playing instructions in a newly added buffer layer according to a receiving sequence, setting a time interval for responding to two adjacent voice playing instructions to be greater than the preset time value, and responding to the voice playing instructions according to the time interval.
4. The voice playing method according to claim 3, wherein said responding to the voice playing instruction according to the time interval comprises:
and responding to the voice playing instruction by adopting the at least 2 transmission links of the audio data in turn in the time interval.
5. The audio playing method according to claim 3, wherein the buffering the audio playing commands in the added buffer layer according to the receiving sequence, and setting the time interval for responding to two adjacent audio playing commands to be greater than the preset time value, and responding to the audio playing commands according to the time interval includes:
buffering the voice playing instructions in the newly added buffer layer according to the receiving sequence, and judging whether the number of the voice playing instructions stored in the buffer layer is greater than or equal to a preset instruction number threshold value or not;
if the number of the voice playing instructions stored in the buffer layer is larger than or equal to a preset instruction number threshold value, prompting a user whether to give up the stored voice playing instructions, if the user gives up the stored voice playing instructions, deleting the stored voice playing instructions, if the user does not give up the stored voice playing instructions, setting a time interval for responding to two adjacent voice playing instructions to be larger than the preset time value, and responding to the voice playing instructions according to the time interval.
6. The audio playing method according to any one of claims 1 to 5, wherein the determining whether there are at least 2 transmission links of audio data currently includes:
and judging whether the terminal equipment is accessed to the Bluetooth headset or not, and judging that at least 2 audio data transmission links exist currently if the terminal equipment is accessed to the Bluetooth headset.
7. A voice playback apparatus, comprising:
the terminal device comprises a current time acquisition unit, a time display unit and a time display unit, wherein the current time acquisition unit is used for acquiring current time if the terminal device receives a voice playing instruction, and the terminal device receives the voice playing instruction after detecting that voice is clicked;
the current time comparison unit is used for judging whether the difference value between the current time and the last time of finishing the voice playing is smaller than a preset time value or not;
the number judgment unit of the transmission link is used for judging whether the transmission link of at least 2 pieces of audio data of the Bluetooth headset exists currently or not if the difference value between the current time and the time for finishing the voice playing last time is smaller than a preset time value;
and the voice playing instruction pause response unit is used for pausing and responding the voice playing instruction if at least 2 transmission links of the audio data of the Bluetooth headset exist currently.
8. The voice playback apparatus of claim 7, wherein the voice playback apparatus further comprises:
and the voice playing instruction sequence caching unit is used for caching the voice playing instructions in a newly added buffer layer according to a receiving sequence, setting a time interval for responding to two adjacent voice playing instructions to be greater than the preset time value, and responding to the voice playing instructions according to the time interval.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201910363098.XA 2019-04-30 2019-04-30 Voice playing method and device and terminal equipment Active CN110086941B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910363098.XA CN110086941B (en) 2019-04-30 2019-04-30 Voice playing method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910363098.XA CN110086941B (en) 2019-04-30 2019-04-30 Voice playing method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN110086941A CN110086941A (en) 2019-08-02
CN110086941B true CN110086941B (en) 2021-03-26

Family

ID=67418164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910363098.XA Active CN110086941B (en) 2019-04-30 2019-04-30 Voice playing method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN110086941B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112511407B (en) * 2020-10-30 2022-04-29 国网山东省电力公司泰安供电公司 Self-adaptive voice playing method and system
CN114461169B (en) * 2022-01-07 2024-03-29 未来穿戴技术股份有限公司 Voice playing regulation and control method and system and wearable massage equipment
CN115393551A (en) * 2022-07-26 2022-11-25 合壹(上海)展览有限公司 Display system, method, device and storage medium with augmented reality effect

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713653A (en) * 2017-01-10 2017-05-24 广东欧珀移动通信有限公司 Audio/video playing control method and device, and terminal
CN107465595A (en) * 2017-07-25 2017-12-12 腾讯科技(深圳)有限公司 Equipment message control method for playing back, device, message playback equipment and storage medium
WO2018053159A1 (en) * 2016-09-14 2018-03-22 SonicSensory, Inc. Multi-device audio streaming system with synchronization
CN108319442A (en) * 2018-01-23 2018-07-24 维沃移动通信有限公司 A kind of control method and mobile terminal of audio broadcasting

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170278352A1 (en) * 2016-03-19 2017-09-28 Circle Eight Games Inc. Systems and methods for promotion of electronic games
CN108111953B (en) * 2017-12-21 2020-04-07 广东小天才科技有限公司 Audio sharing method and system based on TWS earphone and TWS earphone

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018053159A1 (en) * 2016-09-14 2018-03-22 SonicSensory, Inc. Multi-device audio streaming system with synchronization
CN106713653A (en) * 2017-01-10 2017-05-24 广东欧珀移动通信有限公司 Audio/video playing control method and device, and terminal
CN107465595A (en) * 2017-07-25 2017-12-12 腾讯科技(深圳)有限公司 Equipment message control method for playing back, device, message playback equipment and storage medium
CN108319442A (en) * 2018-01-23 2018-07-24 维沃移动通信有限公司 A kind of control method and mobile terminal of audio broadcasting

Also Published As

Publication number Publication date
CN110086941A (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN108733342B (en) Volume adjusting method, mobile terminal and computer readable storage medium
CN106557297B (en) Adapting audio output based on context
CN108521521B (en) Volume adjusting method, mobile terminal and computer readable storage medium
CN109525707B (en) Audio playing method, mobile terminal and computer readable storage medium
US20210409538A1 (en) Favorite-Object Display Method and Terminal
CN108566634B (en) Method and device for reducing continuous awakening delay of Bluetooth sound box and Bluetooth sound box
US20150346925A1 (en) Method for controlling screen of mobile terminal
CN110086941B (en) Voice playing method and device and terminal equipment
US9661133B2 (en) Electronic device and method for extracting incoming/outgoing information and managing contacts
JP7166294B2 (en) Audio processing method, device and storage medium
US10283168B2 (en) Audio file re-recording method, device and storage medium
US9806795B2 (en) Automated earpiece cache management
US9444927B2 (en) Methods for voice management, and related devices
EP3324289B1 (en) Contextual conversation mode for digital assistant
CN111083289A (en) Audio playing method and device, storage medium and mobile terminal
CN110175015B (en) Method and device for controlling volume of terminal equipment and terminal equipment
CN112394901A (en) Audio output mode adjusting method and device and electronic equipment
WO2020057241A1 (en) Method and apparatus for displaying application program, and terminal device
CN104572007A (en) Method for adjusting sound volume of terminal
US20200348804A1 (en) Sectional user interface for controlling a mobile terminal
CN102426838A (en) Voice signal processing method and user equipment
CN104571856A (en) Terminal
CN108536512B (en) Interface switching method and device and terminal equipment
US11108709B2 (en) Provide status message associated with work status
US20180366104A1 (en) Adjust output characteristic

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant