Audio generation method, audio generation device, and storage medium
AssigneeTencent Music Entertainment Technology (Shenzhen) Co., Ltd.
InventorZhenhai Yan
Life of this patent
Estimating the term…
Abstract
An audio generation method, an audio generation device, and a storage medium are provided. The method includes: receiving an audio generation instruction input by a user, wherein the audio generation instruction is used to indicate a two-dimensional image that the user wants to embed into generated target audio; obtaining a target grayscale image of the two-dimensional image in response to the audio generation instruction; converting grayscale data of each pixel in the target grayscale image into frequency-domain data of each pixel in a spectrogram, to obtain a target spectrogram; and generating target audio corresponding to the target spectrogram by using the target spectrogram.
Claims17
An audio generation method, comprising:
- receiving an audio generation instruction input by a user, wherein the audio generation instruction is used to indicate a two-dimensional image that the user wants to embed into generated target audio;
- obtaining a target grayscale image of the two-dimensional image in response to the audio generation instruction;
- converting grayscale data of each pixel in the target grayscale image into frequency-domain data of each pixel in a spectrogram, to obtain a target spectrogram;
- and
- generating target audio corresponding to the target spectrogram by using the target spectrogram,
- wherein the method further comprises:
- receiving an audio selection instruction input by the user, wherein the audio selection instruction is used to indicate original audio required to generate the target audio, and obtaining an original spectrogram corresponding to the original audio in response to the audio selection instruction, and
- wherein converting the grayscale data of each pixel in the target grayscale image into the frequency-domain data of each pixel in the spectrogram, to obtain the target spectrogram comprises:
- processing frequency-domain data of each pixel in the original spectrogram by using the grayscale data of each pixel in the target grayscale image, to obtain the target spectrogram.
An audio generation device, comprising:
- a memory configured to store computer programs;
- and
- a processor configured to invoke the computer programs stored in the memory to:
- receive an audio generation instruction input by a user, wherein the audio generation instruction is used to indicate a two-dimensional image that the user wants to embed into generated target audio;
- obtain a target grayscale image of the two-dimensional image in response to the audio generation instruction;
- convert grayscale data of each pixel in the target grayscale image into frequency-domain data of each pixel in a spectrogram, to obtain a target spectrogram;
- and
- generate target audio corresponding to the target spectrogram by using the target spectrogram,
- wherein the processor is further configured to:
- receive an audio selection instruction input by the user, wherein the audio selection instruction is used to indicate original audio required to generate the target audio, and obtain an original spectrogram corresponding to the original audio in response to the audio selection instruction, and
- wherein to convert the grayscale data of each pixel in the target grayscale image into the frequency-domain data of each pixel in the spectrogram, to obtain the target spectrogram, the processor is configured to:
- process frequency-domain data of each pixel in the original spectrogram by using the grayscale data of each pixel in the target grayscale image, to obtain the target spectrogram.
A non-transitory computer storage medium comprising computer programs which, when running on an electronic device, are operable with the electronic device to:
- receive an audio generation instruction input by a user, wherein the audio generation instruction is used to indicate a two-dimensional image that the user wants to embed into generated target audio;
- obtain a target grayscale image of the two-dimensional image in response to the audio generation instruction;
- convert grayscale data of each pixel in the target grayscale image into frequency-domain data of each pixel in a spectrogram, to obtain a target spectrogram;
- and
- generate target audio corresponding to the target spectrogram by using the target spectrogram,
- wherein the computer programs are further operable with the electronic device to:
- receive an audio selection instruction input by the user, wherein the audio selection instruction is used to indicate original audio required to generate the target audio, and obtain an original spectrogram corresponding to the original audio in response to the audio selection instruction, and
- wherein to convert the grayscale data of each pixel in the target grayscale image into the frequency-domain data of each pixel in the spectrogram, to obtain the target spectrogram, the computer programs are operable with the electronic device to:
- process frequency-domain data of each pixel in the original spectrogram by using the grayscale data of each pixel in the target grayscale image, to obtain the target spectrogram.
Dependencies are inferred from the claim text.