WO2019051689A1 - 一种用于智能终端的声音控制方法及声音控制装置 - Google Patents

一种用于智能终端的声音控制方法及声音控制装置 Download PDF

Info

Publication number
WO2019051689A1
WO2019051689A1 PCT/CN2017/101639 CN2017101639W WO2019051689A1 WO 2019051689 A1 WO2019051689 A1 WO 2019051689A1 CN 2017101639 W CN2017101639 W CN 2017101639W WO 2019051689 A1 WO2019051689 A1 WO 2019051689A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
smart terminal
special effect
file
playing
Prior art date
Application number
PCT/CN2017/101639
Other languages
English (en)
French (fr)
Inventor
王琬玉
Original Assignee
深圳传音通讯有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳传音通讯有限公司 filed Critical 深圳传音通讯有限公司
Priority to PCT/CN2017/101639 priority Critical patent/WO2019051689A1/zh
Publication of WO2019051689A1 publication Critical patent/WO2019051689A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H1/00Details of electrophonic musical instruments
    • G10H1/36Accompaniment arrangements

Definitions

  • the present invention relates to the field of intelligent terminals, and in particular, to a sound control method and a sound control device for an intelligent terminal.
  • the smart terminal may be a smart device with an audio playing function, such as a smart phone, a tablet computer, or a multimedia player, and can play audio signals such as prompt sounds, music, and video sounds. Users often use the smart terminal to play audio files containing music, such as songs and piano music, to enjoy a rich cultural life.
  • an audio playing function such as a smart phone, a tablet computer, or a multimedia player
  • Users often use the smart terminal to play audio files containing music, such as songs and piano music, to enjoy a rich cultural life.
  • music such as songs and piano music
  • the user cannot make a substantial impact on the music being played, which is too monotonous and tedious.
  • adding special effects to music is a common means of music creation and processing. For example, adding sound effects such as drum sound, piano sound, applause, and disc sound often achieve unexpected hearing effects. Increased the fun of music.
  • an object of the present invention is to provide a sound control method and a sound control device for a smart terminal, by setting a special effect audio in the smart terminal, and determining whether the smart terminal is in a music playing process. Receiving the user's operation, and finally playing the special effect audio to achieve a variety of sound effects.
  • a first aspect of the present invention discloses a sound control method for a smart terminal, comprising the following steps:
  • the smart terminal runs an audio file containing music
  • any of the special effect audios are randomly played while the audio file is being run.
  • the special effect audio when the special effect audio is preset in the smart terminal, the special effect audio is at least two;
  • the smart terminal receives the click operation and the sliding touch operation once in the second time threshold, randomly selecting different special effects audio for the click operation and the sliding touch operation to play;
  • the smart terminal does not receive the click operation and the sliding touch operation once within the second time threshold, randomly select any special effect audio for the click operation and the sliding touch operation to play.
  • the first channel in the smart terminal when the smart terminal runs an audio file containing music, the first channel in the smart terminal is used; when any of the special effects audio is randomly played, the smart terminal is used.
  • the second channel in the smart terminal when any of the special effects audio is randomly played.
  • the audio file is mixed with the special effects audio and played.
  • the step of playing the audio file after mixing the special effect audio comprises:
  • a sound control apparatus for a smart terminal including:
  • a preset module in the smart terminal, preset at least one special effect audio whose operation time does not exceed a first time threshold preset in the smart terminal;
  • a determining module determining whether the smart terminal receives a click operation or a sliding touch operation
  • the playing module is connected to the determining module and the running module.
  • the running module runs the audio file and randomly plays any One of the special effects audio.
  • the special effects audio is at least two;
  • the play module includes:
  • the operation determining unit is connected to the determining module, and determines whether the smart terminal receives the click operation and the sliding touch operation once in a second time threshold preset by the smart terminal;
  • a first special effect audio playing unit connected to the operation determining unit, if the operation determining unit determines that the smart terminal receives the click operation and the sliding touch operation once within the second time threshold, Click and drag the touch operation to randomly select different special effects audio for playback;
  • a second special effect audio playing unit is connected to the operation determining unit, and if the operation determining unit determines that the smart terminal does not receive the click operation and the sliding touch operation within the second time threshold, respectively, Randomly select any special effects audio for playback by clicking and sliding touch operations.
  • the running module uses a first channel in the smart terminal when running an audio file containing music; the playing module randomly plays any of the special effects audio
  • the second channel in the smart terminal is used.
  • the playing module when the playing module randomly plays any of the special effects audio, the audio file is mixed with the special effect audio and played.
  • the playing module includes:
  • a first extracting unit extracting the special effect audio and decoding, to obtain a first decoded file
  • a second extracting unit extracting a segment of the audio file that is the same as the special effect audio playing time, and decoding, to obtain a second decoded file
  • a superimposing unit connected to the first extracting unit and the second extracting unit, superimposing the first decoded file and the second decoded file to obtain a third decoded file
  • FIG. 1 is a schematic flow chart of a sound control method for a smart terminal according to a preferred embodiment of the present invention
  • step S104 of FIG. 1 is a schematic flow chart of step S104 of FIG. 1 in accordance with a preferred embodiment of the present invention
  • step S104 in FIG. 1 is a schematic diagram of a specific process of step S104 in FIG. 1 in accordance with another preferred embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a sound control apparatus for a smart terminal according to a preferred embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a playback module of FIG. 4 according to a preferred embodiment of the present invention.
  • FIG. 6 is a schematic structural view of the play module of FIG. 4 according to another preferred embodiment of the present invention.
  • 10-Sound control device for intelligent terminal 11-preset module, 12-running module, 13-judging module, 14-playing module, 141-operation judging unit, 142-first special effect audio playing unit, 143- Two special effect audio playback units, 144 - first extraction unit, 145 - second extraction unit, 146 - superimposition unit, 147 - decoded file playback unit.
  • the sound control method includes the following steps:
  • S101 preset at least one running time in the smart terminal does not exceed a preset in the smart terminal. Special effects audio for the first time threshold.
  • the smart terminal may be a smart device with an audio playing function, such as a smart phone, a tablet computer, or a multimedia player, and can play audio signals such as prompt sounds, music, and video sounds.
  • At least one special effect audio is preset in the smart terminal, and the special effect audio refers to an audio file that can play a special sound effect, such as playing a drum sound, a piano sound, a clapping sound, a disc sound, and the like having distinctive features.
  • the special effect audio is stored in the storage medium of the smart terminal, and the running time of each special effect audio playing is limited, that is, does not exceed a first time threshold preset in the smart terminal.
  • the first time threshold is preferably up to 5 seconds.
  • the running time of the special effect audio that is, if the playing time is too long, affects the auditory effect of the music that is being played, and has a feeling of adding a snake.
  • the special effect audio is preset to be played in the subsequent steps.
  • the special effect audio is a format recognizable by the smart terminal, such as an MP3 format, a WMA format, or the like.
  • S102 The smart terminal runs an audio file containing music.
  • This step runs an audio file, which is a multimedia file containing sound information such as speech recordings, songs, musical performances, and the like.
  • Common audio file formats are AU format, AIFF format, VQF format, CD format, APE format, MP3 format, RealAudio format, WMA format, MIDI format, WAV format.
  • the format of the audio file should be a digital format, which can be recognized and opened by the smart terminal, such as an MP3 format, a WMA format, and the like.
  • the content of the audio file is also required to include music, such as songs, musical performances, or other forms of melody.
  • S103 Determine whether the smart terminal receives a click operation or a sliding touch operation.
  • the smart terminal receives an external operation, and the external operation is a click operation or a sliding touch operation.
  • the operation of the user touching the touch screen and separating quickly is a click operation.
  • the position where the click operation occurs is not limited, and the click operation at any position on the touch screen is effective.
  • the sliding touch operation continuously slides a distance after the user touches on the touch screen, and then comes out of contact with the touch screen.
  • the sliding operation leaves a sliding track on the touch screen, and the starting position of the sliding track and the ending position should be no less than 100 pixels.
  • the smart terminal acquires pixel coordinates of the start position and the end position of the sliding operation, and then calculates the distance.
  • the starting position and the ending position can be determined by the detected time sequence.
  • the first detected position must be the starting position, and the last detected position is the ending position.
  • the smart terminal receiving any one of the click operation or the sliding touch operation in the step is regarded as valid.
  • step S103 When it is determined in step S103 that the smart terminal receives the click operation or the slide operation, this step is performed. Another condition that is executed in this step is that the audio file is still running, and the determining method is to obtain the state of the running thread from the task manager of the smart terminal, and determine whether the process of the video file is running.
  • the content of this step is to randomly play any of the special effects audio.
  • the special effect audio A, the special effect audio B and the special effect audio C are pre-stored in the smart terminal, and one of the three special effect audios is randomly selected for playing.
  • the special effect audio is played, the operation of the audio file is normally performed without interruption.
  • the first channel in the smart terminal when the smart terminal runs an audio file containing music, the first channel in the smart terminal is used; when any of the special effects audio is randomly played, the smart terminal is used.
  • the second channel in the smart terminal when any of the special effects audio is randomly played, the smart terminal is used.
  • the preferred embodiment preferably optimizes the implementation of the audio file and the special effect audio of the smart terminal. For the same speaker, in theory, only one sound signal can be played at the same time. If the special effect audio is played while the audio file is running, a conflict will occur, and this contradiction needs to be solved.
  • the solution of this embodiment is to play the audio file and the special effect audio separately by using different channels.
  • Sound Channel refers to the independent audio signals that are collected or played back in different spatial positions during recording or playback.
  • the number of channels is the number of sources when the sound is recorded or the number of speakers corresponding to the playback.
  • the smart terminal in this embodiment includes at least two channels, that is, a first channel and a second channel.
  • the two channels are independent of software and hardware, with their own speakers, power amplifier circuits and decoders, so that two audios can be played separately. The user will hear the sound from two channels at the same time, that is, the music that is normally played and the special effect sound that is played corresponding to the user's operation.
  • the audio file is mixed with the special effects audio and played.
  • the problem of simultaneous playback of two audios is solved by means of mixing.
  • Mixing is a common step in music production. It is also abbreviated as MIX. It combines sound from multiple sources into a single stereo (Stereo) or mono (Mono).
  • the mixing can be implemented either in hardware or in software, and the name of the mixing device is a mixer.
  • a software type mixer is a combination of multiple audio files and line input audio signals to synthesize separate audio files.
  • the audio data in two or more audio files is first decoded by the decoder into two or more analog signals, and then two or more analog signals are superimposed by the mixer to become one. Analog signal, and finally the analog signal output is played.
  • the superimposed analog signal may also be encoded into a digital audio format by an encoder to reform a combined audio file.
  • Step S104 includes:
  • S104-1 Determine whether the smart terminal receives the click operation and the sliding touch operation each time within a second time threshold preset by the smart terminal.
  • the smart terminal receives the click operation and the sliding touch operation once in the second time threshold. That is, the user performs a click operation and a sliding touch operation respectively within the second time threshold.
  • the second time threshold is preferably up to 1 minute. If the second time threshold is too long, the judgment period of the two operations is too long, and the difference effect of different special effects audio is not reflected.
  • the smart terminal starts timing regardless of whether the user performs a click operation or a sliding touch operation.
  • the timing is ended, and it is determined whether the interval between the two operations is less than If the second time threshold is less than, the determination in this step is established. If the user's multiple operation types are the same as the first operation type, for example, both click operations or sliding touch operations, the timing is started from the last operation.
  • S104-2 If the smart terminal receives the click operation and the sliding touch operation once in the second time threshold, randomly selecting different special effects audio for the click operation and the sliding touch operation to play.
  • step S104-1 determines whether the smart terminal receives the click operation and the sliding touch operation once within the second time threshold.
  • the core of this step is that the special effects audio corresponding to the click operation and the sliding touch operation are different to generate different sound effects corresponding to different kinds of operations.
  • the smart terminal randomly selects one special effect audio to play in all special effects audio, and records the played special effect audio as the first special effect audio;
  • the smart terminal first excludes the first special effect audio, performs random selection in the remaining special effect audio, and then plays the selected special effects audio.
  • the smart terminal cancels the recording of the first special effect audio, so that the random selection is continued in all the special effect audios in the next operation.
  • the smart terminal pre-stores the special effect audio A, the special effect audio B, and the special effect audio C.
  • the smart terminal receives a click operation, one of the three special effect audios is randomly selected for playing, for example, selecting the special effect audio B.
  • Playing recording the special effect audio B as the first special effect audio; then, after the smart terminal receives a sliding touch operation within the second time threshold, randomly selecting one of the special effect audio A and the special effect audio C for playing; after the playing is completed The recording of the special effect audio B is released, and the next reception operation is still randomly selected from the three special effect audios.
  • S104-3 If the smart terminal does not receive the click operation and the sliding touch operation once within the second time threshold, randomly selecting any special effect audio for the click operation and the sliding touch operation to play.
  • step S104-1 determines that it is a special In the case, different types of operations are received within the second time threshold, and this step performs a situation in which the operation is otherwise received in addition to the special case.
  • the content of this step is to randomly select any special effect audio to play, that is, randomly select one of all pre-stored special effects audio for playing. For example, if the time interval for the smart terminal to receive the two operations is greater than the second time threshold, then a special effect audio play is randomly selected corresponding to the two operations, and each random selection is independent and does not affect each other.
  • step S104 it is a schematic diagram of a specific process in step S104 in FIG. 1 in accordance with another preferred embodiment of the present invention.
  • This embodiment is a specific step in the case where the mixing mode is used in step S104, and the step S104 includes:
  • This step randomly selects a special effect audio to decode the special effect audio.
  • the special effect audio and audio files stored therein are in a digital format, that is, the analog signal stored in the special effect audio and audio file is not an analog signal directly representing the sound signal, but the analog signal is encoded according to the coding rule.
  • the compressed digital information if you want to play the special effect audio, you need to first decode the special effect audio and restore it to an analog signal.
  • a decoding process is performed, and the special effect audio is decoded to obtain a first decoded file including an analog signal.
  • S104-5 Extract a segment of the audio file that is the same as the special effect audio playing time and decode the file to obtain a second decoded file.
  • This step is similar to the execution of the step S104-4, and is also a decoding operation, and the executed object is the same segment of the audio file as the special effect audio playing time. Since the playing time of the special effect audio is less than the first time threshold, in normal case, the next song is about 3 minutes, and the special effect audio is far less than the playing time of the audio file, so the effect is synchronously played. For audio and audio files, it is only necessary to mix at the time of synchronous playback, so it is only necessary to decode the segments in the audio file that have the same playback time as the special effects audio.
  • the playing time of the special effect audio is recorded in the file of the special effect audio, which is a readable attribute, and then the playing progress of the audio file is obtained when the special effect audio is ready to start playing, and then the special effect audio is accumulated backwards.
  • the playing time is further cut to obtain a segment of the audio file, and finally the decoding is performed to obtain the second decoded file.
  • the first decoded file and the second decoded file respectively obtained in steps S104-4 and S104-5 are superimposed.
  • the first decoded file and the second decoded file record analog signal information, and the amplitudes of the two analog signals are summed on the same time scale, and finally the new analog signal information is obtained and stored as the third decoding. file.
  • This step performs a playback operation on the third decoded file, since the third decoded file is already an analog signal, Therefore, it can be output by hardware, and then amplified by the power amplifier circuit and output to the speaker.
  • the smart terminal resumes normal play of the audio file, and ends the mix play mode.
  • the sound control apparatus 10 includes:
  • the preset module 11 presets, in the smart terminal, at least one special effect audio whose running time does not exceed a first time threshold preset in the smart terminal.
  • the preset module 11 can obtain the special effect video from the outside through the wireless communication module and the serial communication module of the smart terminal, and store the special effect audio in the storage medium of the smart terminal, and each special effect audio player
  • the running time is limited, that is, does not exceed a first time threshold preset in the smart terminal.
  • the first time threshold is preferably up to 5 seconds.
  • the preset module 11 presets the special effect audio
  • the special effect audio is a format recognizable by the smart terminal, such as an MP3 format, a WMA format, or the like.
  • Run module 12 to run an audio file containing music.
  • the running module 12 is capable of recognizing and opening the audio file, wherein the format of the audio file should be a digital format, such as an MP3 format, a WMA format, or the like.
  • the operation module 12 runs the audio file, if other operations of the user are not received, the operation module 12 continues to run until the end of the audio file playback.
  • the determining module 13 determines whether the smart terminal receives a click operation or a sliding touch operation.
  • the determining module 13 obtains external operation information from the touch screen of the smart terminal, including a click operation and a sliding touch operation.
  • the click operation the click operation at any position on the touch screen is determined to be valid by the determination module 13.
  • the sliding operation leaves a sliding track on the touch screen, and the starting position of the sliding track and the ending position should be no less than 100 pixels.
  • the determining module 13 obtains pixel coordinates of the start position and the end position of the sliding operation, and then calculates the distance to determine whether the sliding touch operation is established.
  • the starting position and the ending position can be determined by the detected time sequence. The first detected position must be the starting position, and the last detected position is the ending position.
  • the smart terminal receiving any one of the click operation or the sliding touch operation is determined by the determination module 13 to be valid.
  • the playing module 14 is connected to the determining module 13 and the running module 12, and when the determining module 13 determines that the smart terminal receives the click operation or the sliding touch operation, the running module 12 runs the audio file simultaneously. Randomly play any of the special effects audio.
  • the playing module 14 acquires the judgment result from the judging module 13 and performs an operation.
  • the playing module 14 acquires the state of the running thread from the task manager of the smart terminal, and determines whether the process of the video file is running; only when the video file is still running, the playing module 14 The effect audio will be played. Since the special effect audio is in a digital format, the software open mode is supported, and thus can be opened and played by the play module 14. If the effect audio is two or more, the playing module 14 randomly selects one of the special effect audios to perform a playing operation.
  • the running module 12 uses a first channel in the smart terminal when running an audio file containing music; the playing module 14 randomly plays any of the above In the case of special effects audio, the second channel in the smart terminal is used.
  • the running module 12 and the playing module 14 respectively correspond to different channels, so as to independently perform audio running or playing operations without interfering with each other.
  • the playing module 14 when the playing module 14 randomly plays any of the special effects audio, the audio file is mixed with the special effect audio and played.
  • the playing module 14 performs sound mixing by using a software manner.
  • the playing module 14 includes a decoder and a mixer, and the decoder converts the special effect audio and audio files in digital format into two analog signals; then the mixer superimposes the two analog signals into one analog signal. Finally, the analog signal output is played.
  • the playing module plays the mixed signal
  • the running module 12 no longer outputs the audio signal, but the audio file still advances the playing progress.
  • the special effect audio playback is completed, the playing module 14 stops mixing, and the running module 12 restores the audio signal output according to the current playing progress.
  • FIG. 5 is a schematic structural diagram of a playback module in FIG. 4 according to a preferred embodiment of the present invention.
  • the preset module 11 presets the special effect audio in the smart terminal, the special effect audio is used.
  • the playing module 14 includes:
  • the operation determining unit 141 is connected to the determining module 13 to determine whether the smart terminal receives the click operation and the sliding touch operation once in a second time threshold preset by the smart terminal.
  • the operation determining unit 141 acquires the operation type and time received by the smart terminal from the determining module 13, and then determines whether the smart terminal receives the click operation and the sliding touch operation within the second time threshold. once.
  • the operation determining unit 141 learns that the smart terminal receives an operation, it starts timing, and when receiving an operation different from the last operation type, the timing is ended, and it is determined whether the interval between the two operations is smaller than the second. If the time threshold is less than, the judgment of this step is established. If the operation determining unit 141 determines that the second operation type of the user is the same as the type of the first operation, for example, both the click operation or the sliding touch operation, the second operation is started. Start timing again.
  • the first special effect audio playing unit 142 is connected to the operation determining unit 141, and if the operation determining unit 141 determines that the smart terminal receives the click operation and the sliding touch operation once within the second time threshold, Randomly selecting different special effects audio for the click operation and the sliding touch operation to play.
  • the first effect audio playback unit 142 acquires a determination result from the operation determination unit connection 141, and performs an operation when the smart terminal receives the click operation and the sliding touch operation once within the second time threshold.
  • the first effect audio playing unit 142 randomly plays different special effect audios for the click operation and the sliding touch operation to generate different sound effects corresponding to different kinds of operations.
  • the first effect audio playing unit 142 acquires the first operation execution, randomly selects one special effect audio for playing in all the special effect audios, and records the played special effect audio as the first special effect audio; when the second time threshold is When another operation occurs within the first special effect audio playback unit 142, the first special effect audio is first excluded, the remaining special effect audio is randomly selected, and then the selected special effect audio is played. After the special effect audio is played for the second time in the second time threshold, the first special effects audio playing unit 142 cancels the recording of the first special effect audio, so that the random selection is continued in all the special effect audios in the next operation.
  • the second effect audio playing unit 143 is connected to the operation determining unit 141, and if the operation determining unit 141 determines that the smart terminal does not receive the click operation and the sliding touch operation once within the second time threshold, Then, any special effect audio is randomly selected for the click operation and the sliding touch operation to play.
  • the second effect audio playback unit 143 obtains the determination result from the operation determining unit 141. If the determination is not established, the smart terminal does not receive the click operation and the sliding touch operation once in the second time threshold. Then perform the operation.
  • the second special effect audio playing unit 143 randomly selects one of all the pre-stored special effects audios to play, and randomly selects each time the special effect audio is played, which does not affect each other.
  • FIG. 6 is a schematic structural diagram of the playing module in FIG. 4 according to another preferred embodiment of the present invention
  • the playing module 14 plays the special effect audio in a mixing manner
  • the playing module 14 includes:
  • the first extracting unit 144 extracts the special effect audio and decodes it to obtain a first decoded file.
  • the first extracting unit 144 may be a decoder that performs a decoding operation on the digital effect audio to restore the analog signal, and the set of the analog signals is the first decoded file.
  • the second extracting unit 145 extracts a segment of the audio file that is the same as the special effect audio playing time and decodes it to obtain a second decoded file.
  • the second extracting unit 145 may be a decoder, and the executed object is a segment of the audio file that has the same playing time as the special effect audio.
  • the second extracting unit 145 may obtain a playing duration from the readable attributes of the special effect audio, and then acquire a segment equal to the playing duration from the audio file according to the playing duration to perform a decoding operation.
  • the set of analog signals obtained after decoding is the second decoded file.
  • the superimposing unit 146 is connected to the first extracting unit 144 and the second extracting unit 145, and superimposes the first decoded file and the second decoded file to obtain a third decoded file.
  • the superimposing unit 146 acquires the first decoded file and the second decoded file from the first extracting unit 144 and the second extracting unit 145, respectively. Since the first decoded file and the second decoded file all record analog signal information, the superimposing unit 146 sums the amplitudes of the two analog signals on the same time scale, and finally obtains a new analog signal set. , stored as a third decoded file.
  • the decoded file playing unit 147 plays the third decoded file.
  • the decoded file playback unit 147 acquires the third decoded file from the superimposing unit 146 and plays it. Since the third decoded file is already an analog signal, the decoded file playback unit 147 can output the electrical signal as a hardware mode, and then amplified by the power amplifier circuit and output to the speaker. After the decoding file playing unit 147 finishes executing, the occupation of the channel is released, and the running module 12 resumes normal playing of the audio file, and ends the mixing playing mode.

Abstract

本发明提供了一种用于智能终端的声音控制方法及声音控制装置,所述声音控制方法包括以下步骤:于所述智能终端内预设至少一个运行时长不超过一预设于所述智能终端内的第一时间阈值的特效音频;所述智能终端运行一包含音乐的音频文件;判断所述智能终端是否接收一点击操作或滑动触摸操作;当所述智能终端接收所述点击操作或滑动触摸操作时,则运行所述音频文件的同时,随机播放任一所述特效音频。本发明的技术方案实现在播放音乐时支持用户自主加入特效声音,提供了新的互动方式;改变一成不变的音乐播放方式,增加趣味性。

Description

一种用于智能终端的声音控制方法及声音控制装置 技术领域
本发明涉及智能终端领域,尤其涉及一种用于智能终端的声音控制方法及声音控制装置。
背景技术
所述智能终端,可以是智能手机、平板电脑、多媒体播放器等具备音频播放功能的智能设备,可以播放提示音、音乐、视频声音等音频信号。用户常使用所述智能终端播放歌曲、钢琴曲等含有音乐的音频文件,以享受丰富的文化生活。目前的智能终端播放音乐时,只有播放、暂停、上一曲、下一曲及控制播放进度等最基本的播放控制方式,用户不能对正在播放的音乐作出实质性的影响,过于单调和乏味。随着音乐文化的多元发展,在音乐中添加特效是常用的音乐创作和处理手段,例如添加鼓声、钢琴声、鼓掌声、打碟音等声音特效,往往会取得意料不到的听觉效果,增加了音乐的趣味性。
因此如何为用户提供在所述智能终端的播放音乐时自主添加音乐特效的操作手段,是一个需要解决的技术问题。
发明内容
为了克服上述技术缺陷,本发明的目的在于提供一种用于智能终端的声音控制方法及声音控制装置,通过在所述智能终端内预设特效音频,并判断音乐播放过程中所述智能终端是否接收用户的操作,最后播放所述特效音频,实现多元化的声音效果。
本发明的第一方面公开了一种用于智能终端的声音控制方法,包括以下步骤:
于所述智能终端内预设至少一个运行时长不超过一预设于所述智能终端内的第一时间阈值的特效音频;
所述智能终端运行一包含音乐的音频文件;
判断所述智能终端是否接收一点击操作或滑动触摸操作;
当所述智能终端接收所述点击操作或滑动触摸操作时,则运行所述音频文件的同时,随机播放任一所述特效音频。
在本申请第一方面的某些实施方式中,于所述智能终端内预设所述特效音频时,所述特效音频至少为两个;
随机播放任一所述特效音频的步骤包括:
判断在一预设于所述智能终端的第二时间阈值内,所述智能终端是否接收所述点击操作和滑动触摸操作各一次;
若所述智能终端在所述第二时间阈值内接收所述点击操作和滑动触摸操作各一次,则针对所述点击操作和滑动触摸操作随机选择不同的特效音频进行播放;
若所述智能终端在所述第二时间阈值内未接收所述点击操作和滑动触摸操作各一次,则针对所述点击操作和滑动触摸操作随机选择任一特效音频进行播放。
在本申请第一方面的某些实施方式中,所述智能终端运行一包含音乐的音频文件时,使用所述智能终端内的第一声道;随机播放任一所述特效音频时,使用所述智能终端内的第二声道。
在本申请第一方面的某些实施方式中,随机播放任一所述特效音频时,将所述音频文件与所述特效音频混音后播放。
在本申请第一方面的某些实施方式中,将所述音频文件与所述特效音频混音后播放的步骤包括:
提取所述特效音频并解码,得到一第一解码文件;
提取所述音频文件中与所述特效音频播放时间相同的片段并解码,得到一第二解码文件;
将所述第一解码文件和第二解码文件进行叠加,得到一第三解码文件;
播放所述第三解码文件。
本申请的第二方面,公开了一种用于智能终端的声音控制装置,包括:
预设模块,于所述智能终端内预设至少一个运行时长不超过一预设于所述智能终端内的第一时间阈值的特效音频;
运行模块,运行一包含音乐的音频文件;
判断模块,判断所述智能终端是否接收一点击操作或滑动触摸操作;
播放模块,与所述判断模块和运行模块连接,当判断模块判断所述智能终端接收所述点击操作或滑动触摸操作时,则所述运行模块运行所述音频文件的同时,随机播放任 一所述特效音频。
在本申请第二方面的某些实施方式中,所述预设模块于所述智能终端内预设所述特效音频时,所述特效音频至少为两个;
所述播放模块包括:
操作判断单元,与所述判断模块连接,判断在一预设于所述智能终端的第二时间阈值内,所述智能终端是否接收所述点击操作和滑动触摸操作各一次;
第一特效音频播放单元,与所述操作判断单元连接,若所述操作判断单元判断所述智能终端在所述第二时间阈值内接收所述点击操作和滑动触摸操作各一次,则针对所述点击操作和滑动触摸操作随机选择不同的特效音频进行播放;
第二特效音频播放单元,与所述操作判断单元连接,若所述操作判断单元判断所述智能终端在所述第二时间阈值内未接收所述点击操作和滑动触摸操作各一次,则针对所述点击操作和滑动触摸操作随机选择任一特效音频进行播放。
在本申请第二方面的某些实施方式中,所述运行模块运行一包含音乐的音频文件时,使用所述智能终端内的第一声道;所述播放模块随机播放任一所述特效音频时,使用所述智能终端内的第二声道。
在本申请第二方面的某些实施方式中,所述播放模块随机播放任一所述特效音频时,将所述音频文件与所述特效音频混音后播放。
在本申请第二方面的某些实施方式中,所述播放模块包括:
第一提取单元,提取所述特效音频并解码,得到一第一解码文件;
第二提取单元,提取所述音频文件中与所述特效音频播放时间相同的片段并解码,得到一第二解码文件;
叠加单元,与所述第一提取单元和第二提取单元连接,将所述第一解码文件和第二解码文件进行叠加,得到一第三解码文件;
解码文件播放单元,播放所述第三解码文件。
采用了上述技术方案后,与现有技术相比,具有以下有益效果:
1.在播放音乐时支持用户自主加入特效声音,提供了新的互动方式;
2.改变一成不变的音乐播放方式,增加趣味性。
附图说明
图1为符合本发明一优选实施例中用于智能终端的声音控制方法的流程示意图;
图2为符合本发明一优选实施例中图1中步骤S104的具体流程示意图;
图3为符合本发明另一优选实施例中图1中步骤S104的具体流程示意图;
图4为符合本发明一优选实施例中用于智能终端的声音控制装置的结构示意图;
图5为符合本发明一优选实施例中图4中播放模块的结构示意图;
图6为符合本发明另一优选实施例中图4中播放模块的结构示意图。
附图标记:
10-用于智能终端的声音控制装置、11-预设模块、12-运行模块、13-判断模块、14-播放模块、141-操作判断单元、142-第一特效音频播放单元、143-第二特效音频播放单元、144-第一提取单元、145-第二提取单元、146-叠加单元、147-解码文件播放单元。
具体实施方式
以下结合附图与具体实施例进一步阐述本发明的优点。
在下述描述中,参考附图,附图描述了本申请的若干实施例。应当理解,还可使用其他实施例,并且可以在不背离本公开的精神和范围的情况下进行机械组成、结构、电气以及操作上的改变.下面的详细描述不应该被认为是限制性的,并且本申请的实施例的范围仅由公布的专利的权利要求书所限定.这里使用的术语仅是为了描述特定实施例,而并非旨在限制本申请。空间相关的术语,例如“上”、“下”、“左”、“右”、“下面”、“下方”、“下部”、“上方”、“上部”等,可在文中使用以便于说明图中所示的一个元件或特征与另一元件或特征的关系。
再者,如同在本文中所使用的,单数形式“一”、“一个”和“该”旨在也包括复数形式,除非上下文中有相反的指示.应当进一步理解,术语“包含”、“包括”表明存在所述的特征、步骤、操作、元件、组件、项目、种类、和/或组,但不排除一个或多个其他特征、步骤、操作、元件、组件、项目、种类、和/或组的存在、出现或添加.此处使用的术语“或”和“和/或”被解释为包括性的,或意味着任一个或任何组合.因此,“A、B或C”或者“A、B和/或C”意味着“以下任一个:A;B;C;A和B;A和C;B和C;A、B和C”.仅当元件、功能、步骤或操作的组合在某些方式下内在地互相排斥时,才会出现该定义的例外。
参阅图1,为符合本发明一优选实施例中用于智能终端的声音控制方法的流程示意图,所述声音控制方法包括以下步骤:
S101:于所述智能终端内预设至少一个运行时长不超过一预设于所述智能终端内的 第一时间阈值的特效音频。
所述智能终端,可以是智能手机、平板电脑、多媒体播放器等具备音频播放功能的智能设备,可以播放提示音、音乐、视频声音等音频信号。所述智能终端内预设至少一个特效音频,所述特效音频是指可以播放特殊声音效果的音频文件,例如播放鼓声、钢琴声、鼓掌声、打碟音等具有鲜明特色的声音特效。所述特效音频存储于所述智能终端的存储介质中,且每一特效音频播放的运行时长受到限制,即不超过一预设于所述智能终端内的第一时间阈值。所述第一时间阈值优选为最多5秒钟。所述特效音频的运行时长,也就是播放时间如果太长,会影响原本正在播放的音乐的听觉效果,有画蛇添足的感觉。所述特效音频预设好以后以备后续步骤中播放。所述特效音频为所述智能终端可识别的格式,如MP3格式、WMA格式等。
S102:所述智能终端运行一包含音乐的音频文件。
本步骤运行一音频文件,所述音频文件是一种多媒体文件,含有声音信息,例如讲话录音、歌曲、乐器演奏等。常见的音频文件格式有AU格式、AIFF格式、VQF格式、CD格式、APE格式、MP3格式、RealAudio格式、WMA格式、MIDI格式、WAV格式。本实施例中,所述音频文件的格式应当为数字格式,能够被所述智能终端识别并打开运行,例如MP3格式、WMA格式等。所述音频文件的内容也有要求,须包含音乐,例如歌曲、乐器演奏或者其他形式的旋律。本步骤运行所述音频文件后,所述音频文件持续运行,持续至后续的所有步骤完成。
S103:判断所述智能终端是否接收一点击操作或滑动触摸操作。
本步骤中,判断所述智能终端是否接收到外部操作,所述外部操作为点击操作或滑动触摸操作。对于具有触摸屏的智能终端,用户与所述触摸屏接触一次很快分开的操作即为点击操作,本实施例对于点击操作发生的位置不作限制,在所述触摸屏上任一位置进行点击操作都是有效的。所述滑动触摸操作即用户在所述触摸屏上接触后持续滑动一段距离,而后才脱离与触摸屏的接触。所述滑动操作在所述触摸屏上留有滑动轨迹,所述滑动轨迹的起始位置与终止位置的距离应当不小于100个像素点。所述智能终端获取所述滑动操作起始位置与终止位置的像素点坐标,而后计算其距离即可。所述起始位置和终止位置可通过被检测的时间先后判定,最先检测到的位置必然是起始位置,最后一个检测到的位置为终止位置。本步骤中所述智能终端接收所述点击操作或者滑动触摸操作中的任一种均视为判断有效。
S104:当所述智能终端接收所述点击操作或滑动触摸操作时,则运行所述音频文件 的同时,随机播放任一所述特效音频。
当步骤S103判断所述智能终端接收了所述点击操作或滑动操作时,执行本步骤。本步骤执行的另一条件为所述音频文件仍在运行,判断方法是从所述智能终端的任务管理器中获取正在运行的线程的状态,判断所述视频文件的进程是否在运行即可。本步骤执行内容为随机播放任一所述特效音频,例如所述智能终端内预存有特效音频A、特效音频B和特效音频C,则随机选取这三个特效音频中的一个进行播放。播放所述特效音频时,所述音频文件的运行正常进行,不中断。
在本申请第一方面的某些实施方式中,所述智能终端运行一包含音乐的音频文件时,使用所述智能终端内的第一声道;随机播放任一所述特效音频时,使用所述智能终端内的第二声道。本优选实施例对所述智能终端运行音频文件及播放特效音频的实现作了优选。对于同一个扬声器,理论上同时只能同时播放一个声音信号,若在运行所述音频文件的同时播放所述特效音频,会发生冲突,需要解决这个矛盾。本实施例的解决方案是采用不同的声道分别播放所述音频文件和特效音频。声道(Sound Channel)是指声音在录制或播放时在不同空间位置采集或回放的相互独立的音频信号,所以声道数也就是声音录制时的音源数量或回放时相应的扬声器数量。本实施例中所述智能终端包括至少两个声道,即第一声道和第二声道。两个声道的软硬件独立,有各自的扬声器、功放电路及解码器,从而实现分别播放两个音频。用户会同时听到两个声道发出的声音,即正常播放的音乐和对应用户操作而播放的特效声音。
在本申请第一方面的某些实施方式中,随机播放任一所述特效音频时,将所述音频文件与所述特效音频混音后播放。本实施例采用混音的方式解决两个音频同时播放的问题。混音是音乐制作中的一个常见步骤,也会缩写成MIX,是把多种来源的声音,整合至一个立体音轨(Stereo)或单音音轨(Mono)中。混音既可以通过硬件实现,也可以通过软件实现,实现混音装置的名称为混音器。软件类型的混音器,是将多个音频文件、线路输入音频信号混音后,合成单独的音频文件。本实施例中,先通过解码器将两个或以上的音频文件中的音频数据解码后变为两个或以上模拟信号,然后通过混音器对两个或以上模拟信号进行叠加,变为一个模拟信号,最后将该模拟信号输出播放。在其他实施方式中,也可以将叠加后的模拟信号通过编码器编码为数字音频格式,重新形成一个合并后的音频文件。
参阅图2,为符合本发明一优选实施例中图1中步骤S104的具体流程示意图,本实施例中,步骤S101中所述特效音频至少为两个,作为所述步骤S104执行的基础。所述 步骤S104包括:
S104-1:判断在一预设于所述智能终端的第二时间阈值内,所述智能终端是否接收所述点击操作和滑动触摸操作各一次。
本步骤判断在所述第二时间阈值内,所述智能终端是否接收所述点击操作和滑动触摸操作各一次。即用户在所述第二时间阈值内分别进行了点击操作和滑动触摸操作。所述第二时间阈值优选为最长1分钟,若所述第二时间阈值过长,则两次操作的判断周期过长,体现不出不同的特效音频的差异性效果。本步骤执行时,无论用户进行了点击操作或者滑动触摸操作,所述智能终端均开始计时,当用户进行与上一次操作种类不同的操作时,结束计时,判断两次操作的间隔时间是否小于所述第二时间阈值,若小于,则本步骤判断成立。若用户的多次操作种类与第一次操作的种类相同,例如均为点击操作或均为滑动触摸操作,则从最后一次操作开始计时。
S104-2:若所述智能终端在所述第二时间阈值内接收所述点击操作和滑动触摸操作各一次,则针对所述点击操作和滑动触摸操作随机选择不同的特效音频进行播放。
若步骤S104-1判断成立,即所述智能终端在所述第二时间阈值内接收所述点击操作和滑动触摸操作各一次,则执行本步骤。本步骤的核心是所述点击操作和滑动触摸操作所对应的特效音频是不同的,以产生不同种类操作对应的差异性声音特效。在所述第二时间阈值内,第一次操作执行后,所述智能终端在所有特效音频中随机选择一个特效音频进行播放,并记录被播放的特效音频为第一特效音频;当所述第二时间阈值内发生另一种操作时,所述智能终端首先将所述第一特效音频排除,在剩余的特效音频中进行随机选择,而后播放被选择的特效音频。所述第二时间阈值内第二次播放特效音频后,所述智能终端解除第一特效音频的记录,以便下一次操作时继续在所有的特效音频中进行随机选取。例如所述智能终端内预存有特效音频A、特效音频B和特效音频C,当所述智能终端接收一点击操作时,则随机选取这三个特效音频中的一个进行播放,例如选择特效音频B播放,记录特效音频B为第一特效音频;而后在所述第二时间阈值内所述智能终端接收一滑动触摸操作,则在特效音频A和特效音频C中随机选取一个进行播放;播放完毕后解除对特效音频B的记录,下一次接收操作时仍从三个特效音频中随机选取。
S104-3:若所述智能终端在所述第二时间阈值内未接收所述点击操作和滑动触摸操作各一次,则针对所述点击操作和滑动触摸操作随机选择任一特效音频进行播放。
若步骤S104-1判断不成立,即所述智能终端在所述第二时间阈值内未接收所述点击操作和滑动触摸操作各一次,则执行本步骤。实际上所述步骤S104-1判断的是一种特殊 情况,即在所述第二时间阈值内接收不同种类的操作,而本步骤执行该特殊情况以外的以其他方式接收操作的情况。本步骤执行内容为随机选择任一特效音频进行播放,即从所有预存的特效音频中随机选取一个进行播放。例如所述智能终端接收两次操作的时间间隔大于所述第二时间阈值,则对应两次操作均随机选择一特效音频播放,每次随机选择都是独立的,互不影响。
参阅图3,为符合本发明另一优选实施例中图1中步骤S104的具体流程示意图,本实施例是对步骤S104采用混音方式情况下的具体步骤说明,所述步骤S104包括:
S104-4:提取所述特效音频并解码,得到一第一解码文件。
本步骤随机选择一特效音频后对所述特效音频进行解码。对于智能终端而言,其内部存储的特效音频及音频文件均为数字格式,即所述特效音频及音频文件内存储的不是直接表征声音信号的模拟信号,而是将所述模拟信号按照编码规则压缩后的数字信息,如果想要播放该特效音频,需要首先对所述特效音频进行解码,将其还原为模拟信号。本步骤即进行解码过程,将所述特效音频解码得到一包括模拟信号的第一解码文件。
S104-5:提取所述音频文件中与所述特效音频播放时间相同的片段并解码,得到一第二解码文件。
本步骤与步骤S104-4执行内容相似,也是解码操作,执行的对象为所述音频文件中与所述特效音频播放时间相同的片段。由于所述特效音频的播放时间小于所述第一时间阈值,正常情况下一首歌为3分钟左右,所述特效音频也就远远小于所述音频文件的播放时间,因此同步播放所述特效音频与音频文件时,只需要在同步播放的时间进行混音即可,故只需对所述音频文件中的与所述特效音频播放时间相同的片段进行解码。所述特效音频的文件中会记录该特效音频的播放时长,这是可读属性,而后在准备开始播放所述特效音频时获取所述音频文件的播放进度,再向后累加所述特效音频的播放时间,再做剪切即可得到所述音频文件的片段,最后进行解码即可得到所述第二解码文件。
S104-6:将所述第一解码文件和第二解码文件进行叠加,得到一第三解码文件。
本步骤将所述步骤S104-4和S104-5分别得到的第一解码文件和第二解码文件进行叠加。所述第一解码文件和第二解码文件记载的都是模拟信号信息,在同一时间刻度上对两个模拟信号的幅度进行求和即可,最后得到新的模拟信号信息,存储为第三解码文件。
S104-7:播放所述第三解码文件。
本步骤对所述第三解码文件执行播放操作,由于所述第三解码文件已经是模拟信号, 故可由硬件进行输出,再由功放电路进行放大后输出给扬声器即可。本步骤执行结束后,即所述特效音频的播放时长达到后,所述智能终端恢复对所述音频文件的正常播放,结束混音播放方式。
参阅图4,为符合本发明一优选实施例中用于智能终端的声音控制装置的结构示意图,所述声音控制装置10包括:
-预设模块11
预设模块11,于所述智能终端内预设至少一个运行时长不超过一预设于所述智能终端内的第一时间阈值的特效音频。所述预设模块11可通过所述智能终端的无线通讯模块、串口通信模块获取来自外部的特效视频,并将所述特效音频存储于所述智能终端的存储介质中,且每一特效音频播放的运行时长受到限制,即不超过一预设于所述智能终端内的第一时间阈值。所述第一时间阈值优选为最多5秒钟。所述预设模块11预设所述特效音频时,所述特效音频为所述智能终端可识别的格式,如MP3格式、WMA格式等。
-运行模块12
运行模块12,运行一包含音乐的音频文件。所述运行模块12能够识别并打开运行所述音频文件,其中所述音频文件的格式应当为数字格式,例如MP3格式、WMA格式等。所述运行模块12运行所述音频文件时,若没有接收用户的其他操作,会一直持续运行至所述音频文件播放结束。
-判断模块13
判断模块13,判断所述智能终端是否接收一点击操作或滑动触摸操作。所述判断模块13从所述智能终端的触摸屏获取外部操作信息,包括点击操作和滑动触摸操作。对于点击操作,在所述触摸屏上任一位置的点击操作均被所述判断模块13判断为有效。对于滑动触摸操作,所述滑动操作在所述触摸屏上留有滑动轨迹,所述滑动轨迹的起始位置与终止位置的距离应当不小于100个像素点。所述判断模块13获取所述滑动操作起始位置与终止位置的像素点坐标,而后计算其距离即可判断所述滑动触摸操作是否成立。所述起始位置和终止位置可通过被检测的时间先后判定,最先检测到的位置必然是起始位置,最后一个检测到的位置为终止位置。所述智能终端接收所述点击操作或者滑动触摸操作中的任一种均被所述判断模块13判断有效。
-播放模块14
播放模块14,与所述判断模块13和运行模块12连接,当判断模块13判断所述智能终端接收所述点击操作或滑动触摸操作时,则所述运行模块12运行所述音频文件的同时, 随机播放任一所述特效音频。所述播放模块14从所述判断模块13获取判断结果并执行操作。所述播放模块14从所述智能终端的任务管理器中获取正在运行的线程的状态,判断所述视频文件的进程是否在运行;只有当所述视频文件还在运行时,所述播放模块14才会播放所述特效音频。由于所述特效音频为数字格式,支持软件打开方式,因此可被所述播放模块14打开并播放。若所述特效音频为两个以上,则所述播放模块14随机选择其中一个特效音频执行播放操作。
在本申请第二方面的某些实施方式中,所述运行模块12运行一包含音乐的音频文件时,使用所述智能终端内的第一声道;所述播放模块14随机播放任一所述特效音频时,使用所述智能终端内的第二声道。本实施例中,所述运行模块12和所述播放模块14分别对应不同的声道,以便独立进行音频的运行或播放操作,互不干扰。
在本申请第二方面的某些实施方式中,所述播放模块14随机播放任一所述特效音频时,将所述音频文件与所述特效音频混音后播放。本实施例中,所述播放模块14采用软件方式进行混音。所述播放模块14包括解码器和混音器,所述解码器将数字格式的特效音频及音频文件转换为两个模拟信号;然后混音器对两个模拟信号进行叠加,变为一个模拟信号,最后将该模拟信号输出播放。所述播放模块播放混音后的信号时,所述运行模块12不再输出音频信号,但所述音频文件仍然推进播放进度。当所述特效音频播放完成时,所述播放模块14停止混音,所述运行模块12按照当前的播放进度恢复音频信号输出。
参阅图5,为符合本发明一优选实施例中图4中播放模块的结构示意图,本实施例中所述预设模块11于所述智能终端内预设所述特效音频时,所述特效音频至少为两个;所述播放模块14包括:
-操作判断单元141
操作判断单元141,与所述判断模块13连接,判断在一预设于所述智能终端的第二时间阈值内,所述智能终端是否接收所述点击操作和滑动触摸操作各一次。所述操作判断单元141从所述判断模块13获取所述智能终端接收的操作类型和时间,而后判断在所述第二时间阈值内,所述智能终端是否接收所述点击操作和滑动触摸操作各一次。当所述操作判断单元141获知所述智能终端接收一操作时,开始计时,当再次接收一与上次操作类型不同的操作时,结束计时,判断两次操作的间隔时间是否小于所述第二时间阈值,若小于,则本步骤判断成立。若所述操作判断单元141判断用户的第二次操作种类与第一次操作的种类相同,例如均为点击操作或均为滑动触摸操作,则从第二次操作开 始重新计时。
-第一特效音频播放单元142
第一特效音频播放单元142,与所述操作判断单元连接141,若所述操作判断单元141判断所述智能终端在所述第二时间阈值内接收所述点击操作和滑动触摸操作各一次,则针对所述点击操作和滑动触摸操作随机选择不同的特效音频进行播放。所述第一特效音频播放单元142从所述操作判断单元连接141获取判断结果,当所述智能终端在所述第二时间阈值内接收所述点击操作和滑动触摸操作各一次时,执行操作。所述第一特效音频播放单元142针对所述点击操作和滑动触摸操作随机播放不同的特效音频,以产生不同种类操作对应的差异性声音特效。所述第一特效音频播放单元142获取第一次操作执行时,在所有特效音频中随机选择一个特效音频进行播放,并记录被播放的特效音频为第一特效音频;当所述第二时间阈值内发生另一种操作时,所述第一特效音频播放单元142首先将所述第一特效音频排除,在剩余的特效音频中进行随机选择,而后播放被选择的特效音频。所述第二时间阈值内第二次播放特效音频后,所述第一特效音频播放单元142解除第一特效音频的记录,以便下一次操作时继续在所有的特效音频中进行随机选取。
-第二特效音频播放单元143
第二特效音频播放单元143,与所述操作判断单元141连接,若所述操作判断单元141判断所述智能终端在所述第二时间阈值内未接收所述点击操作和滑动触摸操作各一次,则针对所述点击操作和滑动触摸操作随机选择任一特效音频进行播放。所述第二特效音频播放单元143从所述操作判断单元141获取判断结果,若判断不成立,即所述智能终端在所述第二时间阈值内未接收所述点击操作和滑动触摸操作各一次,则执行操作。所述第二特效音频播放单元143从所有预存的特效音频中随机选取一个进行播放,每次进行特效音频播放时均随机独立地选取,互不影响。
参阅图6,为符合本发明另一优选实施例中图4中播放模块的结构示意图,本实施例中所述播放模块14采用混音方式播放所述特效音频,所述播放模块14包括:
-第一提取单元144
第一提取单元144,提取所述特效音频并解码,得到一第一解码文件。所述第一提取单元144可以是解码器,对数字格式的特效音频进行解码操作,将其还原为模拟信号,所述模拟信号的集合即第一解码文件。
-第二提取单元145
第二提取单元145,提取所述音频文件中与所述特效音频播放时间相同的片段并解码,得到一第二解码文件。所述第二提取单元145可以是解码器,执行的对象为所述音频文件中与所述特效音频播放时间相同的片段。所述第二提取单元145可从所述特效音频的可读属性中获取播放时长,而后根据该播放时长从所述音频文件中获取与所述播放时长相等的片段进行解码操作。解码后得到的模拟信号的集合即第二解码文件。
-叠加单元146
叠加单元146,与所述第一提取单元144和第二提取单元145连接,将所述第一解码文件和第二解码文件进行叠加,得到一第三解码文件。所述叠加单元146从所述第一提取单元144和第二提取单元145分别获取所述第一解码文件和第二解码文件。由于所述第一解码文件和第二解码文件记载的都是模拟信号信息,所述叠加单元146在同一时间刻度上对两个模拟信号的幅度进行求和即可,最后得到新的模拟信号集合,存储为第三解码文件。
-解码文件播放单元147
解码文件播放单元147,播放所述第三解码文件。所述解码文件播放单元147从所述叠加单元146获取所述第三解码文件并播放。由于所述第三解码文件已经是模拟信号,故可由所述解码文件播放单元147输出为硬件方式的电信号,再由功放电路进行放大后输出给扬声器即可。所述解码文件播放单元147执行结束后,解除对声道的占用,所述运行模块12恢复对所述音频文件的正常播放,结束混音播放方式。
应当注意的是,本发明的实施例有较佳的实施性,且并非对本发明作任何形式的限制,任何熟悉该领域的技术人员可能利用上述揭示的技术内容变更或修饰为等同的有效实施例,但凡未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所作的任何修改或等同变化及修饰,均仍属于本发明技术方案的范围内。

Claims (10)

  1. 一种用于智能终端的声音控制方法,其特征在于,包括以下步骤:
    于所述智能终端内预设至少一个运行时长不超过一预设于所述智能终端内的第一时间阈值的特效音频;
    所述智能终端运行一包含音乐的音频文件;
    判断所述智能终端是否接收一点击操作或滑动触摸操作;
    当所述智能终端接收所述点击操作或滑动触摸操作时,则运行所述音频文件的同时,随机播放任一所述特效音频。
  2. 如权利要求1所述的声音控制方法,其特征在于,
    于所述智能终端内预设所述特效音频时,所述特效音频至少为两个;
    随机播放任一所述特效音频的步骤包括:
    判断在一预设于所述智能终端的第二时间阈值内,所述智能终端是否接收所述点击操作和滑动触摸操作各一次;
    若所述智能终端在所述第二时间阈值内接收所述点击操作和滑动触摸操作各一次,则针对所述点击操作和滑动触摸操作随机选择不同的特效音频进行播放;
    若所述智能终端在所述第二时间阈值内未接收所述点击操作和滑动触摸操作各一次,则针对所述点击操作和滑动触摸操作随机选择任一特效音频进行播放。
  3. 如权利要求1或2所述的声音控制方法,其特征在于,
    所述智能终端运行一包含音乐的音频文件时,使用所述智能终端内的第一声道;
    随机播放任一所述特效音频时,使用所述智能终端内的第二声道。
  4. 如权利要求1或2所述的声音控制方法,其特征在于,
    随机播放任一所述特效音频时,将所述音频文件与所述特效音频混音后播放。
  5. 如权利要求4所述的声音控制方法,其特征在于,
    将所述音频文件与所述特效音频混音后播放的步骤包括:
    提取所述特效音频并解码,得到一第一解码文件;
    提取所述音频文件中与所述特效音频播放时间相同的片段并解码,得到一第二解码文件;
    将所述第一解码文件和第二解码文件进行叠加,得到一第三解码文件;
    播放所述第三解码文件。
  6. 一种用于智能终端的声音控制装置,其特征在于,包括:
    预设模块,于所述智能终端内预设至少一个运行时长不超过一预设于所述智能终端内的第一时间阈值的特效音频;
    运行模块,运行一包含音乐的音频文件;
    判断模块,判断所述智能终端是否接收一点击操作或滑动触摸操作;
    播放模块,与所述判断模块和运行模块连接,当判断模块判断所述智能终端接收所述点击操作或滑动触摸操作时,则所述运行模块运行所述音频文件的同时,随机播放任一所述特效音频。
  7. 如权利要求6所述的声音控制装置,其特征在于,
    所述预设模块于所述智能终端内预设所述特效音频时,所述特效音频至少为两个;
    所述播放模块包括:
    操作判断单元,与所述判断模块连接,判断在一预设于所述智能终端的第二时间阈值内,所述智能终端是否接收所述点击操作和滑动触摸操作各一次;
    第一特效音频播放单元,与所述操作判断单元连接,若所述操作判断单元判断所述智能终端在所述第二时间阈值内接收所述点击操作和滑动触摸操作各一次,则针对所述点击操作和滑动触摸操作随机选择不同的特效音频进行播放。
    第二特效音频播放单元,与所述操作判断单元连接,若所述操作判断单元判断所述智能终端在所述第二时间阈值内未接收所述点击操作和滑动触摸操作各一次,则针对所述点击操作和滑动触摸操作随机选择任一特效音频进行播放。
  8. 如权利要求6或7所述的声音控制装置,其特征在于,
    所述运行模块运行一包含音乐的音频文件时,使用所述智能终端内的第一声道;
    所述播放模块随机播放任一所述特效音频时,使用所述智能终端内的第二声道。
  9. 如权利要求6或7所述的声音控制装置,其特征在于,
    所述播放模块随机播放任一所述特效音频时,将所述音频文件与所述特效音频混音后播放。
  10. 如权利要求9所述的声音控制装置,其特征在于,
    所述播放模块包括:
    第一提取单元,提取所述特效音频并解码,得到一第一解码文件;
    第二提取单元,提取所述音频文件中与所述特效音频播放时间相同的片段并解码, 得到一第二解码文件;
    叠加单元,与所述第一提取单元和第二提取单元连接,将所述第一解码文件和第二解码文件进行叠加,得到一第三解码文件;
    解码文件播放单元,播放所述第三解码文件。
PCT/CN2017/101639 2017-09-13 2017-09-13 一种用于智能终端的声音控制方法及声音控制装置 WO2019051689A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/101639 WO2019051689A1 (zh) 2017-09-13 2017-09-13 一种用于智能终端的声音控制方法及声音控制装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/101639 WO2019051689A1 (zh) 2017-09-13 2017-09-13 一种用于智能终端的声音控制方法及声音控制装置

Publications (1)

Publication Number Publication Date
WO2019051689A1 true WO2019051689A1 (zh) 2019-03-21

Family

ID=65722321

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/101639 WO2019051689A1 (zh) 2017-09-13 2017-09-13 一种用于智能终端的声音控制方法及声音控制装置

Country Status (1)

Country Link
WO (1) WO2019051689A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114201136A (zh) * 2021-10-26 2022-03-18 维沃移动通信有限公司 音频播放方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000112484A (ja) * 1998-10-01 2000-04-21 Taito Corp オーディオ信号再生装置及びそれを用いた通信カラオケ装置
CN101217032A (zh) * 2007-12-29 2008-07-09 沈侃 一种可移动的便携式演唱系统
CN104091423A (zh) * 2014-03-12 2014-10-08 腾讯科技(深圳)有限公司 一种信号传输方法及家庭点歌系统
CN104392712A (zh) * 2014-08-27 2015-03-04 贵阳朗玛信息技术股份有限公司 一种实现卡拉ok功能的方法及装置
CN104811829A (zh) * 2014-01-23 2015-07-29 苏州乐聚一堂电子科技有限公司 卡拉ok互动多功能特效系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000112484A (ja) * 1998-10-01 2000-04-21 Taito Corp オーディオ信号再生装置及びそれを用いた通信カラオケ装置
CN101217032A (zh) * 2007-12-29 2008-07-09 沈侃 一种可移动的便携式演唱系统
CN104811829A (zh) * 2014-01-23 2015-07-29 苏州乐聚一堂电子科技有限公司 卡拉ok互动多功能特效系统
CN104091423A (zh) * 2014-03-12 2014-10-08 腾讯科技(深圳)有限公司 一种信号传输方法及家庭点歌系统
CN104392712A (zh) * 2014-08-27 2015-03-04 贵阳朗玛信息技术股份有限公司 一种实现卡拉ok功能的方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114201136A (zh) * 2021-10-26 2022-03-18 维沃移动通信有限公司 音频播放方法及装置

Similar Documents

Publication Publication Date Title
US9875735B2 (en) System and method for synthetically generated speech describing media content
US7525037B2 (en) System and method for automatically beat mixing a plurality of songs using an electronic equipment
US20100298959A1 (en) Speech reproducing method, speech reproducing device, and computer program
CN101322180A (zh) 音乐编辑装置和音乐编辑方法
JP2009093779A (ja) コンテンツ再生装置及びコンテンツ再生方法
CN202871289U (zh) 一种基于mp3格式的便携式卡拉ok装置
CN104333802A (zh) 一种视频播放方法及视频播放器
KR20110040190A (ko) 휴대용 단말기의 음악 재생 장치 및 방법
WO2023207472A1 (zh) 一种音频合成方法、电子设备及可读存储介质
JP2006202127A (ja) 推奨情報提示装置及び推奨情報提示方法等
US8873936B1 (en) System and method for generating a synchronized audiovisual mix
WO2019051689A1 (zh) 一种用于智能终端的声音控制方法及声音控制装置
KR100357241B1 (ko) 디지털 오디오 플레이어에서의 반복재생구간 설정제어방법 및 이것을 이용한 파일재생장치 및 저장매체
US9176610B1 (en) Audiovisual sampling for percussion-type instrument with crowd-sourced content sourcing and distribution
CN108461086B (zh) 一种音频的实时切换方法和装置
WO2007060605A2 (en) Device for and method of processing audio data items
CN107393566A (zh) 一种智能故事机的音频解码方法及装置
CN101242440A (zh) 一种带语音复读功能的手机
JP2008225580A (ja) 情報処理装置、情報処理方法及び情報処理プログラム
CN103594105A (zh) 一种使用cd光碟在自动演奏钢琴上进行演奏的方法
KR101082260B1 (ko) 휴대용 디지털 기기의 캐릭터 표시방법
US20050172787A1 (en) Music reproducing system
KR100775188B1 (ko) 음악 파일의 믹싱 방법 및 이를 이용한 단말기
JP2005250242A (ja) 情報処理装置、情報処理方法、情報処理用プログラム、及び記録媒体
McElhearn Take Control of Audio Hijack

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17925453

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17925453

Country of ref document: EP

Kind code of ref document: A1