技术领域technical field
本发明涉及电子技术领域,特别涉及一种录音数据的处理方法及移动终端。The invention relates to the field of electronic technology, in particular to a recording data processing method and a mobile terminal.
背景技术Background technique
目前一般移动终端都支持声音录制的功能,但目前普遍的操作系统都只支持一个应用程序进行声音录制,如有其他应用程序想要录音时,则需要停掉之前的录音才能进行录音,给用户带来诸多的不变。At present, general mobile terminals support the function of sound recording, but the current common operating system only supports one application program for sound recording. If other application programs want to record, they need to stop the previous recording before recording. bring about many changes.
综上所述,目前移动终端受置于操作系统的音频系统的支持,无法支持多个应用程序同时录音,影响用户体验。To sum up, the current mobile terminal is supported by the audio system installed in the operating system, which cannot support simultaneous recording of multiple applications, which affects user experience.
发明内容Contents of the invention
本发明实施例的目的在于提供一种录音数据的处理方法及移动终端,旨在解决移动终端无法支持多个应用程序同时录音,影响用户体验的问题。The purpose of the embodiments of the present invention is to provide a recording data processing method and a mobile terminal, aiming at solving the problem that the mobile terminal cannot support simultaneous recording of multiple application programs and affects user experience.
为了达到上述目的,本发明的实施例提供了一种录音数据的处理方法,包括:In order to achieve the above object, an embodiment of the present invention provides a method for processing recording data, including:
在声音采集设备响应第一应用程序的录音指令,进行音频数据采集的期间,监测是否有第二应用程序发送录音指令;During the period when the sound collection device responds to the recording instruction of the first application program and collects audio data, it is monitored whether there is a second application program sending a recording instruction;
当监测到有第二应用程序发送录音指令时,根据声音采集设备所采集的音频数据,获取符合第一应用程序的录音接收要求的第一录音数据,以及符合第二应用程序的录音接收要求的第二录音数据;When it is detected that there is a recording command sent by the second application program, according to the audio data collected by the sound collection device, the first recording data meeting the recording receiving requirements of the first application program and the recording data meeting the recording receiving requirements of the second application program are obtained. second recording data;
将第一录音数据发送至第一应用程序,以及将第二录音数据发送至第二应用程序。Send the first recording data to the first application program, and send the second recording data to the second application program.
本发明的实施例还提供了一种移动终端,包括:Embodiments of the present invention also provide a mobile terminal, including:
监测模块,用于在声音采集设备响应第一应用程序的录音指令,进行音频数据采集的期间,监测是否有第二应用程序发送录音指令,并当监测到有第二应用程序发送录音指令时,触发第一获取模块;The monitoring module is used to monitor whether there is a second application sending a recording instruction when the sound collection device responds to the recording instruction of the first application and collects audio data, and when it is detected that the second application sends a recording instruction, Trigger the first acquisition module;
第一获取模块,用于根据监测模块的触发,根据声音采集设备所采集的音频数据,获取符合第一应用程序的录音接收要求的第一录音数据,以及符合第二应用程序的录音接收要求的第二录音数据;The first acquisition module is configured to acquire the first recording data that meets the recording reception requirements of the first application program and the recording data that meets the recording reception requirements of the second application program according to the audio data collected by the sound collection device according to the trigger of the monitoring module. second recording data;
发送模块,用于将第一录音数据发送至第一应用程序,以及将第二录音数据发送至第二应用程序。The sending module is used for sending the first recording data to the first application program, and sending the second recording data to the second application program.
本发明的上述方案至少包括以下有益效果:Above-mentioned scheme of the present invention comprises following beneficial effect at least:
在本发明的实施例中,通过在声音采集设备响应第一应用程序的录音指令,进行音频数据采集的期间,监测是否有第二应用程序发送录音指令,并当监测到有第二应用程序发送录音指令时,根据声音采集设备所采集的音频数据,获取符合第一应用程序的录音接收要求的第一录音数据,以及符合第二应用程序的录音接收要求的第二录音数据,并将第一录音数据发送至第一应用程序,以及将第二录音数据发送至第二应用程序,解决了移动终端无法支持多个应用程序同时录音,影响用户体验的问题,达到了使移动终端能支持多个应用程序同时录音,提升用户体验的效果。In an embodiment of the present invention, during the audio data collection period in which the sound collection device responds to the recording instruction of the first application program, it is monitored whether there is a second application program sending a recording instruction, and when it is detected that there is a second application program sending When recording instructions, according to the audio data collected by the sound collection device, the first recording data meeting the recording receiving requirements of the first application program and the second recording data meeting the recording receiving requirements of the second application program are obtained, and the first The recording data is sent to the first application program, and the second recording data is sent to the second application program, which solves the problem that the mobile terminal cannot support multiple application programs to record at the same time, which affects the user experience, and achieves that the mobile terminal can support multiple applications. The app records simultaneously to enhance the user experience.
附图说明Description of drawings
图1为本发明第一实施例中录音数据的处理方法的流程图;Fig. 1 is the flowchart of the processing method of recording data in the first embodiment of the present invention;
图2为本发明第二实施例中录音数据的处理方法的流程图;Fig. 2 is the flowchart of the processing method of recording data in the second embodiment of the present invention;
图3为本发明第三实施例中移动终端的结构示意图之一;FIG. 3 is one of the structural schematic diagrams of the mobile terminal in the third embodiment of the present invention;
图4为本发明第三实施例中移动终端的结构示意图之二;FIG. 4 is the second structural schematic diagram of the mobile terminal in the third embodiment of the present invention;
图5为本发明第四实施例中移动终端的结构示意图;FIG. 5 is a schematic structural diagram of a mobile terminal in a fourth embodiment of the present invention;
图6为本发明第五实施例中移动终端的结构示意图。FIG. 6 is a schematic structural diagram of a mobile terminal in a fifth embodiment of the present invention.
具体实施方式detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
第一实施例first embodiment
如图1所示,本发明的第一实施例提供了一种录音数据的处理方法,该方法包括:As shown in Figure 1, the first embodiment of the present invention provides a method for processing recording data, the method comprising:
步骤101,在声音采集设备响应第一应用程序的录音指令,进行音频数据采集的期间,监测是否有第二应用程序发送录音指令。Step 101 , during the period when the sound collection device responds to the recording instruction of the first application program and collects audio data, it is monitored whether there is a second application program sending a recording instruction.
其中,上述声音采集设备可以为移动终端的麦克风,且该移动终端可以为智能手机、平板电脑等设备。此外,上述第一应用程序与第二应用程序可以为移动终端中任意两个具备录音功能的应用程序。Wherein, the above-mentioned sound collection device may be a microphone of a mobile terminal, and the mobile terminal may be a smart phone, a tablet computer or other devices. In addition, the above-mentioned first application program and the second application program may be any two application programs in the mobile terminal having a recording function.
步骤102,当监测到有第二应用程序发送录音指令时,根据声音采集设备所采集的音频数据,获取符合第一应用程序的录音接收要求的第一录音数据,以及符合第二应用程序的录音接收要求的第二录音数据。Step 102, when it is detected that a second application program sends a recording instruction, according to the audio data collected by the sound collection device, obtain the first recording data that meets the recording receiving requirements of the first application program, and the recording data that meets the recording requirements of the second application program. The requested second recording data is received.
其中,上述第一应用程序的录音指令与第二应用程序的录音指令均包括用于指示录音开始的第一指令,以及用于指示录音结束的第二指令,因此上述第一应用程序的录音指令与第二应用程序的录音指令均能指示各自的录音起止时间。而由于声音采集设备所采集的音频数据的格式、采样率以及声道都可能是固定的,同时第一应用程序与第二应用程序的录音起止时间也可能不同,因此为满足第一应用程序与第二应用程序的录音要求,需要根据声音采集设备所采集的音频数据,获取第一录音数据与第二录音数据。Wherein, the above-mentioned recording instruction of the first application program and the recording instruction of the second application program both include a first instruction for instructing the start of recording and a second instruction for instructing the end of recording, so the recording instruction of the above-mentioned first application program Both the recording instructions and the second application program can indicate the start and end times of the respective recordings. And since the format, sampling rate and channel of the audio data collected by the sound collection device may be fixed, and the recording start and end times of the first application program and the second application program may be different simultaneously, so in order to satisfy the requirements of the first application program and the second application program, The recording requirement of the second application program needs to obtain the first recording data and the second recording data according to the audio data collected by the sound collection device.
且在本发明的第一实施例中,上述步骤102的具体实现方式可以为:在音频数据中截取符合第一应用程序的录音指令的录音起止时间的音频数据,获得第一录音数据;以及在音频数据中截取符合第二应用程序的录音指令的录音起止时间的音频数据,获得第二录音数据。And in the first embodiment of the present invention, the specific implementation of the above step 102 can be: intercepting the audio data in the audio data that conforms to the recording start and end time of the recording instruction of the first application program, to obtain the first recording data; and Intercepting the audio data that conforms to the recording start and end time of the recording instruction of the second application program from the audio data to obtain the second recording data.
此外,若未监测到有第二应用程序发送录音指令,则确定移动终端中只有第一应用程序进行声音录制,并按照目前应用程序进行声音录制的方式使第一应用程序完成声音的录制。In addition, if no recording instruction is detected from the second application program, it is determined that only the first application program in the mobile terminal performs sound recording, and the first application program completes the sound recording according to the way the current application program performs sound recording.
步骤103,将第一录音数据发送至第一应用程序,以及将第二录音数据发送至第二应用程序。Step 103, sending the first recording data to the first application program, and sending the second recording data to the second application program.
其中,在本发明的第一实施例中,若第一应用程序与第二应用程序的录音起止时间不同,则向第一应用程序发送第一录音数据的时间,与向第二应用程序发送第二录音数据的时间也不同,从而确保满足第一应用程序与第二应用程序的录音要求。Wherein, in the first embodiment of the present invention, if the recording start and end times of the first application program and the second application program are different, the time for sending the first recording data to the first application program is different from the time for sending the first recording data to the second application program. The times of the two recording data are also different, so as to ensure that the recording requirements of the first application program and the second application program are met.
可见,在本发明的第一实施例中,通过在声音采集设备响应第一应用程序的录音指令,进行音频数据采集的期间,监测是否有第二应用程序发送录音指令,并当监测到有第二应用程序发送录音指令时,根据声音采集设备所采集的音频数据,获取符合第一应用程序的录音接收要求的第一录音数据,以及符合第二应用程序的录音接收要求的第二录音数据,并将第一录音数据发送至第一应用程序,以及将第二录音数据发送至第二应用程序,解决了移动终端无法支持多个应用程序同时录音,影响用户体验的问题,达到了使移动终端能支持多个应用程序同时录音,提升用户体验的效果。It can be seen that in the first embodiment of the present invention, during the period when the sound collection device responds to the recording instruction of the first application program and collects audio data, it is monitored whether there is a second application program sending a recording instruction, and when it is detected that there is a second application program 2. When the application program sends a recording instruction, according to the audio data collected by the sound collection device, the first recording data meeting the recording receiving requirements of the first application program and the second recording data meeting the recording receiving requirements of the second application program are obtained, And the first recording data is sent to the first application program, and the second recording data is sent to the second application program, which solves the problem that the mobile terminal cannot support simultaneous recording of multiple application programs and affects the user experience, and achieves the goal of making the mobile terminal It can support multiple applications to record at the same time, improving the effect of user experience.
第二实施例second embodiment
如图2所示,本发明的第二实施例提供了一种录音数据的处理方法,该方法包括:As shown in Figure 2, the second embodiment of the present invention provides a method for processing recording data, the method comprising:
步骤201,在声音采集设备响应第一应用程序的录音指令,进行音频数据采集的期间,监测是否有第二应用程序发送录音指令。Step 201 , during the period when the sound collection device responds to the recording instruction of the first application program and collects audio data, it is monitored whether there is a second application program sending a recording instruction.
其中,上述声音采集设备可以为移动终端的麦克风,且该移动终端可以为智能手机、平板电脑等设备。此外,上述第一应用程序与第二应用程序可以为移动终端中任意两个具备录音功能的应用程序。Wherein, the above-mentioned sound collection device may be a microphone of a mobile terminal, and the mobile terminal may be a smart phone, a tablet computer or other devices. In addition, the above-mentioned first application program and the second application program may be any two application programs in the mobile terminal having a recording function.
步骤202,当监测到有第二应用程序发送录音指令时,获取第一应用程序所支持的第一音频数据格式,以及第二应用程序所支持的第二音频数据格式。Step 202, when it is detected that the second application program sends a recording instruction, acquire the first audio data format supported by the first application program and the second audio data format supported by the second application program.
其中,上述第一应用程序的录音指令与第二应用程序的录音指令均包括用于指示录音开始的第一指令,以及用于指示录音结束的第二指令,因此上述第一应用程序的录音指令与第二应用程序的录音指令均能指示各自的录音起止时间。Wherein, the above-mentioned recording instruction of the first application program and the recording instruction of the second application program both include a first instruction for instructing the start of recording and a second instruction for instructing the end of recording, so the recording instruction of the above-mentioned first application program Both the recording instructions and the second application program can indicate the start and end times of the respective recordings.
且在本发明的第二实施例中,由于声音采集设备所采集的音频数据的格式、采样率以及声道都可能是固定的,导致声音采集设备所采集的音频数据的格式不一定符合第一应用程序所支持的第一音频数据格式,以及第二应用程序所支持的第二音频数据格式,因此为满足第一应用程序与第二应用程序的录音要求,需要获取第一音频数据格式以及第二音频数据格式。And in the second embodiment of the present invention, since the format, sampling rate and channel of the audio data collected by the sound collection device may be fixed, the format of the audio data collected by the sound collection device may not necessarily conform to the first The first audio data format supported by the application program, and the second audio data format supported by the second application program, so in order to meet the recording requirements of the first application program and the second application program, it is necessary to obtain the first audio data format and the second audio data format Two audio data formats.
步骤203,根据第一音频数据格式与声音采集设备所采集的音频数据获取第一录音数据,同时根据第二音频数据格式与声音采集设备所采集的音频数据获取第二录音数据。Step 203: Obtain first recording data according to the first audio data format and the audio data collected by the sound collection device, and obtain second recording data according to the second audio data format and the audio data collected by the sound collection device.
其中,在本发明的第二实施例中,根据第一音频数据格式与声音采集设备所采集的音频数据获取第一录音数据的具体实现方式为:若声音采集设备所采集的音频数据的格式与第一音频数据格式不相同,则根据第一音频数据格式,对声音采集设备所采集的音频数据进行转换处理,获得第一录音数据;或者,若声音采集设备所采集的音频数据的格式与第一音频数据格式相同,则将声音采集设备所采集的音频数据作为第一录音数据,从而确保获取到的第一录音数据满足第一应用程序的录音要求。Among them, in the second embodiment of the present invention, according to the format of the first audio data and the audio data collected by the sound collection device, the specific implementation method of obtaining the first recording data is as follows: if the format of the audio data collected by the sound collection device is the same as The format of the first audio data is different, then according to the format of the first audio data, the audio data collected by the sound collection device is converted and processed to obtain the first recording data; or, if the format of the audio data collected by the sound collection device is the same as the format of the first audio data If the audio data formats are the same, the audio data collected by the sound collection device is used as the first recording data, so as to ensure that the acquired first recording data meets the recording requirements of the first application program.
同理,根据第二音频数据格式与声音采集设备所采集的音频数据获取第二录音数据的具体实现方式为:若声音采集设备所采集的音频数据的格式与第二音频数据格式不相同,则根据第二音频数据格式,对声音采集设备所采集的音频数据进行转换处理,获得第二录音数据;或者,若声音采集设备所采集的音频数据的格式与第二音频数据格式相同,则将声音采集设备所采集的音频数据作为第二录音数据,从而确保获取到的第二录音数据满足第二应用程序的录音要求。Similarly, according to the format of the second audio data and the audio data collected by the sound collection device, the specific implementation method for obtaining the second recording data is as follows: if the format of the audio data collected by the sound collection device is different from the format of the second audio data, then According to the second audio data format, the audio data collected by the sound collection device is converted to obtain the second recording data; or, if the format of the audio data collected by the sound collection device is the same as the second audio data format, the sound The audio data collected by the collection device is used as the second recording data, so as to ensure that the obtained second recording data meets the recording requirements of the second application program.
需要说明的是,在本发明的第二实施例中,为进一步确保第一应用程序与第二应用程序的录音要求,在依据声音采集设备所采集的音频数据获取第一录音数据时,还应结合第一应用程序的录音起止时间,确保获取到的第一录音数据的起止时间与第一应用程序的录音起止时间相同;同理,在依据声音采集设备所采集的音频数据获取第二录音数据时,也应结合第二应用程序的录音起止时间,确保获取到的第二录音数据的起止时间与第二应用程序的录音起止时间相同。It should be noted that, in the second embodiment of the present invention, in order to further ensure the recording requirements of the first application program and the second application program, when obtaining the first recording data according to the audio data collected by the sound collection device, it should also Combined with the recording start and end time of the first application program, ensure that the start and end time of the first recording data obtained is the same as the recording start and end time of the first application program; similarly, according to the audio data collected by the sound collection device to obtain the second recording data When the recording start and end time of the second application program should also be combined, it should be ensured that the start and end time of the acquired second recording data is the same as the recording start and end time of the second application program.
步骤204,将第一录音数据发送至第一应用程序,以及将第二录音数据发送至第二应用程序。Step 204, sending the first recording data to the first application program, and sending the second recording data to the second application program.
其中,在本发明的第二实施例中,上述步骤204的具体实现方式可以为:在第一应用程序的录音指令的第一录音结束时间到达时,将第一录音数据发送至第一应用程序;以及在第二应用程序的录音指令的第二录音结束时间到达时,将第二录音数据发送至第二应用程序,从而确保第一应用程序与第二应用程序的录音要求。Wherein, in the second embodiment of the present invention, the specific implementation of the above step 204 may be: when the first recording end time of the recording instruction of the first application program arrives, the first recording data is sent to the first application program ; and when the second recording end time of the recording instruction of the second application program arrives, sending the second recording data to the second application program, so as to ensure the recording requirements of the first application program and the second application program.
其中,在本发明的第二实施例中,在执行完上述步骤201之后,上述方法还包括:在监测到有第二应用程序发送录音指令时,获取第一应用程序的录音指令的第一录音结束时间和第二应用程序的录音指令的第二录音结束时间,并将第一录音结束时间和第二录音结束时间中最后到达的时间,确定为声音采集设备进行音频数据采集的结束时间,从而使得在第一录音结束时间和第二录音结束时间都达到之后,能及时关闭声音采集设备。Wherein, in the second embodiment of the present invention, after the above step 201 is performed, the above method further includes: when it is detected that a second application program sends a recording instruction, acquiring the first recording of the recording instruction of the first application program The end time and the second recording end time of the recording instruction of the second application program, and the last arrival time in the first recording end time and the second recording end time is determined as the end time for the sound collection device to collect audio data, thereby This enables the sound collection device to be turned off in time after both the first recording end time and the second recording end time are reached.
作为一个示例,在本发明的第二实施例中,上述方法的执行主体可以为移动终端中的一录音进程,其在接收到第一应用程序的录音指令时,驱动声音采集设备进行音频数据采集,并监测是否有第二应用程序发送录音指令,当监测到有第二应用程序发送录音指令时,与第二应用程序建立连接,并根据从声音采集设备读取到的音频数据,获得上述第一录音数据与第二录音数据,并将第一录音数据发送给第一应用程序,以及将第二录音数据发送给第二应用程序。其中,当上述录音进程发现任一应用程序的录音结束时间到达时,便会断开与该应用程序的连接,且在所有应用程序的录音结束时间都到达时,关闭上述声音采集设备。As an example, in the second embodiment of the present invention, the execution subject of the above method may be a recording process in the mobile terminal, which drives the sound collection device to collect audio data when receiving the recording instruction from the first application program , and monitor whether there is a second application program sending a recording command, when it is detected that a second application program is sending a recording command, establish a connection with the second application program, and obtain the above-mentioned first application program according to the audio data read from the sound collection device. One recording data and second recording data, and sending the first recording data to the first application program, and sending the second recording data to the second application program. Wherein, when the above-mentioned recording process finds that the recording end time of any application program is reached, it will disconnect the connection with the application program, and when the recording end time of all application programs is reached, the above-mentioned sound collection device will be turned off.
在本发明的第二实施例中,通过在声音采集设备响应第一应用程序的录音指令,进行音频数据采集的期间,监测是否有第二应用程序发送录音指令,并当监测到有第二应用程序发送录音指令时,获取第一应用程序所支持的第一音频数据格式,以及第二应用程序所支持的第二音频数据格式,进而根据第一音频数据格式、第二音频数据格式以及声音采集设备所采集的音频数据,获取符合第一应用程序的录音接收要求的第一录音数据,以及符合第二应用程序的录音接收要求的第二录音数据,并将第一录音数据发送至第一应用程序,以及将第二录音数据发送至第二应用程序,解决了移动终端无法支持多个应用程序同时录音,影响用户体验的问题,达到了使移动终端能支持多个应用程序同时录音,提升用户体验的效果。In the second embodiment of the present invention, when the sound collection device responds to the recording instruction of the first application program and collects audio data, it is monitored whether there is a second application program sending a recording instruction, and when it is detected that there is a second application program When the program sends a recording command, it obtains the first audio data format supported by the first application program and the second audio data format supported by the second application program, and then according to the first audio data format, the second audio data format and the sound collection From the audio data collected by the device, obtain the first recording data meeting the recording receiving requirements of the first application program, and the second recording data meeting the recording receiving requirements of the second application program, and send the first recording data to the first application program program, and send the second recording data to the second application program, which solves the problem that the mobile terminal cannot support simultaneous recording of multiple application programs and affects user experience, and achieves that the mobile terminal can support simultaneous recording of multiple application programs and improve user experience. The effect of experience.
第三实施例third embodiment
如图3~图4所示,本发明的第三实施例提供了一种移动终端,该移动终端300包括:监测模块301、第一获取模块302以及发送模块303,且第一获取模块302与监测模块301以及发送模块303连接。As shown in Figures 3 to 4, the third embodiment of the present invention provides a mobile terminal, the mobile terminal 300 includes: a monitoring module 301, a first acquiring module 302 and a sending module 303, and the first acquiring module 302 and The monitoring module 301 and the sending module 303 are connected.
其中,监测模块301,用于在声音采集设备响应第一应用程序的录音指令,进行音频数据采集的期间,监测是否有第二应用程序发送录音指令,并当监测到有第二应用程序发送录音指令时,触发第一获取模块302;Among them, the monitoring module 301 is used to monitor whether there is a second application program sending a recording instruction during the period when the sound collection device responds to the recording instruction of the first application program and collects audio data, and when it is detected that there is a second application program sending a recording instruction Instruction, trigger the first acquisition module 302;
其中,上述声音采集设备可以为移动终端300中的麦克风,且该移动终端300可以为智能手机、平板电脑等设备。Wherein, the above-mentioned sound collection device may be a microphone in the mobile terminal 300, and the mobile terminal 300 may be a smart phone, a tablet computer and other devices.
第一获取模块302,用于根据监测模块301的触发,根据声音采集设备所采集的音频数据,获取符合第一应用程序的录音接收要求的第一录音数据,以及符合第二应用程序的录音接收要求的第二录音数据;The first acquiring module 302 is configured to acquire the first recording data meeting the recording receiving requirements of the first application program and the recording receiving data meeting the recording receiving requirements of the second application program according to the triggering of the monitoring module 301 and the audio data collected by the sound collecting device. the requested second recording data;
发送模块303,用于将第一录音数据发送至第一应用程序,以及将第二录音数据发送至第二应用程序。The sending module 303 is configured to send the first recording data to the first application program, and send the second recording data to the second application program.
可选的,上述移动终端还包括相互连接的第二获取模块304与确定模块305。Optionally, the above mobile terminal further includes a second acquiring module 304 and a determining module 305 connected to each other.
其中,第二获取模块304,用于在监测到有第二应用程序发送录音指令时,获取第一应用程序的录音指令的第一录音结束时间和第二应用程序的录音指令的第二录音结束时间;Wherein, the second obtaining module 304 is configured to obtain the end time of the first recording of the recording instruction of the first application and the end of the second recording of the recording instruction of the second application when it is detected that the recording instruction is sent by the second application. time;
确定模块305,用于将第一录音结束时间和第二录音结束时间中最后到达的时间,确定为声音采集设备进行音频数据采集的结束时间。The determination module 305 is configured to determine the last arrival time of the first recording end time and the second recording end time as the end time of audio data collection by the sound collection device.
可选的,上述第一获取模块302包括:第一获取子模块3021与第二获取子模块3022。Optionally, the above-mentioned first obtaining module 302 includes: a first obtaining sub-module 3021 and a second obtaining sub-module 3022 .
其中,第一获取子模块3021,用于在音频数据中截取符合第一应用程序的录音指令的录音起止时间的音频数据,获得第一录音数据;Wherein, the first acquisition sub-module 3021 is used to intercept the audio data in accordance with the recording start and end time of the recording instruction of the first application program from the audio data, and obtain the first recording data;
第二获取子模块3022,用于在音频数据中截取符合第二应用程序的录音指令的录音起止时间的音频数据,获得第二录音数据。The second obtaining sub-module 3022 is configured to intercept the audio data conforming to the recording start and end time of the recording instruction of the second application program from the audio data, and obtain the second recording data.
可选的,上述第一获取模块302包括相互连接的第三获取子模块3023与第四获取子模块3024。Optionally, the first acquisition module 302 includes a third acquisition submodule 3023 and a fourth acquisition submodule 3024 connected to each other.
其中,第三获取子模块3023,用于获取第一应用程序所支持的第一音频数据格式,以及第二应用程序所支持的第二音频数据格式;Wherein, the third obtaining sub-module 3023 is used to obtain the first audio data format supported by the first application program and the second audio data format supported by the second application program;
第四获取子模块3024,用于根据第一音频数据格式与声音采集设备所采集的音频数据获取第一录音数据,同时根据第二音频数据格式与声音采集设备所采集的音频数据获取第二录音数据。The fourth obtaining sub-module 3024 is used to obtain the first recording data according to the first audio data format and the audio data collected by the sound collection device, and simultaneously obtain the second recording according to the second audio data format and the audio data collected by the sound collection device data.
可选的,上述第四获取子模块3024包括:第一获取单元30241或者第二获取单元30242。Optionally, the fourth obtaining submodule 3024 includes: a first obtaining unit 30241 or a second obtaining unit 30242 .
其中,第一获取单元30241,用于若声音采集设备所采集的音频数据的格式与第一音频数据格式不相同,则根据第一音频数据格式,对声音采集设备所采集的音频数据进行转换处理,获得第一录音数据;Wherein, the first acquisition unit 30241 is used to convert the audio data collected by the sound collection device according to the first audio data format if the format of the audio data collected by the sound collection device is different from the first audio data format , to obtain the first recording data;
第二获取单元30242,用于若声音采集设备所采集的音频数据的格式与第一音频数据格式相同,则将声音采集设备所采集的音频数据作为第一录音数据。The second acquiring unit 30242 is configured to use the audio data collected by the sound collection device as the first recording data if the format of the audio data collected by the sound collection device is the same as the format of the first audio data.
可选的,第四获取子模块3024包括:第三获取单元30243或者第四获取单元30244。Optionally, the fourth obtaining submodule 3024 includes: a third obtaining unit 30243 or a fourth obtaining unit 30244 .
其中,第三获取单元30243,用于若声音采集设备所采集的音频数据的格式与第二音频数据格式不相同,则根据第二音频数据格式,对声音采集设备所采集的音频数据进行转换处理,获得第二录音数据;Wherein, the third acquisition unit 30243 is used to convert the audio data collected by the sound collection device according to the second audio data format if the format of the audio data collected by the sound collection device is different from the second audio data format , to obtain the second recording data;
第四获取单元30244,用于若声音采集设备所采集的音频数据的格式与第二音频数据格式相同,则将声音采集设备所采集的音频数据作为第二录音数据。The fourth acquiring unit 30244 is configured to use the audio data collected by the sound collection device as the second recording data if the format of the audio data collected by the sound collection device is the same as that of the second audio data.
可选的,上述发送模块303包括:第一发送子模块3031与第二发送子模块3032。Optionally, the sending module 303 includes: a first sending sub-module 3031 and a second sending sub-module 3032 .
其中,第一发送子模块3031,用于在第一应用程序的录音指令的第一录音结束时间到达时,将第一录音数据发送至第一应用程序;Wherein, the first sending sub-module 3031 is configured to send the first recording data to the first application program when the first recording end time of the recording instruction of the first application program arrives;
第二发送子模块3032,用于在第二应用程序的录音指令的第二录音结束时间到达时,将第二录音数据发送至第二应用程序。The second sending sub-module 3032 is configured to send the second recording data to the second application program when the second recording end time of the recording instruction of the second application program arrives.
在本发明的第三实施例中,移动终端通过在声音采集设备响应第一应用程序的录音指令,进行音频数据采集的期间,监测是否有第二应用程序发送录音指令,并当监测到有第二应用程序发送录音指令时,根据声音采集设备所采集的音频数据,获取符合第一应用程序的录音接收要求的第一录音数据,以及符合第二应用程序的录音接收要求的第二录音数据,并将第一录音数据发送至第一应用程序,以及将第二录音数据发送至第二应用程序,解决了移动终端无法支持多个应用程序同时录音,影响用户体验的问题,达到了使移动终端能支持多个应用程序同时录音,提升用户体验的效果。In the third embodiment of the present invention, the mobile terminal monitors whether there is a second application program sending a recording instruction during the audio data collection period when the sound collection device responds to the recording instruction of the first application program, and when it detects that there is a second application program 2. When the application program sends a recording instruction, according to the audio data collected by the sound collection device, the first recording data meeting the recording receiving requirements of the first application program and the second recording data meeting the recording receiving requirements of the second application program are obtained, And the first recording data is sent to the first application program, and the second recording data is sent to the second application program, which solves the problem that the mobile terminal cannot support simultaneous recording of multiple application programs and affects the user experience, and achieves the goal of making the mobile terminal It can support multiple applications to record at the same time, improving the effect of user experience.
需要说明的是,本发明第三实施例提供的移动终端是应用上述录音数据的处理方法的移动终端,即上述录音数据的处理方法的所有实施例均适用于该移动终端,且均能达到相同或相似的有益效果。It should be noted that the mobile terminal provided by the third embodiment of the present invention is a mobile terminal to which the above-mentioned recording data processing method is applied, that is, all embodiments of the above-mentioned recording data processing method are applicable to this mobile terminal, and can achieve the same or similar beneficial effects.
第四实施例Fourth embodiment
如图5所示,本发明的第四实施例提供了一种移动终端,该移动终端500包括:至少一个处理器501、存储器502、至少一个网络接口504和其他用户接口503。移动终端500中的各个组件通过总线系统505耦合在一起。可理解,总线系统505用于实现这些组件之间的连接通信。总线系统505除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统505。As shown in FIG. 5 , the fourth embodiment of the present invention provides a mobile terminal. The mobile terminal 500 includes: at least one processor 501 , a memory 502 , at least one network interface 504 and other user interfaces 503 . Various components in the mobile terminal 500 are coupled together through the bus system 505 . It can be understood that the bus system 505 is used to realize connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 505 in FIG. 5 .
其中,用户接口503可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Wherein, the user interface 503 may include a display, a keyboard, or a pointing device (for example, a mouse, a trackball (trackball), a touch panel, or a touch screen, and the like.
可以理解,本发明实施例中的存储器502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambus RAM,DRRAM)。本文描述的系统和方法的存储器502旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 502 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data RateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM, SLDRAM) And direct memory bus random access memory (DirectRambus RAM, DRRAM). Memory 502 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
在一些实施方式中,存储器502存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统5021和应用程序5022。In some implementations, the memory 502 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 5021 and an application program 5022 .
其中,操作系统5021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序5022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序5022中。Among them, the operating system 5021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing tasks based on hardware. The application program 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., and is used to implement various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 5022 .
在本发明实施例中,通过调用存储器502存储的程序或指令,具体的,可以是应用程序5022中存储的程序或指令,处理器501用于在声音采集设备响应第一应用程序的录音指令,进行音频数据采集的期间,监测是否有第二应用程序发送录音指令;当监测到有第二应用程序发送录音指令时,根据声音采集设备所采集的音频数据,获取符合第一应用程序的录音接收要求的第一录音数据,以及符合第二应用程序的录音接收要求的第二录音数据;将第一录音数据发送至第一应用程序,以及将第二录音数据发送至第二应用程序。In the embodiment of the present invention, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application program 5022, the processor 501 is used to respond to the recording instruction of the first application program in the sound collection device, During the period of audio data collection, it is monitored whether there is a second application program sending a recording command; when it is detected that a second application program is sending a recording command, according to the audio data collected by the sound collection device, obtain the recording received by the first application program. The required first recording data, and the second recording data meeting the recording receiving requirements of the second application program; sending the first recording data to the first application program, and sending the second recording data to the second application program.
上述本发明实施例揭示的方法可以应用于处理器501中,或者由处理器501实现。处理器501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器501可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器502,处理器501读取存储器502中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 501 or implemented by the processor 501 . The processor 501 may be an integrated circuit chip and has signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 501 or instructions in the form of software. The above-mentioned processor 501 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other available Program logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502, and completes the steps of the above method in combination with its hardware.
可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It should be understood that the embodiments described herein may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSP Device, DSPD), programmable logic Device (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in this application or a combination thereof.
对于软件实现,可通过执行本文所述功能的模块(例如过程、函数等)来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein can be implemented through modules (eg, procedures, functions, and so on) that perform the functions described herein. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.
可选地,理器501还用于:在监测到有第二应用程序发送录音指令时,获取第一应用程序的录音指令的第一录音结束时间和第二应用程序的录音指令的第二录音结束时间;将第一录音结束时间和第二录音结束时间中最后到达的时间,确定为声音采集设备进行音频数据采集的结束时间。Optionally, the processor 501 is further configured to: acquire the end time of the first recording of the recording instruction of the first application and the second recording of the recording instruction of the second application when it is detected that a recording instruction is sent by the second application. End time: the last arrival time of the first recording end time and the second recording end time is determined as the end time of audio data collection by the sound collection device.
可选地,处理器501还用于:在音频数据中截取符合第一应用程序的录音指令的录音起止时间的音频数据,获得第一录音数据;在音频数据中截取符合第二应用程序的录音指令的录音起止时间的音频数据,获得第二录音数据。Optionally, the processor 501 is further configured to: intercept the audio data in the audio data conforming to the recording start and end time of the recording instruction of the first application program to obtain the first recording data; intercept the recording conforming to the second application program in the audio data The audio data of the recording start and end time of the command is used to obtain the second recording data.
可选地,处理器501还用于:获取第一应用程序所支持的第一音频数据格式,以及第二应用程序所支持的第二音频数据格式;根据第一音频数据格式与声音采集设备所采集的音频数据获取第一录音数据,同时根据第二音频数据格式与声音采集设备所采集的音频数据获取第二录音数据。Optionally, the processor 501 is further configured to: acquire the first audio data format supported by the first application program, and the second audio data format supported by the second application program; The collected audio data obtains the first recording data, and at the same time obtains the second recording data according to the format of the second audio data and the audio data collected by the sound collection device.
可选地,处理器501还用于:若声音采集设备所采集的音频数据的格式与第一音频数据格式不相同,则根据第一音频数据格式,对声音采集设备所采集的音频数据进行转换处理,获得第一录音数据;或者,若声音采集设备所采集的音频数据的格式与第一音频数据格式相同,则将声音采集设备所采集的音频数据作为第一录音数据。Optionally, the processor 501 is further configured to: if the format of the audio data collected by the sound collection device is different from the first audio data format, convert the audio data collected by the sound collection device according to the first audio data format Processing to obtain the first recording data; or, if the format of the audio data collected by the sound collection device is the same as the format of the first audio data, the audio data collected by the sound collection device is used as the first recording data.
可选地,处理器501还用于:若声音采集设备所采集的音频数据的格式与第二音频数据格式不相同,则根据第二音频数据格式,对声音采集设备所采集的音频数据进行转换处理,获得第二录音数据;或者,若声音采集设备所采集的音频数据的格式与第二音频数据格式相同,则将声音采集设备所采集的音频数据作为第二录音数据。Optionally, the processor 501 is further configured to: if the format of the audio data collected by the sound collection device is different from the second audio data format, convert the audio data collected by the sound collection device according to the second audio data format Processing to obtain the second recording data; or, if the format of the audio data collected by the sound collection device is the same as the format of the second audio data, the audio data collected by the sound collection device is used as the second recording data.
可选地,处理器501还用于:在第一应用程序的录音指令的第一录音结束时间到达时,将第一录音数据发送至第一应用程序;在第二应用程序的录音指令的第二录音结束时间到达时,将第二录音数据发送至第二应用程序。Optionally, the processor 501 is further configured to: send the first recording data to the first application program when the first recording end time of the recording instruction of the first application program arrives; When the second recording end time arrives, the second recording data is sent to the second application program.
移动终端500能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 500 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and to avoid repetition, details are not repeated here.
在本发明的第四实施例中,移动终端通过在声音采集设备响应第一应用程序的录音指令,进行音频数据采集的期间,监测是否有第二应用程序发送录音指令,并当监测到有第二应用程序发送录音指令时,根据声音采集设备所采集的音频数据,获取符合第一应用程序的录音接收要求的第一录音数据,以及符合第二应用程序的录音接收要求的第二录音数据,并将第一录音数据发送至第一应用程序,以及将第二录音数据发送至第二应用程序,解决了移动终端无法支持多个应用程序同时录音,影响用户体验的问题,达到了使移动终端能支持多个应用程序同时录音,提升用户体验的效果。In the fourth embodiment of the present invention, the mobile terminal monitors whether there is a second application program sending a recording instruction during the period when the sound collection device responds to the recording instruction of the first application program and collects audio data, and when it detects that there is a second application program 2. When the application program sends a recording instruction, according to the audio data collected by the sound collection device, the first recording data meeting the recording receiving requirements of the first application program and the second recording data meeting the recording receiving requirements of the second application program are obtained, And the first recording data is sent to the first application program, and the second recording data is sent to the second application program, which solves the problem that the mobile terminal cannot support simultaneous recording of multiple application programs and affects the user experience, and achieves the goal of making the mobile terminal It can support multiple applications to record at the same time, improving the effect of user experience.
第五实施例fifth embodiment
如图6所示,本发明的第五实施例提供了一种移动终端,该移动终端600可以为手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、或车载电脑等。As shown in FIG. 6 , a fifth embodiment of the present invention provides a mobile terminal. The mobile terminal 600 may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.
图6中的移动终端600包括射频(Radio Frequency,RF)电路610、存储器620、输入单元630、显示单元640、处理器660、音频电路670、WiFi(Wireless Fidelity)模块680和电源690。The mobile terminal 600 in FIG.
其中,输入单元630可用于接收用户输入的数字或字符信息,以及产生与移动终端600的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元630可以包括触控面板631。触控面板631,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板631上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器660,并能接收处理器660发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板631。除了触控面板631,输入单元630还可以包括其他输入设备632,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 630 can be used to receive number or character information input by the user, and generate signal input related to the user setting and function control of the mobile terminal 600 . Specifically, in the embodiment of the present invention, the input unit 630 may include a touch panel 631 . The touch panel 631, also referred to as a touch screen, can collect user's touch operations on or near it (such as the user's operation on the touch panel 631 using any suitable object or accessory such as a finger, a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 631 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 660, and can receive and execute commands sent by the processor 660. In addition, the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 631, the input unit 630 may also include other input devices 632, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.
其中,显示单元640可用于显示由用户输入的信息或提供给用户的信息以及移动终端600的各种菜单界面。显示单元640可包括显示面板641,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板641。Wherein, the display unit 640 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 600 . The display unit 640 may include a display panel 641. Optionally, the display panel 641 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).
应注意,触控面板631可以覆盖显示面板641,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器660以确定触摸事件的类型,随后处理器660根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 631 can cover the display panel 641 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 660 to determine the type of the touch event, and then the processor 660 provides corresponding visual output on the touch display screen according to the type of the touch event.
触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one interface element such as an icon of an application program and/or a widget desktop control. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons.
其中处理器660是移动终端600的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器621内的软件程序和/或模块,以及调用存储在第二存储器622内的数据,执行移动终端600的各种功能和处理数据,从而对移动终端600进行整体监控。可选的,处理器660可包括一个或多个处理单元。Wherein the processor 660 is the control center of the mobile terminal 600, utilizes various interfaces and lines to connect the various parts of the whole mobile phone, by running or executing the software programs and/or modules stored in the first memory 621, and calling the software programs and/or modules stored in the second memory 621. The data in the memory 622 executes various functions of the mobile terminal 600 and processes data, so as to monitor the mobile terminal 600 as a whole. Optionally, the processor 660 may include one or more processing units.
在本发明实施例中,通过调用存储该第一存储器621内的软件程序和/或模块和/或该第二存储器622内的数据,处理器660用于在声音采集设备响应第一应用程序的录音指令,进行音频数据采集的期间,监测是否有第二应用程序发送录音指令;当监测到有第二应用程序发送录音指令时,根据声音采集设备所采集的音频数据,获取符合第一应用程序的录音接收要求的第一录音数据,以及符合第二应用程序的录音接收要求的第二录音数据;将第一录音数据发送至第一应用程序,以及将第二录音数据发送至第二应用程序。In the embodiment of the present invention, by calling the software programs and/or modules stored in the first memory 621 and/or the data in the second memory 622, the processor 660 is used to respond to the first application program in the sound collection device. Recording instructions, during the period of audio data collection, monitor whether there is a second application program sending recording instructions; when it is detected that there is a second application program sending recording instructions, according to the audio data collected by the sound collection device, get The first recording data that meets the recording receiving requirements of the second application program, and the second recording data that meets the recording receiving requirements of the second application program; the first recording data is sent to the first application program, and the second recording data is sent to the second application program .
可选地,处理器660还用于:在监测到有第二应用程序发送录音指令时,获取第一应用程序的录音指令的第一录音结束时间和第二应用程序的录音指令的第二录音结束时间;将第一录音结束时间和第二录音结束时间中最后到达的时间,确定为声音采集设备进行音频数据采集的结束时间。Optionally, the processor 660 is further configured to: acquire the end time of the first recording of the recording instruction of the first application program and the second recording of the recording instruction of the second application program when it is detected that the recording instruction is sent by the second application program. End time: the last arrival time of the first recording end time and the second recording end time is determined as the end time of audio data collection by the sound collection device.
可选地,处理器660还用于:在音频数据中截取符合第一应用程序的录音指令的录音起止时间的音频数据,获得第一录音数据;在音频数据中截取符合第二应用程序的录音指令的录音起止时间的音频数据,获得第二录音数据。Optionally, the processor 660 is further configured to: intercept the audio data in the audio data conforming to the recording start and end time of the recording instruction of the first application program to obtain the first recording data; intercept the recording conforming to the second application program in the audio data The audio data of the recording start and end time of the command is used to obtain the second recording data.
可选地,处理器660还用于:获取第一应用程序所支持的第一音频数据格式,以及第二应用程序所支持的第二音频数据格式;根据第一音频数据格式与声音采集设备所采集的音频数据获取第一录音数据,同时根据第二音频数据格式与声音采集设备所采集的音频数据获取第二录音数据。Optionally, the processor 660 is further configured to: acquire the first audio data format supported by the first application program, and the second audio data format supported by the second application program; The collected audio data obtains the first recording data, and at the same time obtains the second recording data according to the format of the second audio data and the audio data collected by the sound collection device.
可选地,处理器660还用于:若声音采集设备所采集的音频数据的格式与第一音频数据格式不相同,则根据第一音频数据格式,对声音采集设备所采集的音频数据进行转换处理,获得第一录音数据;或者,若声音采集设备所采集的音频数据的格式与第一音频数据格式相同,则将声音采集设备所采集的音频数据作为第一录音数据。Optionally, the processor 660 is further configured to convert the audio data collected by the sound collection device according to the first audio data format if the format of the audio data collected by the sound collection device is different from the first audio data format Processing to obtain the first recording data; or, if the format of the audio data collected by the sound collection device is the same as the format of the first audio data, the audio data collected by the sound collection device is used as the first recording data.
可选地,处理器660还用于:若声音采集设备所采集的音频数据的格式与第二音频数据格式不相同,则根据第二音频数据格式,对声音采集设备所采集的音频数据进行转换处理,获得第二录音数据;或者,若声音采集设备所采集的音频数据的格式与第二音频数据格式相同,则将声音采集设备所采集的音频数据作为第二录音数据。Optionally, the processor 660 is further configured to: if the format of the audio data collected by the sound collection device is different from the second audio data format, convert the audio data collected by the sound collection device according to the second audio data format Processing to obtain the second recording data; or, if the format of the audio data collected by the sound collection device is the same as the format of the second audio data, the audio data collected by the sound collection device is used as the second recording data.
可选地,处理器660还用于:在第一应用程序的录音指令的第一录音结束时间到达时,将第一录音数据发送至第一应用程序;在第二应用程序的录音指令的第二录音结束时间到达时,将第二录音数据发送至第二应用程序。Optionally, the processor 660 is further configured to: send the first recording data to the first application program when the first recording end time of the recording instruction of the first application program arrives; When the second recording end time arrives, the second recording data is sent to the second application program.
可见,在本发明的第五实施例中,移动终端通过在声音采集设备响应第一应用程序的录音指令,进行音频数据采集的期间,监测是否有第二应用程序发送录音指令,并当监测到有第二应用程序发送录音指令时,根据声音采集设备所采集的音频数据,获取符合第一应用程序的录音接收要求的第一录音数据,以及符合第二应用程序的录音接收要求的第二录音数据,并将第一录音数据发送至第一应用程序,以及将第二录音数据发送至第二应用程序,解决了移动终端无法支持多个应用程序同时录音,影响用户体验的问题,达到了使移动终端能支持多个应用程序同时录音,提升用户体验的效果。It can be seen that in the fifth embodiment of the present invention, the mobile terminal monitors whether there is a second application sending a recording instruction during the period when the sound collection device responds to the recording instruction of the first application program and collects audio data, and when it detects When a second application program sends a recording instruction, according to the audio data collected by the sound collection device, the first recording data meeting the recording receiving requirements of the first application program and the second recording data meeting the recording receiving requirements of the second application program are obtained data, and send the first recording data to the first application program, and send the second recording data to the second application program, which solves the problem that the mobile terminal cannot support multiple application programs to record at the same time, which affects the user experience. The mobile terminal can support simultaneous recording of multiple applications, improving the effect of user experience.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611055573.XACN106504777B (en) | 2016-11-25 | 2016-11-25 | A kind of processing method and mobile terminal of recording data |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611055573.XACN106504777B (en) | 2016-11-25 | 2016-11-25 | A kind of processing method and mobile terminal of recording data |
| Publication Number | Publication Date |
|---|---|
| CN106504777Atrue CN106504777A (en) | 2017-03-15 |
| CN106504777B CN106504777B (en) | 2019-05-17 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611055573.XAActiveCN106504777B (en) | 2016-11-25 | 2016-11-25 | A kind of processing method and mobile terminal of recording data |
| Country | Link |
|---|---|
| CN (1) | CN106504777B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108021675A (en)* | 2017-12-07 | 2018-05-11 | 北京慧听科技有限公司 | A kind of automatic segmentation alignment schemes of more equipment recording |
| CN109413215A (en)* | 2018-12-24 | 2019-03-01 | 苏州思必驰信息科技有限公司 | Method of data synchronization and system for sound pick-up outfit and user terminal |
| CN109976696A (en)* | 2017-12-28 | 2019-07-05 | 深圳市优必选科技有限公司 | Method and device for acquiring audio data, equipment and computer-readable storage medium |
| CN109976697A (en)* | 2017-12-28 | 2019-07-05 | 深圳市优必选科技有限公司 | Method and apparatus, device, and computer-readable storage medium for acquiring audio data |
| CN110113494A (en)* | 2019-05-05 | 2019-08-09 | Oppo广东移动通信有限公司 | The way of recording and relevant apparatus |
| CN110704201A (en)* | 2018-07-10 | 2020-01-17 | 深圳市优必选科技有限公司 | Multimedia data sharing method and terminal equipment |
| CN110704202A (en)* | 2018-07-10 | 2020-01-17 | 深圳市优必选科技有限公司 | Multimedia recording data sharing method and terminal equipment |
| CN111209121A (en)* | 2018-11-22 | 2020-05-29 | 深圳市优必选科技有限公司 | Recording method of application program, terminal device and medium |
| CN111506439A (en)* | 2020-04-08 | 2020-08-07 | Tcl移动通信科技(宁波)有限公司 | Data acquisition method and device, storage medium and mobile terminal |
| CN111768805A (en)* | 2020-06-30 | 2020-10-13 | 深圳传音控股股份有限公司 | Recording file management method, terminal device and storage medium |
| CN112071338A (en)* | 2019-06-10 | 2020-12-11 | 海信视像科技股份有限公司 | Recording control method and device and display equipment |
| CN113870912A (en)* | 2021-09-02 | 2021-12-31 | 中科创达软件股份有限公司 | Recording method, device, equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002374487A (en)* | 2001-06-14 | 2002-12-26 | Victor Co Of Japan Ltd | Recording method |
| CN101420543A (en)* | 2008-12-05 | 2009-04-29 | 天津三星电子显示器有限公司 | Method for voice controlling television and television therewith |
| CN101465900A (en)* | 2007-12-21 | 2009-06-24 | 深圳市东进通讯技术股份有限公司 | Telephone sound-recording system and implementing method thereof |
| CN201374053Y (en)* | 2008-12-09 | 2009-12-30 | 北京歌尔泰克科技有限公司 | Bidirectional sound separating and collecting device of computer |
| US20120252351A1 (en)* | 2011-03-29 | 2012-10-04 | Sony Corporation | Satellite receiver, satellite broadcast receiving method, and program |
| CN103248775A (en)* | 2012-11-16 | 2013-08-14 | 佳都新太科技股份有限公司 | Implementation scheme based on IP Internet doubling recording |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002374487A (en)* | 2001-06-14 | 2002-12-26 | Victor Co Of Japan Ltd | Recording method |
| CN101465900A (en)* | 2007-12-21 | 2009-06-24 | 深圳市东进通讯技术股份有限公司 | Telephone sound-recording system and implementing method thereof |
| CN101420543A (en)* | 2008-12-05 | 2009-04-29 | 天津三星电子显示器有限公司 | Method for voice controlling television and television therewith |
| CN201374053Y (en)* | 2008-12-09 | 2009-12-30 | 北京歌尔泰克科技有限公司 | Bidirectional sound separating and collecting device of computer |
| US20120252351A1 (en)* | 2011-03-29 | 2012-10-04 | Sony Corporation | Satellite receiver, satellite broadcast receiving method, and program |
| CN103248775A (en)* | 2012-11-16 | 2013-08-14 | 佳都新太科技股份有限公司 | Implementation scheme based on IP Internet doubling recording |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108021675B (en)* | 2017-12-07 | 2021-11-09 | 北京慧听科技有限公司 | Automatic segmentation and alignment method for multi-equipment recording |
| CN108021675A (en)* | 2017-12-07 | 2018-05-11 | 北京慧听科技有限公司 | A kind of automatic segmentation alignment schemes of more equipment recording |
| CN109976696B (en)* | 2017-12-28 | 2022-05-10 | 深圳市优必选科技有限公司 | Method and device for acquiring audio data, equipment and computer-readable storage medium |
| CN109976696A (en)* | 2017-12-28 | 2019-07-05 | 深圳市优必选科技有限公司 | Method and device for acquiring audio data, equipment and computer-readable storage medium |
| CN109976697A (en)* | 2017-12-28 | 2019-07-05 | 深圳市优必选科技有限公司 | Method and apparatus, device, and computer-readable storage medium for acquiring audio data |
| CN110704202A (en)* | 2018-07-10 | 2020-01-17 | 深圳市优必选科技有限公司 | Multimedia recording data sharing method and terminal equipment |
| CN110704201A (en)* | 2018-07-10 | 2020-01-17 | 深圳市优必选科技有限公司 | Multimedia data sharing method and terminal equipment |
| CN110704202B (en)* | 2018-07-10 | 2022-08-05 | 深圳市优必选科技有限公司 | Multimedia recording data sharing method and terminal equipment |
| CN111209121A (en)* | 2018-11-22 | 2020-05-29 | 深圳市优必选科技有限公司 | Recording method of application program, terminal device and medium |
| CN111209121B (en)* | 2018-11-22 | 2023-05-23 | 深圳市优必选科技有限公司 | Recording method of application program, terminal equipment and medium |
| CN109413215A (en)* | 2018-12-24 | 2019-03-01 | 苏州思必驰信息科技有限公司 | Method of data synchronization and system for sound pick-up outfit and user terminal |
| CN110113494A (en)* | 2019-05-05 | 2019-08-09 | Oppo广东移动通信有限公司 | The way of recording and relevant apparatus |
| CN112071338A (en)* | 2019-06-10 | 2020-12-11 | 海信视像科技股份有限公司 | Recording control method and device and display equipment |
| CN111506439A (en)* | 2020-04-08 | 2020-08-07 | Tcl移动通信科技(宁波)有限公司 | Data acquisition method and device, storage medium and mobile terminal |
| CN111506439B (en)* | 2020-04-08 | 2024-04-09 | 北京兰格云商科技有限公司 | Data acquisition method and device, storage medium and mobile terminal |
| CN111768805A (en)* | 2020-06-30 | 2020-10-13 | 深圳传音控股股份有限公司 | Recording file management method, terminal device and storage medium |
| CN113870912A (en)* | 2021-09-02 | 2021-12-31 | 中科创达软件股份有限公司 | Recording method, device, equipment and storage medium |
| Publication number | Publication date |
|---|---|
| CN106504777B (en) | 2019-05-17 |
| Publication | Publication Date | Title |
|---|---|---|
| CN106504777A (en) | A recording data processing method and mobile terminal | |
| CN107124352B (en) | A voice information processing method and mobile terminal | |
| CN106155480B (en) | A kind of interface display method and mobile terminal of application program | |
| CN107466077A (en) | A kind of method for switching network and mobile terminal | |
| CN107562345B (en) | Information storage method and mobile terminal | |
| CN107171874A (en) | A kind of speech engine switching method, mobile terminal and server | |
| CN106791109A (en) | A kind of sound prompting method and mobile terminal | |
| CN106453925B (en) | Information transmission method and mobile terminal | |
| CN106254640B (en) | A method for starting a task based on an alarm clock and a mobile terminal | |
| CN106817484A (en) | The acquisition methods and mobile terminal of a kind of session information | |
| CN106201196A (en) | The method for sorting of a kind of desktop icons and mobile terminal | |
| CN105872216A (en) | Caller NUMBER processing method and mobile terminal | |
| CN106776871A (en) | The storage method and mobile terminal of a kind of multimedia file | |
| CN106095296A (en) | The changing method of a kind of application program and mobile terminal | |
| CN105159548A (en) | A list interface operation method and electronic terminal | |
| CN106502545B (en) | A sliding control operation method and mobile terminal | |
| CN107329586A (en) | A kind of data inputting method, mobile terminal and computer-readable recording medium | |
| CN107656746B (en) | Method and mobile terminal for program upgrading | |
| CN106445669A (en) | Application task processing method and mobile terminal | |
| CN107562262B (en) | Method for responding touch operation, terminal and computer readable storage medium | |
| CN106325942A (en) | Application program data processing method and mobile terminal | |
| CN106066694A (en) | The control method of a kind of touch screen operation response and terminal | |
| CN106375591A (en) | A device for detecting audio input devices and a mobile terminal | |
| CN107819931A (en) | A kind of audio frequency playing method and mobile terminal based on wireless headset | |
| CN106385508A (en) | Information display method and mobile terminal |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |