Audio processing method, device, equipment and medium for seamless switching of DAB-FM
By detecting and adjusting the volume and playback progress of DAB and FM signals, the volume change and frame skipping problems during signal switching are solved, seamless audio switching is achieved, and user experience is improved.
Patent Information
- Application Number
- CN202210441882.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-25
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2042-04-25
AI Technical Summary
When the DAB signal is switched with the FM signal, the volume suddenly becomes larger or smaller, and the audio playback may skip frames, reducing the user experience.
By detecting the volume and playback progress of the current audio signal and the target audio signal, volume adjustment and time domain adjustment are performed to ensure that volume consistency and playback progress are maintained during switching.
It realizes seamless conversion during DAB-FM signal switching, avoids volume changes and audio frame skipping, and improves user experience.
Smart Images

Figure CN114822594B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of signal switching, and in particular to an audio processing method, device, equipment and medium for seamless switching of DAB-FM. Background Art
[0002] FM (Frequency Modulation) refers to the FM broadcasting system, and DAB (Digital Audio Broadcasting) is the third generation broadcasting system after FM broadcasting.
[0003] When listening to a DAB program, if the current DAB signal quality becomes weak, the device will automatically switch to FM of the same program. Similarly, when listening to an FM program, if the current FM signal quality becomes weak, the device will automatically switch to DAB of the same program.
[0004] However, due to differences in air signals and hardware devices, the volume of DAB programs and FM programs are different, and the progress of program playback is also different. Therefore, after the signal is switched, the volume heard by the user will suddenly become louder or quieter, and the audio playback will suddenly skip frames, which reduces the user experience. Summary of the invention
[0005] In view of the above, it is necessary to provide an audio processing method, device, equipment and medium for seamless switching between DAB and FM, aiming to solve the problems of sudden volume change and audio frame skipping when switching between DAB signals and FM signals.
[0006] A method for audio processing of DAB-FM seamless switching, the method comprising:
[0007] When it is detected that the signal quality of the current audio signal reaches the first configuration condition, obtaining the target audio signal;
[0008] detecting the volume of the current audio signal as a first volume, and detecting the volume of the target audio signal as a second volume;
[0009] Detecting the playback progress of the target program under the current audio signal as a first playback progress, and detecting the playback progress of the target program under the target audio signal as a second playback progress;
[0010] Obtaining a configuration step length and a volume threshold, and adjusting the volume according to the configuration step length, the volume threshold, the first volume, and the second volume;
[0011] Performing time domain adjustment according to the first playback progress and the second playback progress;
[0012] After performing the volume adjustment and the time domain adjustment, the current audio signal is switched to the target audio signal.
[0013] According to a preferred embodiment of the present invention, when the current audio signal is of a digital signal broadcast type, the target audio signal is of an FM broadcast type; or
[0014] When the current audio signal is of FM broadcast type, the target audio signal is of digital signal broadcast type.
[0015] According to a preferred embodiment of the present invention, the method further comprises:
[0016] When the signal quality of the current audio signal is less than the signal threshold, it is determined that the signal quality of the current audio signal meets the first configuration condition.
[0017] According to a preferred embodiment of the present invention, the volume adjustment according to the configuration step, the volume threshold, the first volume and the second volume includes:
[0018] Calculating a volume difference between the first volume and the second volume;
[0019] When the first volume is greater than the second volume, reducing the first volume according to the configured step size at every preset time interval until the volume difference is less than the volume threshold; or
[0020] When the first volume is less than the second volume, the first volume is increased according to the configuration step at every preset time interval until the volume difference is less than the volume threshold.
[0021] According to a preferred embodiment of the present invention, when the current audio signal is of the digital signal broadcast type and the target audio signal is of the FM broadcast type, the time domain adjustment according to the first playback progress and the second playback progress includes:
[0022] When the first playback progress is ahead of the second playback progress, the target program is slowed down according to the first configuration multiple under the current audio signal, and the target program in the slow playback stage is cached in the data space until the first playback progress is the same as the second playback progress; or
[0023] When the first play progress lags behind the second play progress, the target program is cached in the data space under the target audio signal.
[0024] According to a preferred embodiment of the present invention, after switching the current audio signal to the target audio signal, the method further includes:
[0025] When the first playback progress is ahead of the second playback progress, releasing the data stored in the data space; or
[0026] When the first playback progress lags behind the second playback progress, the target program is quickly played according to the second configuration multiple under the target audio signal until the data cached in the data space is played completely, and the data stored in the data space is cleared.
[0027] A DAB-FM seamless switching audio processing device, the DAB-FM seamless switching audio processing device comprising:
[0028] an acquisition unit, configured to acquire a target audio signal when it is detected that the signal quality of the current audio signal reaches a first configuration condition;
[0029] a detection unit, configured to detect a volume of the current audio signal as a first volume, and detect a volume of the target audio signal as a second volume;
[0030] The detection unit is further configured to detect the playback progress of the target program under the current audio signal as a first playback progress, and detect the playback progress of the target program under the target audio signal as a second playback progress;
[0031] an adjusting unit, configured to obtain a configuration step length and a volume threshold, and to adjust the volume according to the configuration step length, the volume threshold, the first volume, and the second volume;
[0032] The adjustment unit is further configured to perform time domain adjustment according to the first playback progress and the second playback progress;
[0033] A switching unit is used to switch the current audio signal to the target audio signal after performing the volume adjustment and the time domain adjustment.
[0034] According to a preferred embodiment of the present invention, when the current audio signal is of a digital signal broadcast type, the target audio signal is of an FM broadcast type; or
[0035] When the current audio signal is of FM broadcast type, the target audio signal is of digital signal broadcast type.
[0036] A computer device, comprising:
[0037] a memory storing at least one instruction; and
[0038] A processor executes the instructions stored in the memory to implement the audio processing method for seamless switching of DAB-FM.
[0039] A computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in a computer device to implement the audio processing method for seamless switching between DAB and FM.
[0040] It can be seen from the above technical solutions that the present invention can adjust the volume and playback progress when the audio signal is switched, thereby avoiding sudden volume changes and audio frame skipping problems after the signal is switched. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a flow chart of a preferred embodiment of the audio processing method for seamless switching of DAB-FM of the present invention.
[0042] Figure 2 It is a functional module diagram of a preferred embodiment of the audio processing device for seamless switching between DAB and FM of the present invention.
[0043] Figure 3 It is a structural schematic diagram of a computer device of a preferred embodiment of the audio processing method for realizing seamless switching between DAB and FM according to the present invention. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0045] like Figure 1 FIG. 1 is a flowchart of a preferred embodiment of the audio processing method for seamless switching between DAB and FM according to the present invention. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.
[0046] The DAB-FM seamless switching audio processing method is applied to one or more computer devices, wherein the computer device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, etc.
[0047] The computer device may be any electronic product that can perform human-computer interaction with a user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.
[0048] The computer device may also include a network device and / or a user device, wherein the network device includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud consisting of a large number of hosts or network servers based on cloud computing.
[0049] The server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.
[0050] Among them, Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0051] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0052] The network where the computer device is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.
[0053] S10: When it is detected that the signal quality of the current audio signal reaches a first configuration condition, a target audio signal is acquired.
[0054] In this embodiment, when the current audio signal is of a digital audio broadcasting (DAB) type, the target audio signal is of a frequency modulation (FM) type; or
[0055] When the current audio signal is of FM broadcast type, the target audio signal is of digital signal broadcast type.
[0056] In at least one embodiment of the present invention, when the signal quality of the current audio signal is poor, in order to avoid affecting the user's listening experience due to the poor signal quality, signal switching can be performed, that is, the first configuration condition is met. Specifically, when the signal quality of the current audio signal is less than a signal threshold, it is determined that the signal quality of the current audio signal meets the first configuration condition.
[0057] The signal threshold can be custom configured.
[0058] S11, detecting the volume of the current audio signal as a first volume, and detecting the volume of the target audio signal as a second volume.
[0059] Generally, the volume of audio is different under different signals. Therefore, it is necessary to detect the volume of the signal to be switched (i.e., the current audio signal) and the switching target (i.e., the target audio signal) so as to adjust the volume later and avoid sudden volume changes after signal switching.
[0060] S12, detecting the playing progress of the target program under the current audio signal as a first playing progress, and detecting the playing progress of the target program under the target audio signal as a second playing progress.
[0061] Generally, the audio playback progress is different under different signals. Therefore, it is necessary to detect the playback progress of the signal to be switched (i.e., the current audio signal) and the switching target (i.e., the target audio signal) so as to adjust the playback progress later and avoid frame skipping after signal switching.
[0062] S13, obtaining a configuration step length and a volume threshold, and adjusting the volume according to the configuration step length, the volume threshold, the first volume, and the second volume.
[0063] The configuration step and the volume threshold may be user-defined. For example, the configuration step may be 0.5 decibels, and the volume threshold may be 0.5 decibels.
[0064] In at least one embodiment of the present invention, the adjusting the volume according to the configuration step, the volume threshold, the first volume, and the second volume includes:
[0065] Calculating a volume difference between the first volume and the second volume;
[0066] When the first volume is greater than the second volume, reducing the first volume according to the configured step size at every preset time interval until the volume difference is less than the volume threshold; or
[0067] When the first volume is less than the second volume, the first volume is increased according to the configuration step at every preset time interval until the volume difference is less than the volume threshold.
[0068] The configuration of the preset time interval is to allow the user's hearing to adapt to the change in volume when adjusting the volume. For example, the preset time interval may be 0.5 seconds.
[0069] By adjusting the volume, the difference in audio volume under different audio signals can be gradually reduced when the audio signals are switched, avoiding sudden changes in volume caused by sudden signal switching, affecting the user's listening experience, and preventing the user from feeling a sudden change in volume.
[0070] S14: Perform time domain adjustment according to the first playback progress and the second playback progress.
[0071] Taking the current audio signal as the digital signal broadcast type and the target audio signal as the FM broadcast type as an example, the time domain adjustment according to the first playback progress and the second playback progress includes:
[0072] When the first playback progress is ahead of the second playback progress, the target program is slowed down according to the first configuration multiple under the current audio signal, and the target program in the slow playback stage is cached in the data space until the first playback progress is the same as the second playback progress; or
[0073] When the first play progress lags behind the second play progress, the target program is cached in the data space under the target audio signal.
[0074] The first configuration multiple can be configured according to actual needs, for example, the first configuration multiple can be 0.9 times.
[0075] The data space is a temporarily allocated storage space. Since the signal audio is received in real time and cannot be obtained in advance, the data space is allocated to cache the audio data, and the advanced audio is stored by stretching or delaying to achieve audio alignment between DAB and FM. In addition, the data in the data space can be cleared in time after being used, without occupying the system's resource space for a long time.
[0076] Through time domain adjustment, the problem of audio frame skipping when the signal is switched can be avoided, so that users will not hear repeated or missed audio when listening to the program, and there will be no sudden frame skipping in the listening experience.
[0077] S15, after performing the volume adjustment and the time domain adjustment, switching the current audio signal to the target audio signal.
[0078] Taking the current audio signal as the digital signal broadcast type and the target audio signal as the FM broadcast type as an example, after switching the current audio signal to the target audio signal, the method further includes:
[0079] When the first playback progress is ahead of the second playback progress, releasing the data stored in the data space; or
[0080] When the first playback progress lags behind the second playback progress, the target program is quickly played according to the second configuration multiple under the target audio signal until the data cached in the data space is played completely, and the data stored in the data space is cleared.
[0081] The second configuration multiple can be configured according to actual needs, for example, the second configuration multiple can be 1.1 times.
[0082] Among them, when DAB is ahead of FM, the current DAB is played slowly, and audio data of corresponding length is cached at the same time. The cache after switching is DAB background audio and can be released directly.
[0083] Among them, when FM is ahead of DAB, the FM audio cache is directly performed in the background. The cache after switching is the FM currently playing audio, and the cache can be cleared and released by playing at double speed.
[0084] By releasing the data space, there is cache space available when switching between FM and DAB next time, and the data space can be used back and forth multiple times without accumulating space resources.
[0085] The audio signal switching method of this embodiment can be applied to the DAB-FM (FM-DAB) switching function of a mobile radio device, such as a car DAB radio. The smooth performance of the audio during the switching process can achieve non-perceptual switching for users.
[0086] It can be seen from the above technical scheme that when the signal quality of the current audio signal is detected to reach the first configuration condition, the present invention obtains the target audio signal; detects the volume of the current audio signal as the first volume, and detects the volume of the target audio signal as the second volume; detects the playback progress of the target program under the current audio signal as the first playback progress, and detects the playback progress of the target program under the target audio signal as the second playback progress; obtains the configuration step and volume threshold, and adjusts the volume according to the configuration step, the volume threshold, the first volume and the second volume; performs time domain adjustment according to the first playback progress and the second playback progress; after performing the volume adjustment and the time domain adjustment, switches the current audio signal to the target audio signal. The present invention can adjust the volume and playback progress when the audio signal is switched, avoiding volume mutation and audio frame skipping problems after signal switching.
[0087] like Figure 2 , which is a functional module diagram of a preferred embodiment of the audio processing device for seamless switching of DAB-FM of the present invention. The audio processing device 11 for seamless switching of DAB-FM includes an acquisition unit 110, a detection unit 111, an adjustment unit 112, and a switching unit 113. The module / unit referred to in the present invention refers to a series of computer program segments that can be executed by the processor 13 and can complete fixed functions, which are stored in the memory 12. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.
[0088] When it is detected that the signal quality of the current audio signal reaches the first configuration condition, the acquisition unit 110 acquires the target audio signal.
[0089] In this embodiment, when the current audio signal is of a digital audio broadcasting (DAB) type, the target audio signal is of a frequency modulation (FM) type; or
[0090] When the current audio signal is of FM broadcast type, the target audio signal is of digital signal broadcast type.
[0091] In at least one embodiment of the present invention, when the signal quality of the current audio signal is poor, in order to avoid affecting the user's listening experience due to the poor signal quality, signal switching can be performed, that is, the first configuration condition is met. Specifically, when the signal quality of the current audio signal is less than a signal threshold, it is determined that the signal quality of the current audio signal meets the first configuration condition.
[0092] The signal threshold can be custom configured.
[0093] The detection unit 111 detects a volume of the current audio signal as a first volume, and detects a volume of the target audio signal as a second volume.
[0094] Generally, the volume of audio is different under different signals. Therefore, it is necessary to detect the volume of the signal to be switched (i.e., the current audio signal) and the switching target (i.e., the target audio signal) so as to adjust the volume later and avoid sudden volume changes after signal switching.
[0095] The detection unit 111 detects the playing progress of the target program under the current audio signal as the first playing progress, and detects the playing progress of the target program under the target audio signal as the second playing progress.
[0096] Generally, the audio playback progress is different under different signals. Therefore, it is necessary to detect the playback progress of the signal to be switched (i.e., the current audio signal) and the switching target (i.e., the target audio signal) so as to adjust the playback progress later and avoid frame skipping after signal switching.
[0097] The adjustment unit 112 obtains a configuration step and a volume threshold, and performs volume adjustment according to the configuration step, the volume threshold, the first volume, and the second volume.
[0098] The configuration step and the volume threshold may be user-defined. For example, the configuration step may be 0.5 decibels, and the volume threshold may be 0.5 decibels.
[0099] In at least one embodiment of the present invention, the adjusting unit 112 performs volume adjustment according to the configuration step, the volume threshold, the first volume, and the second volume, including:
[0100] Calculating a volume difference between the first volume and the second volume;
[0101] When the first volume is greater than the second volume, reducing the first volume according to the configured step size at every preset time interval until the volume difference is less than the volume threshold; or
[0102] When the first volume is less than the second volume, the first volume is increased according to the configuration step at every preset time interval until the volume difference is less than the volume threshold.
[0103] The configuration of the preset time interval is to allow the user's hearing to adapt to the change in volume when adjusting the volume. For example, the preset time interval may be 0.5 seconds.
[0104] By adjusting the volume, the difference in audio volume under different audio signals can be gradually reduced when the audio signals are switched, avoiding sudden changes in volume caused by sudden signal switching, affecting the user's listening experience, and preventing the user from feeling a sudden change in volume.
[0105] The adjustment unit 112 performs time domain adjustment according to the first playback progress and the second playback progress.
[0106] Taking the current audio signal as the digital signal broadcast type and the target audio signal as the FM broadcast type as an example, the adjustment unit 112 performs time domain adjustment according to the first playback progress and the second playback progress, including:
[0107] When the first playback progress is ahead of the second playback progress, the target program is slowed down according to the first configuration multiple under the current audio signal, and the target program in the slow playback stage is cached in the data space until the first playback progress is the same as the second playback progress; or
[0108] When the first play progress lags behind the second play progress, the target program is cached in the data space under the target audio signal.
[0109] The first configuration multiple can be configured according to actual needs, for example, the first configuration multiple can be 0.9 times.
[0110] The data space is a temporarily allocated storage space. Since the signal audio is received in real time and cannot be obtained in advance, the data space is allocated to cache the audio data, and the advanced audio is stored by stretching or delaying to achieve audio alignment between DAB and FM. In addition, the data in the data space can be cleared in time after being used, without occupying the system's resource space for a long time.
[0111] Through time domain adjustment, the problem of audio frame skipping when the signal is switched can be avoided, so that users will not hear repeated or missed audio when listening to the program, and there will be no sudden frame skipping in the listening experience.
[0112] After performing the volume adjustment and the time domain adjustment, the switching unit 113 switches the current audio signal to the target audio signal.
[0113] Taking the current audio signal as the digital signal broadcast type and the target audio signal as the FM broadcast type as an example, after the switching unit 113 switches the current audio signal to the target audio signal, when the first playback progress is ahead of the second playback progress, the data stored in the data space is released; or
[0114] When the first playback progress lags behind the second playback progress, the target program is quickly played according to the second configuration multiple under the target audio signal until the data cached in the data space is played completely, and the data stored in the data space is cleared.
[0115] The second configuration multiple can be configured according to actual needs, for example, the second configuration multiple can be 1.1 times.
[0116] Among them, when DAB is ahead of FM, the current DAB is played slowly, and audio data of corresponding length is cached at the same time. The cache after switching is DAB background audio and can be released directly.
[0117] Among them, when FM is ahead of DAB, the FM audio cache is directly performed in the background. The cache after switching is the FM currently playing audio, and the cache can be cleared and released by playing at double speed.
[0118] By releasing the data space, there is cache space available when switching between FM and DAB next time, and the data space can be used back and forth multiple times without accumulating space resources.
[0119] The audio signal switching method of this embodiment can be applied to the DAB-FM (FM-DAB) switching function of a mobile radio device, such as a car DAB radio. The smooth performance of the audio during the switching process can achieve non-perceptual switching for users.
[0120] It can be seen from the above technical scheme that when the signal quality of the current audio signal is detected to reach the first configuration condition, the present invention obtains the target audio signal; detects the volume of the current audio signal as the first volume, and detects the volume of the target audio signal as the second volume; detects the playback progress of the target program under the current audio signal as the first playback progress, and detects the playback progress of the target program under the target audio signal as the second playback progress; obtains the configuration step and volume threshold, and adjusts the volume according to the configuration step, the volume threshold, the first volume and the second volume; performs time domain adjustment according to the first playback progress and the second playback progress; after performing the volume adjustment and the time domain adjustment, switches the current audio signal to the target audio signal. The present invention can adjust the volume and playback progress when the audio signal is switched, avoiding volume mutation and audio frame skipping problems after signal switching.
[0121] like Figure 3 FIG. 1 is a schematic diagram of the structure of a computer device according to a preferred embodiment of the audio processing method for realizing seamless switching between DAB and FM according to the present invention.
[0122] The computer device 1 may include a memory 12 , a processor 13 and a bus, and may also include a computer program stored in the memory 12 and executable on the processor 13 , such as an audio processing program for seamless switching of DAB-FM.
[0123] Those skilled in the art will appreciate that the schematic diagram is merely an example of the computer device 1 and does not constitute a limitation on the computer device 1. The computer device 1 may be a bus-type structure or a star-type structure. The computer device 1 may also include more or less other hardware or software than shown in the diagram, or a different arrangement of components. For example, the computer device 1 may also include input and output devices, network access devices, etc.
[0124] It should be noted that the computer device 1 is only an example, and other existing or future electronic products that are suitable for the present invention should also be included in the protection scope of the present invention and included here by reference.
[0125] The memory 12 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 12 may be an internal storage unit of the computer device 1, such as a mobile hard disk of the computer device 1. In other embodiments, the memory 12 may also be an external storage device of the computer device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device 1. Further, the memory 12 may also include both an internal storage unit of the computer device 1 and an external storage device. The memory 12 may not only be used to store application software and various types of data installed in the computer device 1, such as the code of the audio processing program for seamless switching of DAB-FM, etc., but may also be used to temporarily store data that has been output or is to be output.
[0126] In some embodiments, the processor 13 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 13 is the control core (Control Unit) of the computer device 1, and uses various interfaces and lines to connect various components of the entire computer device 1, and executes or executes programs or modules stored in the memory 12 (for example, an audio processing program for seamless switching between DAB and FM, etc.), and calls data stored in the memory 12 to execute various functions of the computer device 1 and process data.
[0127] The processor 13 executes the operating system of the computer device 1 and various installed applications. The processor 13 executes the applications to implement the steps in the above-mentioned audio processing method embodiments for seamless switching of DAB-FM, for example Figure 1 Steps shown.
[0128] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to implement the present invention. The one or more modules / units may be a series of computer-readable instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the computer device 1. For example, the computer program may be divided into an acquisition unit 110, a detection unit 111, an adjustment unit 112, and a switching unit 113.
[0129] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, and includes a number of instructions for enabling a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a processor to execute the part of the audio processing method for seamless switching of DAB-FM described in various embodiments of the present invention.
[0130] If the module / unit integrated in the computer device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware devices through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of each of the above-mentioned method embodiments can be implemented.
[0131] The computer program includes computer program code, which may be in source code form, object code form, 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 flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory, etc.
[0132] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.
[0133] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0134] The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 The bus is represented by only one straight line, but it does not mean that there is only one bus or one type of bus. The bus is configured to realize the connection and communication between the memory 12 and at least one processor 13, etc.
[0135] Although not shown, the computer device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 13 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The computer device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0136] Furthermore, the computer device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used to establish a communication connection between the computer device 1 and other computer devices.
[0137] Optionally, the computer device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the computer device 1 and to display a visual user interface.
[0138] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0139] Figure 3 Only the computer device 1 having components 12-13 is shown, and it can be understood by those skilled in the art that Figure 3 The structure shown does not constitute a limitation on the computer device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0140] Combination Figure 1 The memory 12 in the computer device 1 stores a plurality of instructions to implement an audio processing method for seamless switching of DAB-FM, and the processor 13 can execute the plurality of instructions to implement:
[0141] When it is detected that the signal quality of the current audio signal reaches the first configuration condition, obtaining the target audio signal;
[0142] detecting the volume of the current audio signal as a first volume, and detecting the volume of the target audio signal as a second volume;
[0143] Detecting the playback progress of the target program under the current audio signal as a first playback progress, and detecting the playback progress of the target program under the target audio signal as a second playback progress;
[0144] Obtaining a configuration step length and a volume threshold, and adjusting the volume according to the configuration step length, the volume threshold, the first volume, and the second volume;
[0145] Performing time domain adjustment according to the first playback progress and the second playback progress;
[0146] After performing the volume adjustment and the time domain adjustment, the current audio signal is switched to the target audio signal.
[0147] Specifically, the specific implementation method of the processor 13 for the above instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0148] It should be noted that the data involved in this case were all obtained legally.
[0149] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0150] The present invention can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present invention can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0151] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0152] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0153] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0154] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0155] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the present invention can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0156] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. An audio processing method for seamless switching of DAB-FM, characterized in that: The audio processing method for seamless switching of DAB-FM comprises: When it is detected that the signal quality of the current audio signal reaches the first configuration condition, obtaining the target audio signal; detecting the volume of the current audio signal as a first volume, and detecting the volume of the target audio signal as a second volume; Detecting the playback progress of the target program under the current audio signal as a first playback progress, and detecting the playback progress of the target program under the target audio signal as a second playback progress; Obtaining a configuration step length and a volume threshold, and adjusting the volume according to the configuration step length, the volume threshold, the first volume, and the second volume, including: calculating a volume difference between the first volume and the second volume; when the first volume is greater than the second volume, reducing the first volume according to the configuration step length at a preset time interval until the volume difference is less than the volume threshold; or when the first volume is less than the second volume, increasing the first volume according to the configuration step length at a preset time interval until the volume difference is less than the volume threshold; Performing time domain adjustment according to the first playback progress and the second playback progress; After performing the volume adjustment and the time domain adjustment, the current audio signal is switched to the target audio signal.
2. The audio processing method for seamless switching of DAB-FM as claimed in claim 1, characterized in that: When the current audio signal is of a digital signal broadcast type, the target audio signal is of an FM broadcast type; or When the current audio signal is of FM broadcast type, the target audio signal is of digital signal broadcast type.
3. The audio processing method for seamless switching of DAB-FM according to claim 1, characterized in that: The method further comprises: When the signal quality of the current audio signal is less than the signal threshold, it is determined that the signal quality of the current audio signal meets the first configuration condition.
4. The audio processing method for seamless switching of DAB-FM as claimed in claim 2, characterized in that: When the current audio signal is of the digital signal broadcast type and the target audio signal is of the FM broadcast type, the time domain adjustment according to the first playback progress and the second playback progress includes: When the first playback progress is ahead of the second playback progress, the target program is slowed down according to the first configuration multiple under the current audio signal, and the target program in the slow playback stage is cached in the data space until the first playback progress is the same as the second playback progress; or When the first play progress lags behind the second play progress, the target program is cached in the data space under the target audio signal.
5. The audio processing method for seamless switching of DAB-FM as claimed in claim 4, characterized in that: After switching the current audio signal to the target audio signal, the method further includes: When the first playback progress is ahead of the second playback progress, releasing the data stored in the data space; or When the first playback progress lags behind the second playback progress, the target program is quickly played according to the second configuration multiple under the target audio signal until the data cached in the data space is played completely, and the data stored in the data space is cleared.
6. An audio processing device for seamless switching between DAB and FM, characterized in that: The DAB-FM seamless switching audio processing device comprises: an acquisition unit, configured to acquire a target audio signal when it is detected that the signal quality of the current audio signal reaches a first configuration condition; a detection unit, configured to detect the volume of the current audio signal as a first volume, and detect the volume of the target audio signal as a second volume; The detection unit is further configured to detect the playback progress of the target program under the current audio signal as a first playback progress, and detect the playback progress of the target program under the target audio signal as a second playback progress; an adjusting unit, configured to obtain a configuration step length and a volume threshold, and to adjust the volume according to the configuration step length, the volume threshold, the first volume, and the second volume, including: calculating a volume difference between the first volume and the second volume; when the first volume is greater than the second volume, reducing the first volume according to the configuration step length at a preset time interval until the volume difference is less than the volume threshold; or when the first volume is less than the second volume, increasing the first volume according to the configuration step length at a preset time interval until the volume difference is less than the volume threshold; The adjustment unit is further configured to perform time domain adjustment according to the first playback progress and the second playback progress; A switching unit is used to switch the current audio signal to the target audio signal after performing the volume adjustment and the time domain adjustment.
7. The audio processing device for seamless switching of DAB-FM as claimed in claim 6, characterized in that: When the current audio signal is of a digital signal broadcast type, the target audio signal is of an FM broadcast type; or When the current audio signal is of FM broadcast type, the target audio signal is of digital signal broadcast type.
8. A computer device, characterized in that: The computer device comprises: a memory storing at least one instruction; and A processor executes the instructions stored in the memory to implement the audio processing method for seamless switching of DAB-FM according to any one of claims 1 to 5.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in a computer device to implement the audio processing method for seamless switching of DAB-FM according to any one of claims 1 to 5.
Citation Information
Patent Citations
Control method and control device for audio playing sound volume, storage medium and mobile terminal
CN107371102A
Radio listening switching method and device
CN110912632A