Method and device for playing voice, electronic device, and storage medium
Abstract
Embodiments of the present application provide a speech playback method and apparatus, an electronic device and a storage medium. The method specifically comprises: receiving speech data sent by first electronic devices to obtain a speech data set; receiving audio and video data sent by a second electronic device, the audio and video data comprising speech data selected for playback, and the speech data selected for playback comprising any one of the speech data clicked for playback in the speech data set; and pushing the audio and video data to each first electronic device. For a webcast system, audience users using second electronic devices can interact with anchor users by means of speech, so that audience users who input a text slow or who can't input a text can also easily express opinions in a webcast, thereby improving the user experience of the audience users and increasing target audiences of the webcast.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A method for playing voice, which is applied to a webcast server, the method comprising:
obtaining a voice data set based on received voice data sent by at least one first electronic device, the first electronic device having a first preset authority, and the voice data set comprising at least one piece of the voice data; pushing the voice data in the voice data set to a second electronic device; receiving audio-video data sent by the second electronic device, the second electronic device having a second preset authority, the audio-video data comprising voice data selected by a user of the second electronic device for playback, wherein the voice data selected by the user for playback comprises selected voice data of the voice data set clicked by the user for playback; and pushing the audio-video data to each first electronic device.
2 . The method of claim 1 , wherein the first preset authority comprises a viewing authority and a comment input authority, and the second preset authority comprises a recording authority, a playback authority, and an authority of selection for playback of the voice data set.
3 . The method of claim 1 , wherein the method further comprises:
pushing each voice data of the voice data set to the second electronic device sequentially in a single voice packet to enable the second electronic device to display a voice icon of the single voice packet for selection and playback; and pushing each voice data of the voice data set sequentially to other first electronic devices than the first electronic device that generates the voice data in the single voice packet, to enable the first electronic device to display the voice icon.
4 . The method of claim 1 , wherein the method further comprises:
obtaining a sequenced order by sequencing voice data based on a preset voice sequencing rule in response to the voice data set comprising multiple pieces of voice data.
5 . The method of claim 4 , wherein said pushing each voice data of the voice data set to the second electronic device sequentially; and pushing each voice data of the voice data set sequentially to other first electronic devices comprises:
pushing each voice data of the voice data set to the second electronic device in the sequenced order to enable the second electronic device to display the voice icon; and/or, pushing each voice data of the voice data set to other first electronic devices than that generates the voice data in the sequenced order to enable the first electronic device to display the voice icon.
6 . The method of claim 4 , wherein the preset voice sequencing rule comprise one or more of:
sequencing voice data based on a sequence of sending time of the voice data; sequencing the voice data based on a sequence of receiving time of the voice data; and sequencing the voice data based on a user characteristic parameter, wherein the user characteristic parameter comprises a user online duration parameter, an activity level parameter, and/or a temporarily assigned weight parameter.
7 . The method of claim 1 , wherein the method further comprises:
in response to receiving the audio-video data sent by the second electronic device, obtaining first audio voice data and second audio voice data by segmenting the voice data of the audio-video data, the first audio voice data comprising the voice data selected by the user of the second electronic device for playback, and the second audio voice data comprising voice data recorded by the second electronic device; wherein said pushing the audio-video data to each first electronic device comprises: pushing the audio-video data including the first audio voice data and the second audio voice data to the first electronic device; and controlling a playback volume of the second audio voice data lower than a playback volume of the first audio voice data in response to the first electronic device playing the video data.
8 . The method of claim 1 , further comprising:
in response to a cancellation request sent by the first electronic device, deleting the voice data of the voice data set sent by the first electronic device that sends the cancellation request.
9 . The method of claim 1 , further comprising:
in response to a control request sent by the second electronic device, deleting the voice data selected from the voice data set, or playing the selected voice data on a loop.
10 . A method for playing voice, which is applied to a first electronic device connected to a webcast server, the first electronic device having a first preset authority, the method comprising:
receiving audio-video data pushed by the server, the audio-video data comprising voice data recorded by a second electronic device connected to the server and voice data of a voice data set selected by a user of the second electronic device for playback, wherein the second electronic device has a second preset authority, and the voice data set comprises voice data uploaded by the first electronic device or another first electronic device; and playing the audio-video data.
11 . The method of claim 10 , wherein the first preset authority comprises a viewing authority and a comment input authority, and the second preset authority comprises a recording authority, a playback authority, and an authority of selection for playback of the voice data set.
12 . The method of claim 10 , wherein the audio-video data comprises first audio voice data and second audio voice data obtained by segmenting the voice data of the audio-video data, and said that playing the audio-video data comprises:
laying the first audio voice data and the second audio voice data so that a playback volume of the second audio voice data is lower than a playback volume of the first audio voice data.
13 . The method of claim 10 , further comprising:
in response to an input request, recording an audio signal input by a user to form the voice data; and sending the voice data to the server to enable the server to collect the voice data into the voice data set.
14 . The method of claim 13 , further comprising:
in response to a cancellation operation, sending a cancellation instruction formed by the cancellation operation to the server, wherein the cancellation instruction is used for controlling the server to delete the uploaded voice data.
15 . The method of claim 10 , wherein the method further comprises:
displaying each piece of voice data in the audio-video data on a display interface in a form of a voice icon.
16 . The method of claim 15 , further comprising:
in response to a voice playback command input by clicking or dragging the voice icon, playing the voice data indicated by the voice icon; decreasing a playback volume of a previous playback content; and restoring the playback volume of the previous playback content to a previous level when the playback of the voice data indicated by the voice icon is completed.
17 . A method for playing voice, which is applied to a second electronic device connected to a webcast server, the second electronic device having a second preset authority, the method comprising:
in response to a selection and playback instruction of a user, playing target voice data indicated by the selection and playback instruction; receiving audio-video data, comprising voice data, acquired by an acquisition device connected to the second electronic device; playing the audio-video data which comprises the target voice data; and sending the audio-video data to the server.
18 . The method of claim 17 , further comprising:
obtaining first audio voice data and second audio voice data by segmenting the voice data of the audio-video data, the first audio voice data comprising the target voice data, and the second audio voice data comprising the voice data acquired by the acquisition device; and in response to the selection and playback instruction of the user, playing the first audio voice data and the second audio voice data so that a playback volume of the second audio voice data is lower than a playback volume of the first audio voice data.
19 . The method of claim 17 , wherein the target voice data is voice data of a voice data set, the voice data set comprises at least one piece of voice data received by the server from at least one first electronic device, and the first electronic device has a first preset authority.
20 . The method of claim 17 , further comprising:
in response to a control instruction of the user, deleting the target voice data, playing the target voice data on a loop, or deleting the voice data in the audio-video data.Join the waitlist — get patent alerts
Track US2022291897A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.