CN101902527A - Recording method and device with mobile terminal - Google Patents

Recording method and device with mobile terminal Download PDF

Info

Publication number
CN101902527A
CN101902527A CN201010237234.XA CN201010237234A CN101902527A CN 101902527 A CN101902527 A CN 101902527A CN 201010237234 A CN201010237234 A CN 201010237234A CN 101902527 A CN101902527 A CN 101902527A
Authority
CN
China
Prior art keywords
recording
music file
music
module
portable terminal
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201010237234.XA
Other languages
Chinese (zh)
Inventor
胡正
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Wuju Technology Co Ltd
Original Assignee
Shenzhen Wuju Technology Co Ltd
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 Shenzhen Wuju Technology Co Ltd filed Critical Shenzhen Wuju Technology Co Ltd
Priority to CN201010237234.XA priority Critical patent/CN101902527A/en
Publication of CN101902527A publication Critical patent/CN101902527A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Reverberation, Karaoke And Other Acoustics (AREA)
  • Telephone Function (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

The invention is applicable to the field of multimedia, and provides a recording method and a recording device with a mobile terminal. The recording method comprises the following steps of: a, playing a music file; b, judging whether a recording request exists, if the recording request exists, entering the step c, and if the recoding request does not exist, continuing to play the music file; and c, recording the currently played music and sound of a user and storing the recorded audio file on the mobile terminal. After using the technical scheme of the invention, the user can record during the enjoyment of music; in addition, the user can record Kara OK type audio files and meet the personalized requirement of the user.

Description

The portable terminal way of recording and device
Technical field
The invention belongs to the multimedia field, relate in particular to a kind of portable terminal way of recording and device.
Background technology
At present, the development of wireless communication technology and multimedia technology rapidly, the function of mobile phone is more and more abundanter and perfect, people can be by surfing Internet with cell phone, listen to the music, read a book, record or the like.
Existing a kind of mobile phone recording device is shown in No. the 200820146803.8th, Chinese patent, and it discloses a kind of CDMA mobile phone with automatic-answering back device and sound-recording function, comprises two modules of CDMA and voice, voice module control voice recording, sound storing function.But the defective of this CDMA mobile phone is that it only can record user's communication process or the user dialogue when using sound-recording function separately, can not satisfy and carry out the requirement of record when the user listens song.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of portable terminal way of recording and device, to solve existing portable terminal can not carry out record when the user listens song problem.
The objective of the invention is to be achieved through the following technical solutions:
A kind of portable terminal way of recording comprises:
Step a. playing music;
Step b. has judged whether the recording request, if the recording request is arranged, then enters step c, if not recording request then continues playing music;
Step c is recorded to the music of current broadcast and user's sound, and with the audio files storage that records on portable terminal.
The technical scheme that the present invention takes also comprises: in described step a, described music file is stored in the portable terminal in advance from server download or user, and described music file comprises the original singer's music file and the vocal accompaniment music file of same first song.
The technical scheme that the present invention takes also comprises: described step a also comprises: read described music file lyrics corresponding, call the character string width that portable terminal obtains and the function of reproduction time the lyrics that obtain are resolved, and synchronous rolling display of lyrics.
The technical scheme that the present invention takes also comprises: also comprise between described step a and the step b: judged whether original singer's conversion request of accompanying, if original singer's conversion request of accompanying is arranged, then obtain the file name and the reproduction time of current music, title according to music file, search mobile terminal stores device, find vocal accompaniment music file with music file match, stop the broadcast of current music file, simultaneously according to the reproduction time that obtains, play the vocal accompaniment music file that search obtains from same reproduction time, and change step b over to, if there is not original singer's conversion request of accompanying, then directly enter step b.
The technical scheme that the present invention takes also comprises: described finding with another music file of music file match is specially: another music file title that find and music file match is identical with described music file title first half, suffix sign is inequality, by described suffix identify distinguish music file and with another music file of described music file match.
Another technical scheme that the present invention takes is: a kind of portable terminal recording device, comprise playing module, memory module, recording judge module and recording module, described playing module is used for playing music and reads the lyrics of described music file, described memory module is used to store the music file that described playing module is play, and described recording judge module is used for having judged whether the recording request in described playing module playing music process; Described recording module is used for when described recording judge module judgement having the recording request, the microphone of control portable terminal is recorded to the music of current broadcast and user's sound, wherein, when described recording judge module was judged not recording request, described playing module continued playing music.
The technical scheme that the present invention takes also comprises: described portable terminal recording device also comprises: parsing module is used to resolve reproduction time and music file name that the lyrics that described playing module reads obtain current song.
The technical scheme that the present invention takes also comprises: described parsing module calls the function of obtaining character string width and reproduction time in the mobile terminal system lyrics that obtain is resolved, obtain lyrics information such as the width of the reproduction time of the every row of the lyrics, every capable lyrics, total line number, and obtain the reproduction time of current song, according to reproduction time, what judge current broadcast is which, and highlights current line.
The technical scheme that the present invention takes also comprises: described portable terminal recording device also comprises: the conversion judge module, be used to judge whether original singer's conversion request of accompanying, if original singer's conversion request of accompanying is arranged, then obtain the file name and the reproduction time of current music by parsing module, if there is not original singer's conversion request of accompanying, then judged whether the recording request by the recording judge module.
The technical scheme that the present invention takes also comprises: described portable terminal recording device also comprises: search module: the music file title that is used for obtaining according to described parsing module is searched for memory module, find another music file that mates with the file name of current music, and notify described playing module to stop the broadcast of current music file, wherein, the reproduction time that described playing module obtains according to parsing module is play the coupling music file that the search module search obtains from same reproduction time.
The present invention is owing to used the recording judge module, it can judge whether the recording request in playing module playing music process, when the recording request, the microphone of notice recording module control portable terminal is recorded to the music of current broadcast and user's sound, has satisfied the demand that the user records in the process of listening song; In addition, the present invention also has original singer's translation function of accompanying, and the user can also accompany to the original singer and freely switch in the process of listening song, can record the audio file of OK a karaoke club ok formula, has satisfied the demand of user individual.
Description of drawings
Fig. 1 is the flow chart of the portable terminal way of recording of the embodiment of the invention;
Fig. 2 is the structural representation of the portable terminal recording device of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
See also Fig. 1, be the portable terminal way of recording flow chart of the embodiment of the invention.The portable terminal way of recording of the embodiment of the invention comprises the steps:
Step 1: playing music;
Wherein, music file can be downloaded from server, also can be that the user is stored in the portable terminal internal memory in advance.
In step 1, can also read this music file lyrics corresponding simultaneously, wherein, the lyrics of music file correspondence can be stored to buffer memory after web search is downloaded, also can be stored in advance in the portable terminal internal memory by the user.
This music file comprises the original singer's music file and the vocal accompaniment music file of same first song, can identify by the suffix of music file title to distinguish original singer's music file and vocal accompaniment music file.The form of this music file is WAV form (Waveform audio format, an audio waveform form).For example, original singer's music file name is called " red bean ", and then Dui Ying vocal accompaniment music file name is called " red bean acc ".
This WAV form adopts the RIFF file format structure, meets RIFF (Resource Interchange File Format) standard.All WAV have a file header, and this file header is the coding parameter of audio stream, and it uses three parameters to represent sound: sampling resolution, sample frequency and channel number.For example, the parameter of the wav file in the present embodiment is: sampling resolution is 16, and sample frequency is 8K, and channel number is a monophony.
In step 1, the concrete mode of playing the WAV music file is to call API (Application Programming Interface, application programming interface) carries out playing music, for example call mdi_audio_snd_play_file_with_vol_path () and play the WAV music file.This API is predefined function.
Step 2: resolve the lyrics, and synchronous rolling display of lyrics.
Wherein, the form of the lyrics can be LRC or KSC.LRC: synchronously displaying lyrics comprises the reproduction time of every row; KSC: show the lyrics by speech, comprise the reproduction time of every row and the reproduction time of every word.
This step 2 may further comprise the steps:
Call the function of obtaining character string width and reproduction time in the mobile terminal system lyrics that obtain are resolved, obtain the reproduction time of the every row of the lyrics, the width of every capable lyrics (unit is a pixel), total line number or the like lyrics information;
Obtain the reproduction time of current song, according to this reproduction time, what judge current broadcast is which, and highlights current line, and display mode can adopt highlighted, and perhaps mode such as font variable color highlights;
According to the reproduction time that obtains, calculate the width of the lyrics of brushing, and brush song.
Wherein, the brush lyrics are meant the in progress current line lyrics are carried out swabbing again according to playing progress rate.The concrete computational methods of lyrics width are brushed by this institute:
÷ (the T2-T0) * current line lyrics width of the lyrics width of brushing=(T1-T0)
Wherein T1 is current reproduction time, and T0 is that current line is play zero-time, and T2 is that current line is play the concluding time.
In another embodiment of the present invention, can also calculate the amplitude that the lyrics scroll up, and carry out rolling on the lyrics according to the reproduction time that obtains, its concrete computational methods are:
(T1-T0) ÷ (T2-T0) * every capable lyrics whole height.
In addition, play for fear of the lyrics of current line, and meanwhile on roll and cause shifting out the screen of portable terminal, can be set in lyrics reproduction time when arriving at least the second row, just begin to carry out rolling on the lyrics.
Step 3: judged whether original singer's conversion request of accompanying, if, then carry out step 4, if not, then carry out step 7;
In described step 3, original singer's conversion request of accompanying can be converted to vocal accompaniment with the original singer, also vocal accompaniment can be converted to the original singer, and the music format that is about to current broadcast is converted into another kind of corresponding music format.
Step 4: the file name and the reproduction time that obtain current music;
In step 4, call the function of obtaining character string width and reproduction time in the mobile terminal system lyrics that obtain are resolved, obtain the reproduction time of the every row of the lyrics.
Step 5: according to the title of music file, search mobile terminal stores device finds another music file with music file match;
The coupling here is meant that two music file title first halfs are identical, back suffix difference, and for example, current playing back music name is called " red bean .wav ", then needs another music file of the coupling of searching for to be " red bean acc.wav ".
Step 6: stop the broadcast of current music file,, play the music file that search obtains in the step 5, carry out step 7 then from same reproduction time simultaneously according to the reproduction time that obtains in the step 4;
Step 7: judged whether the recording request, if then execution in step 8, if not, then execution in step 10;
Step 8: the microphone of control portable terminal is recorded to the music of current broadcast and user's sound;
In step 8, the concrete mode of recording is: call mdi_audio_record_star () and begin recording, and,, call mdi_audio_record_end () and finish recording the sound of music file and synthetic audio file of sound of user by the DSP decoding technique.Because the API of the background that playing music adopts for playing, so DSP is unoccupied, can use when recording.
Step 9: with the audio files storage that records on mobile phone.
Step 10: continue the normal play music file, until end.
See also Fig. 2, be the structural representation of the portable terminal recording device of the embodiment of the invention.The portable terminal recording device of the embodiment of the invention comprises playing module, parsing module, conversion judge module, search module, recording judge module, recording module, memory module.
Playing module is used for playing music, in addition, also is used to read this music file lyrics corresponding, and wherein, the lyrics of music file correspondence can be stored to buffer memory after web search is downloaded, also can be stored in advance in the portable terminal internal memory by the user.
This music file comprises the original singer's music file and the vocal accompaniment music file of same first song, can identify by the suffix of music file title to distinguish original singer's music file and vocal accompaniment music file.The form of this music file is WAV form (Waveform audio format, an audio waveform form).For example, original singer's music file name is called " red bean ", and then Dui Ying vocal accompaniment music file name is called " red bean acc ".The concrete mode of playing the WAV music file is to call API (Application Programming Interface, application programming interface) carries out playing music, for example call mdi_audio_snd_play_file_with_vol_path () and play the WAV music file.This API is predefined function.
Memory module is used to store music file, and this music file comprises the original singer's music file and the vocal accompaniment music file of same first song, can identify by the suffix of music file title and distinguish original singer's music file and vocal accompaniment music file.
Parsing module is used to resolve the lyrics that playing module reads, and synchronous rolling display of lyrics.Wherein, the form of the lyrics can be LRC or KSC.LRC: synchronously displaying lyrics comprises the reproduction time of every row; KSC: show the lyrics by speech, comprise the reproduction time of every row and the reproduction time of every word.
The concrete working method of parsing module is: call the function of obtaining character string width and reproduction time in the mobile terminal system lyrics that obtain are resolved, obtain the reproduction time of the every row of the lyrics, the width of every capable lyrics (unit is a pixel), total line number or the like lyrics information;
Obtain the reproduction time of current song, according to this reproduction time, what judge current broadcast is which, and highlights current line, and display mode can adopt highlighted, and perhaps mode such as font variable color highlights;
According to the reproduction time that obtains, calculate the width of the lyrics of brushing, and brush song.
Wherein, the brush lyrics are meant the in progress current line lyrics are carried out swabbing again according to playing progress rate.The concrete computational methods of lyrics width are brushed by this institute:
÷ (the T2-T0) * current line lyrics width of the lyrics width of brushing=(T1-T0)
Wherein T1 is current reproduction time, and T0 is that current line is play zero-time, and T2 is that current line is play the concluding time.
In another embodiment of the present invention, can also calculate the amplitude that the lyrics scroll up, and carry out rolling on the lyrics according to the reproduction time that obtains, its concrete computational methods are:
(T1-T0) ÷ (T2-T0) * every capable lyrics whole height.
In addition, play for fear of the lyrics of current line, and meanwhile on roll and cause shifting out the screen of portable terminal, can be set in lyrics reproduction time when arriving at least the second row, just begin to carry out rolling on the lyrics.
The conversion judge module is used to judge whether original singer's conversion request of accompanying, if original singer's conversion request of accompanying is arranged, then obtain the file name and the reproduction time of current music,, then judged whether the recording request by the recording judge module if there is not original singer's conversion request of accompanying by parsing module.
The music file title that search module is used for obtaining according to parsing module is searched for memory module, find another music file that mates with the file name of current music, the music file of promptly accompanying, and the notice playing module stops the broadcast of current music file, the reproduction time that playing module obtains according to parsing module is play the coupling music file that the search module search obtains from same reproduction time.
The recording judge module has judged whether the recording request, if the recording request is arranged, then the music of current broadcast and user's sound are recorded, if not recording request by the microphone of recording module control portable terminal, then continue the normal play music file, until end by playing module.
In embodiments of the present invention, memory module also is used to store the audio file that records, and playing module can be play the audio file of storing in the memory module that records, and the audio file that records can also be made as the tinkle of bells of mobile phone.
The present invention is owing to used the recording judge module, it can judge whether the recording request in playing module playing music process, when the recording request, the microphone of notice recording module control portable terminal is recorded to the music of current broadcast and user's sound, has satisfied the demand that the user records in the process of listening song; In addition, the present invention also has original singer's translation function of accompanying, and the user can also accompany to the original singer and freely switch in the process of listening song, can record the audio file of OK a karaoke club ok formula, has satisfied the demand of user individual.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. portable terminal way of recording comprises:
Step a. playing music;
Step b. has judged whether the recording request, if the recording request is arranged, then enters step c, if not recording request then continues playing music;
Step c is recorded to the music of current broadcast and user's sound, and with the audio files storage that records on portable terminal.
2. the portable terminal way of recording as claimed in claim 1, it is characterized in that, in described step a, described music file is downloaded or is stored in advance the portable terminal by the user from server, and described music file comprises the original singer's music file and the vocal accompaniment music file of same first song.
3. the portable terminal way of recording as claimed in claim 1 or 2, it is characterized in that, described step a also comprises: read described music file lyrics corresponding, call the character string width that portable terminal obtains and the function of reproduction time the lyrics that obtain are resolved, and synchronous rolling display of lyrics.
4. the portable terminal way of recording as claimed in claim 1 or 2, it is characterized in that, also comprise between described step a and the step b: judged whether original singer's conversion request of accompanying, if original singer's conversion request of accompanying is arranged, then obtain the file name and the reproduction time of current music, and according to the title of music file, search mobile terminal stores device, find another music file with music file match, stop the broadcast of current music file, simultaneously according to the reproduction time that obtains, play another music file that search obtains from same reproduction time, and change step b over to, if there is not original singer's conversion request of accompanying, then directly enter step b.
5. the portable terminal way of recording as claimed in claim 4, it is characterized in that, described finding with another music file of music file match is specially: another music file title that find and music file match is identical with described music file title first half, suffix sign is inequality, by described suffix identify distinguish music file and with another music file of described music file match.
6. portable terminal recording device, comprise playing module and memory module, described playing module is used for playing music and reads the lyrics of described music file, and described memory module is used to store the music file that described playing module is play, it is characterized in that, also comprise:
Recording judge module: be used for having judged whether the recording request in described playing module playing music process;
Recording module: be used for described recording judge module and judge that when the recording request was arranged, the microphone of control portable terminal was recorded to the music of current broadcast and user's sound,
Wherein, when described recording judge module was judged not recording request, described playing module continued playing music.
7. portable terminal recording device as claimed in claim 6 is characterized in that, described portable terminal recording device also comprises:
Parsing module: be used to resolve reproduction time and music file name that the lyrics that described playing module reads obtain current song.
8. portable terminal recording device as claimed in claim 7, it is characterized in that, described parsing module calls the function of obtaining character string width and reproduction time in the mobile terminal system lyrics that obtain is resolved, obtain lyrics information such as the width of the reproduction time of the every row of the lyrics, every capable lyrics, total line number, and obtain the reproduction time of current song, according to reproduction time, judge the music line number of current broadcast, and highlight current line.
9. as claim 7 or 8 described portable terminal recording devices, it is characterized in that described portable terminal recording device also comprises:
Conversion judge module: be used to judge whether original singer's conversion request of accompanying, if original singer's conversion request of accompanying is arranged, then obtain the file name and the reproduction time of current music,, then judged whether the recording request by the recording judge module if there is not original singer's conversion request of accompanying by parsing module.
10. as claim 7 or 8 described portable terminal recording devices, it is characterized in that described portable terminal recording device also comprises:
Search module: the music file title that is used for obtaining according to described parsing module is searched for memory module, finds another music file that mates with the file name of current music, and the broadcast of notifying described playing module to stop current music file,
Wherein, the reproduction time that described playing module obtains according to parsing module is play another music file that is complementary that the search module search obtains from same reproduction time.
CN201010237234.XA 2010-07-22 2010-07-22 Recording method and device with mobile terminal Pending CN101902527A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010237234.XA CN101902527A (en) 2010-07-22 2010-07-22 Recording method and device with mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010237234.XA CN101902527A (en) 2010-07-22 2010-07-22 Recording method and device with mobile terminal

Publications (1)

Publication Number Publication Date
CN101902527A true CN101902527A (en) 2010-12-01

Family

ID=43227721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010237234.XA Pending CN101902527A (en) 2010-07-22 2010-07-22 Recording method and device with mobile terminal

Country Status (1)

Country Link
CN (1) CN101902527A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869233A (en) * 2015-04-27 2015-08-26 深圳市金立通信设备有限公司 Recording method
CN104869232A (en) * 2015-04-27 2015-08-26 深圳市金立通信设备有限公司 Terminal
CN108334623A (en) * 2018-02-09 2018-07-27 广州酷狗计算机科技有限公司 Display methods, the device and system of song

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101034545A (en) * 2006-03-08 2007-09-12 海尔集团公司 Mobile phone for playing the mixed Kara OK music and its implementation method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101034545A (en) * 2006-03-08 2007-09-12 海尔集团公司 Mobile phone for playing the mixed Kara OK music and its implementation method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869233A (en) * 2015-04-27 2015-08-26 深圳市金立通信设备有限公司 Recording method
CN104869232A (en) * 2015-04-27 2015-08-26 深圳市金立通信设备有限公司 Terminal
CN104869233B (en) * 2015-04-27 2019-04-23 深圳市金立通信设备有限公司 A kind of way of recording
CN108334623A (en) * 2018-02-09 2018-07-27 广州酷狗计算机科技有限公司 Display methods, the device and system of song
CN108334623B (en) * 2018-02-09 2021-02-12 广州酷狗计算机科技有限公司 Song display method, device and system

Similar Documents

Publication Publication Date Title
CN104205209B (en) Playback controlling apparatus, playback controls method
US8116746B2 (en) Technologies for finding ringtones that match a user's hummed rendition
CN107644637B (en) Phoneme synthesizing method and device
CN102610267B (en) Method for improving audio playing quality of playing system
CN101282375A (en) Method and mobile terminal for mapping multimedia documents based on call record
CN106155470B (en) A kind of audio file generation method and device
CN101374306A (en) Method for prompting key-press sound of mobile phone keys
CN108766410A (en) Karaoke method, device, intelligent sound based on intelligent sound and storage medium
CN101471074A (en) Method for converting voice into music of electronic device
US8881045B2 (en) Method and apparatus for generating prompt information of a mobile terminal
CN102881309B (en) Lyrics file generates method and device
CN101751967B (en) Multimedia file producing and playing method, multimedia file producing device and player
CN101902527A (en) Recording method and device with mobile terminal
CN101562035B (en) Method for realizing synchronized playing of song lyrics during song playing in music player
CN105005612B (en) A kind of acquisition methods and mobile terminal of music file
CN102883063A (en) Mobile terminal and ring tone setting method
KR20180012397A (en) Management system and method for digital sound source, device and method of playing digital sound source
CN103677231A (en) Mobile terminal for annotating photo and photo annotating method
JP2013160890A (en) Information processing program, information processing apparatus, lyrics display method, and communication system
KR100578724B1 (en) System and method for providing sound for telephone
JP2008191536A (en) Device for sound recording of singing and synthesis with accompaniment music
JP2007298690A (en) Group medley creation system
CN102890948A (en) Online music playing method and terminal equipment thereof
CN114282040A (en) Method for indicating recorded audio content on progress bar and recording system thereof
KR20180012398A (en) Management system and method for digital sound source, device and method of playing digital sound source

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20101201