Karaoke singing method and device, terminal equipment and storage medium
By installing an operating system on the hardware board and using software to realize the accompaniment and mixing output of karaoke, the problems of high hardware costs and inconvenient maintenance of traditional karaoke systems are solved, and efficient and convenient karaoke system upgrade and maintenance are achieved. .
Patent Information
- Application Number
- CN202510026473.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-08
- Publication Date
- 2025-02-14
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional karaoke systems have high hardware costs and inconvenient maintenance and updates due to hardware MCU chip processing.
By installing an operating system on the hardware board, the accompaniment and mixing output of karaoke is realized using software, the karaoke on-demand operation signals, the accompaniment sound data of the kiraoke and the microphone collect audio data, the mixing process and output it to the playback device in real time. .
It reduces hardware costs, improves the convenience of system maintenance and updates, and achieves the same karaoke effect as traditional karaoke systems, while reducing upgrade and maintenance costs.
Smart Images

Figure CN119446098A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to a field, and in particular to a karaoke singing method, apparatus, terminal equipment and storage medium. Background Art
[0002] With the development of multimedia technology, karaoke has become very common. In traditional karaoke systems, the human voice collected by the microphone and the sound of the accompanying singer are mixed and input to the speaker for playback. This path is basically processed entirely by hardware MCU chips, which results in high hardware costs and inconvenient maintenance and updates. Summary of the invention
[0003] In view of this, the present application provides a karaoke singing method, which is applied to an operating system. The operating system is installed on a hardware board, and subsequent upgrades and maintenance are relatively convenient, thereby reducing upgrade and maintenance costs. The karaoke singing method includes: Obtaining the input karaoke on-demand operation signal; After the karaoke song on-demand operation signal is obtained, the song accompaniment sound data corresponding to the karaoke song on-demand operation signal is obtained; Get the audio data collected by the microphone; Mixing the song accompaniment sound data and the microphone collected audio data to obtain mixed playback data; The mixed playback data is output to the playback device in real time for playback.
[0004] In one embodiment, the step of mixing the song accompaniment sound data and the microphone collected audio data to obtain the mixed playback data includes: Create shared memory; The shared memory is used to synchronize and align the song accompaniment sound data and the microphone collected audio data to obtain mixed playback data.
[0005] In one embodiment, the data structure of the song accompaniment sound data includes the audio stream type, the number of audio channels, the baud rate, the sampling bit width and the audio data in sequence.
[0006] In one embodiment, the step of obtaining audio data collected by a microphone includes: Scan the USB recording device input by the hardware board; The recorded data in the USB recording device is obtained as the audio data collected by the microphone.
[0007] In one embodiment, the step of using the shared memory to synchronously align the song accompaniment sound data and the microphone collected audio data to obtain the mixed playback data includes: Get the audio format supported by the playback device; According to the audio supported format, converting the song accompaniment sound data into first data in the audio supported format; According to the audio support format, converting the audio data collected by the microphone into second data in the audio support format; The first data and the second data are mixed to obtain mixed playback data.
[0008] In addition, a karaoke device is provided, which is applied to an operating system, wherein the operating system is installed on a hardware board. The karaoke device comprises: A signal acquisition unit, used for acquiring an input karaoke on-demand operation signal; The accompaniment data acquisition unit is used to acquire the song accompaniment sound data corresponding to the K song on demand operation signal after acquiring the K song on demand operation signal; A microphone data acquisition unit, used to acquire audio data collected by the microphone; A mixing unit, used for mixing the song accompaniment sound data and the microphone collected audio data to obtain mixed playback data; The mixing and playing unit is used to output the mixed playing data to the playing device in real time for playing.
[0009] In one embodiment, the karaoke device comprises: A shared memory subunit, used to create shared memory; The synchronization alignment subunit is used to utilize the shared memory to perform synchronization alignment processing on the song accompaniment sound data and the microphone collected audio data to obtain the mixed playback data.
[0010] In one embodiment, the karaoke device further comprises: A scanning unit, used for scanning the USB recording device input by the hardware board; The data acquisition unit is used to acquire the recording data in the USB recording device as the audio data collected by the microphone.
[0011] In addition, a terminal device is also provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the above-mentioned karaoke method when executed by the processor.
[0012] In addition, a readable storage medium is also provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the karaoke method described above are implemented.
[0013] The karaoke singing method is applied to an operating system, and the operating system is installed on a hardware board. The karaoke singing method obtains an input karaoke song on-demand operation signal, obtains the song accompaniment sound data corresponding to the on-demand operation signal, obtains the audio data collected by a microphone, mixes the song accompaniment sound data and the audio data collected by the microphone, and obtains the mixed playback data; the mixed playback data is output to a playback device in real time for playback, and the karaoke accompaniment and mixing output of the karaoke song is realized in the form of software, and the karaoke effect similar to that of a traditional karaoke system is achieved as a whole, and karaoke is realized on the operating system, so that the microphone sound is collected and mixed with the song accompaniment sound data, and the later upgrade and maintenance are relatively convenient, thereby reducing the upgrade and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 A flow chart of a karaoke singing method provided in one embodiment of the present application; Figure 2 This is a flow chart of a method for obtaining mixed playback data in an embodiment of the present application; Figure 3 This is a flow chart of a method for obtaining audio data collected by a microphone in an embodiment of the present application; Figure 4 This is a flow chart of a method for obtaining mixed playback data in another embodiment of the present application; Figure 5 It is a structural block diagram of a karaoke singing device provided in one embodiment of the present application; Figure 6 This is a structural block diagram of a mixing unit provided in an embodiment of the present application; Figure 7 This is a structural block diagram of a microphone data acquisition unit provided in one embodiment of the present application; Figure 8 This is a schematic block diagram of the internal structure of a terminal device according to an embodiment of the present application.
[0015] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0016] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0017] In addition, if the descriptions of "first", "second", etc. are involved in this application, they are only used for descriptive purposes (such as for distinguishing the same or similar elements), and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0018] In view of this, if Figure 1 As shown, the present application provides a karaoke singing method, which is applied to an operating system, and the operating system is installed on a hardware board. The karaoke singing method includes: Step S110, obtaining an input karaoke song on-demand operation signal.
[0019] When a user uses a general karaoke software and selects songs to sing, the operating system will detect the relevant song playing actions and then obtain the input karaoke on-demand operation signal.
[0020] Step S120, after the on-demand operation signal is obtained, the song accompaniment sound data corresponding to the on-demand operation signal is obtained.
[0021] Step S130, obtaining audio data collected by the microphone.
[0022] After the on-demand operation signal is obtained, the audio data collected by the microphone can be further obtained.
[0023] In one embodiment, the audio data collected by the microphone may come from real-time audio data collected by the microphone, or may come from external audio data collected by the microphone obtained in the operating system.
[0024] Among them, a microphone recording unit is set in the operating system, which can simultaneously record the connected microphone audio devices.
[0025] Step S140, mixing the song accompaniment sound data and the microphone collected audio data to obtain mixed playback data.
[0026] Step S150: output the mixed playback data to the playback device in real time for playback.
[0027] In this embodiment, the designed hardware board can support the operating system, and the operating system can record the microphone on the hardware board and also support sound playback.
[0028] The karaoke singing method is applied to an operating system, and the operating system is installed on a hardware board. The karaoke singing method obtains an input karaoke singing on-demand operation signal, obtains the song singing sound data corresponding to the on-demand operation signal, obtains the audio data collected by the microphone, mixes the song singing sound data and the audio data collected by the microphone, and obtains the mixed playback data; the mixed playback data is output to a playback device in real time for playback, and the karaoke singing and mixing output are realized in the form of software, and the karaoke effect similar to that of a traditional karaoke system is achieved as a whole. K song is realized on the operating system, so that the microphone sound is collected and mixed with the song singing sound data, which is easy to upgrade and expand later, and the later upgrade and maintenance are relatively convenient, thereby reducing the upgrade and maintenance costs.
[0029] In one embodiment, Figure 2 As shown, step S140 includes: Step S141, creating a shared memory.
[0030] In one embodiment, the data structure of the shared memory includes the audio stream type, the number of audio channels, the baud rate, the sampling bit width and the audio data in sequence.
[0031] Step S142, using shared memory, synchronizes and aligns the song accompaniment sound data and the microphone collected audio data to obtain mixed playback data.
[0032] In one embodiment, the data structure of the song accompaniment sound data includes the audio stream type, the number of audio channels, the baud rate, the sampling bit width and the audio data in sequence.
[0033] Similarly, the microphone audio data structure includes the audio stream type, the number of audio channels, the baud rate, the sampling bit width and the audio data in sequence.
[0034] In one embodiment, Figure 3 As shown, step S130 includes: Step S131, scanning the USB recording device input by the hardware board.
[0035] Step S132, obtaining the recording data in the USB recording device as the microphone collected audio data.
[0036] In this embodiment, the operating system scans the USB recording device input by the hardware board to obtain the recording data in the USB recording device as the microphone collected audio data. The above-mentioned karaoke system dynamically adds microphone audio input (such as a recording device inserted into a USB) devices, and the software can also be added synchronously without replacing or updating the host hardware, further reducing the upgrade and maintenance costs.
[0037] In one embodiment, Figure 4 As shown, step S142 includes: Step S142a, obtaining the audio format supported by the playback device; Step S142b, converting the song accompaniment sound data into first data in an audio supported format according to the audio supported format.
[0038] Step S142c: According to the audio support format, the audio data collected by the microphone is converted into second data in the audio support format.
[0039] Step S142d: Mix the first data and the second data to obtain mixed playback data.
[0040] By converting the song accompaniment sound data and the microphone collected audio data into the audio support format data corresponding to the playback device, and then performing synchronous alignment mixing, the mixed playback data can be obtained.
[0041] In addition, if Figure 5 As shown, a karaoke device 200 is also provided, which is applied to an operating system, and the operating system is installed on a hardware board. The karaoke device 200 includes: The signal acquisition unit 210 is used to acquire an input karaoke on-demand operation signal; The accompaniment data acquisition unit 220 is used to acquire the song accompaniment sound data corresponding to the on-demand operation signal after acquiring the on-demand operation signal; A microphone data acquisition unit 230 is used to acquire audio data collected by the microphone; A mixing unit 240 is used to mix the song accompaniment sound data and the microphone collected audio data to obtain mixed playback data; The mixing and playing unit 250 is used to output the mixed playing data to the playing device in real time for playing.
[0042] In one embodiment, Figure 6 As shown, the mixing unit 240 includes: A shared memory subunit 241, used for creating a shared memory; The synchronization alignment subunit 242 is used to utilize the shared memory to perform synchronization alignment processing on the song accompaniment sound data and the microphone collected audio data to obtain the mixed playback data.
[0043] In one embodiment, Figure 7 As shown, the microphone data acquisition unit 230 includes: Scanning unit 231, used to scan the USB recording device input by the hardware board; The data acquisition unit 232 is used to acquire the recording data in the USB recording device as the microphone collected audio data.
[0044] In addition, a terminal device is also provided in an embodiment of the present application. The internal structure of the terminal device can be as follows: Figure 8 As shown. The terminal device includes a processor, a memory, a communication interface and a database connected via a system bus. The processor is used to provide computing and control capabilities. The memory of the terminal device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the terminal device is used to store data called by the computer program. The communication interface of the terminal device is used to communicate data with an external terminal. The input device of the terminal device is used to receive signals input by an external device. When the computer program is executed by the processor, a karaoke method as in the above embodiment is implemented.
[0045] Those skilled in the art will understand that Figure 8 The structure shown in is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the terminal device to which the solution of the present application is applied.
[0046] In addition, the present application also proposes a readable storage medium, the readable storage medium includes a computer program, and when the computer program is executed by a processor, the steps of the karaoke method described in the above embodiment are implemented. It can be understood that the readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.
[0047] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0048] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0049] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A karaoke singing method, characterized in that: Applied to an operating system, the operating system is installed on a hardware board, and the karaoke method includes: Obtaining the input karaoke on-demand operation signal; After the karaoke song on-demand operation signal is obtained, the song accompaniment sound data corresponding to the karaoke song on-demand operation signal is obtained; Get the audio data collected by the microphone; Mixing the song accompaniment sound data and the microphone collected audio data to obtain mixed playback data; The mixed playback data is output to the playback device in real time for playback.
2. The karaoke method according to claim 1, characterized in that: The song will be sung along The steps of mixing the sound data with the audio data collected by the microphone to obtain the mixed playback data include: Create shared memory; The shared memory is used to synchronize and align the song accompaniment sound data and the microphone collected audio data to obtain mixed playback data.
3. The karaoke method according to claim 1, characterized in that: The data structure of the song accompaniment sound data includes the audio stream type, the number of audio channels, the baud rate, the sampling bit width and the audio data in sequence.
4. The karaoke method according to claim 1, characterized in that: The step of obtaining audio data collected by a microphone comprises: Scan the USB recording device input by the hardware board; The recorded data in the USB recording device is obtained as the audio data collected by the microphone.
5. The karaoke method according to claim 2, characterized in that: The step of utilizing the shared memory to synchronously align the song accompaniment sound data and the microphone collected audio data to obtain the mixed playback data comprises: Get the audio format supported by the playback device; According to the audio supported format, converting the song accompaniment sound data into first data in the audio supported format; According to the audio support format, converting the audio data collected by the microphone into second data in the audio support format; The first data and the second data are mixed to obtain mixed playback data.
6. A karaoke singing device, characterized in that: Applied to an operating system, the operating system is installed on a hardware board, and the karaoke device includes: A signal acquisition unit, used for acquiring an input karaoke on-demand operation signal; The accompaniment data acquisition unit is used to acquire the song accompaniment sound data corresponding to the K song on demand operation signal after acquiring the K song on demand operation signal; A microphone data acquisition unit, used to acquire audio data collected by the microphone; A mixing unit, used for mixing the song accompaniment sound data and the microphone collected audio data to obtain mixed playback data; The mixing and playing unit is used to output the mixed playing data to the playing device in real time for playing.
7. The karaoke device according to claim 6, characterized in that: The karaoke device comprises: A shared memory subunit, used to create shared memory; The synchronization alignment subunit is used to utilize the shared memory to perform synchronization alignment processing on the song accompaniment sound data and the microphone collected audio data to obtain the mixed playback data.
8. The karaoke device according to claim 6, characterized in that: Also includes: A scanning unit, used for scanning the USB recording device input by the hardware board; The data acquisition unit is used to acquire the recording data in the USB recording device as the audio data collected by the microphone.
9. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the karaoke method as described in any one of claims 1 to 7 are implemented.
10. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the karaoke method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Karaoke method suitable for android smart phone
CN102710857A
Karaoke implementation method and system, and intelligent home terminal
CN107770628A
Audio input and output system and method and electronic equipment
CN115617303A