CN111145764A - Source code compiling method, device, equipment and medium - Google Patents

Source code compiling method, device, equipment and medium Download PDF

Info

Publication number
CN111145764A
CN111145764A CN201911366598.5A CN201911366598A CN111145764A CN 111145764 A CN111145764 A CN 111145764A CN 201911366598 A CN201911366598 A CN 201911366598A CN 111145764 A CN111145764 A CN 111145764A
Authority
CN
China
Prior art keywords
source code
compiling
compiled
signal processing
processing algorithm
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
CN201911366598.5A
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.)
AI Speech Ltd
Original Assignee
AI Speech 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 AI Speech Ltd filed Critical AI Speech Ltd
Priority to CN201911366598.5A priority Critical patent/CN111145764A/en
Publication of CN111145764A publication Critical patent/CN111145764A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/0018Speech coding using phonetic or linguistical decoding of the source; Reconstruction using text-to-speech synthesis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

The embodiment of the invention discloses a source code compiling method, a source code compiling device, source code compiling equipment and a source code compiling medium. The source code compiling method comprises the following steps: determining a source code to be compiled according to the selection operation of a user on a speech signal processing algorithm library; receiving configuration information which is input by a user and matched with the source code to be compiled, wherein the configuration information comprises at least one algorithm parameter and a compiling platform; and constructing a compiling request to be sent to a cloud server according to the source code to be compiled and the configuration information, and receiving result response information fed back by the cloud server. According to the technical scheme of the embodiment of the invention, the online compiling of the voice signal processing algorithm library is realized by deploying and configuring the compiling environment of the voice signal processing algorithm library on each platform on the cloud server, and a user does not need to consider the setting of the actual compiling environment, so that the working efficiency of the user is improved.

Description

Source code compiling method, device, equipment and medium
Technical Field
Embodiments of the present invention relate to source code compiling technologies, and in particular, to a source code compiling method, apparatus, device, and medium.
Background
The voice signal processing algorithm library is an algorithm library which is realized by C/C + + language and is used for processing the voice signals, and can be applied to different platforms.
In the prior art, in order to apply a speech signal processing algorithm library to different platforms, a corresponding compiling environment needs to be configured on each platform first to implement compiling of the speech signal processing algorithm library.
The inventor finds that when the compiling environment is complex, the configuration of the compiling environment consumes a lot of time of the user, and the user does not necessarily have the configuration capability of the compiling environment, which seriously affects the working efficiency of the user. In addition, the voice signal processing algorithm library has more versions, and the voice signal processing algorithm library of the corresponding version needs to be manually acquired from the code warehouse during compiling each time, which also affects the working efficiency of the user to a certain extent.
Disclosure of Invention
The embodiment of the invention provides a source code compiling method, a source code compiling device, source code compiling equipment and a source code compiling medium.
In a first aspect, an embodiment of the present invention provides a source code compiling method, where the method includes:
determining a source code to be compiled according to the selection operation of a user on a speech signal processing algorithm library;
receiving configuration information which is input by a user and matched with the source code to be compiled, wherein the configuration information comprises at least one algorithm parameter and a compiling platform;
constructing a compiling request to be sent to a cloud server according to the source code to be compiled and the configuration information, and receiving result response information fed back by the cloud server;
the compiling request is used for indicating the cloud server to compile the source code to be compiled, and the result response information is obtained.
In a second aspect, an embodiment of the present invention further provides a source code compiling method, where the method includes:
acquiring a source code to be compiled from a source code warehouse according to a compiling request submitted by a Web end, wherein the compiling request comprises the source code to be compiled, at least one algorithm parameter and a compiling platform;
modifying a configuration file matched with the source code to be compiled according to the at least one algorithm parameter contained in the compiling request;
and selecting a compiling script according to the source code to be compiled and the compiling platform contained in the compiling request, compiling the source code to be compiled through the compiling script, and feeding result response information back to the Web end.
In a third aspect, an embodiment of the present invention further provides a source code compiling apparatus, where the apparatus includes:
the source code to be compiled determining module is used for determining the source code to be compiled according to the selection operation of the user on the speech signal processing algorithm library;
the configuration information receiving module is used for receiving configuration information which is input by a user and matched with the source code to be compiled, wherein the configuration information comprises at least one algorithm parameter and a compiling platform;
the compiling request submitting module is used for constructing a compiling request according to the source code to be compiled and the configuration information, sending the compiling request to a cloud server and receiving result response information fed back by the cloud server;
the compiling request is used for indicating the cloud server to compile the source code to be compiled, and the result response information is obtained.
In a fourth aspect, an embodiment of the present invention further provides a source code compiling apparatus, where the apparatus includes:
the source code to be compiled acquiring module is used for acquiring the source code to be compiled from a source code warehouse according to a compiling request submitted by a Web end, wherein the compiling request comprises the source code to be compiled, at least one algorithm parameter and a compiling platform;
the configuration file modification module is used for modifying the configuration file matched with the source code to be compiled according to the at least one algorithm parameter contained in the compiling request;
and the source code compiling module to be compiled selects a compiling script according to the source code to be compiled and the compiling platform contained in the compiling request, compiles the source code to be compiled through the compiling script, and feeds back result response information to the Web end.
In a fifth aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the source code compiling method provided by any of the embodiments of the invention.
In a sixth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the source code compiling method provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the source code to be compiled is determined according to the selection operation of the user on the voice signal processing algorithm library, then the configuration information which is input by the user and is matched with the source code to be compiled is received, finally, the compiling request is constructed and sent to the cloud server according to the source code to be compiled and the configuration information, and the result response information fed back by the cloud server is received, so that the online compiling of the voice signal processing algorithm library is realized, the user does not need to consider the setting of the actual compiling environment, and the working efficiency of the user is improved.
Drawings
FIG. 1 is a flowchart of a source code compiling method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a source code compiling method according to a second embodiment of the invention;
FIG. 3 is a diagram of a source code compiling apparatus according to a third embodiment of the present invention;
FIG. 4 is a diagram illustrating a source code compiling apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a source code compiling method according to a first embodiment of the present invention, where the technical solution of this embodiment is suitable for performing online compiling on source codes corresponding to a speech signal processing library, and the method may be executed by a source code compiling apparatus, and the apparatus may be implemented by software and/or hardware, and may be integrated in various general-purpose computer devices.
The speech signal processing algorithm library is realized by C or C + +, and needs to be compiled on corresponding platforms when different platforms are used, while the traditional compiling mode mainly builds compiling environments corresponding to the platforms locally, which consumes time and energy of users. According to the method and the device, the source code to be compiled is determined according to the selection of the user and is compiled online, so that the user does not need to build a related compiling environment when using the source code at each time, and the working efficiency of the user is improved.
The source code compiling method specifically comprises the following steps:
and step 110, determining a source code to be compiled according to the selection operation of the speech signal processing algorithm library by the user.
The speech signal processing algorithm library refers to an algorithm library including a plurality of speech signal processing algorithms, a user can process a current speech signal by calling the speech signal processing algorithms in the speech signal processing algorithm library, and for example, the speech signal processing algorithm library may include algorithm-related source codes such as framing, windowing, fourier transform and the like in a preprocessing stage of the speech signal, and may also include algorithm-related source codes such as a Hidden Markov Model (HMM) for performing speech recognition on the speech signal.
It should be noted that the speech signal processing algorithms contained in the speech signal processing algorithm libraries of different types are different, and a user needs to select a corresponding speech signal processing algorithm library according to actual requirements during use.
In this embodiment, a user first selects a proper speech signal processing algorithm library according to actual requirements, that is, the user needs to select a speech signal processing algorithm library to which a speech signal processing algorithm that the user needs to use belongs, and further, each speech signal processing algorithm library further includes different versions, for example, the speech signal processing algorithm library a includes two versions, i.e., V1.0 and V2.0, and after the user selects to use the speech signal processing algorithm library a, the user also needs to select a specific version, and finally determines that the V1.0 version of the speech signal processing algorithm library a is a final source code to be compiled.
Optionally, determining a source code to be compiled according to a selection operation of a user on the speech signal processing algorithm library, including:
determining a target voice signal processing algorithm library according to the selection operation of a user on a voice signal processing algorithm library in a voice signal processing algorithm library list, wherein the voice signal processing algorithm library list comprises at least one voice signal processing algorithm library;
determining the version of the target speech signal processing algorithm library according to the selection operation of a user on the version of the target speech signal processing algorithm library in the version list corresponding to the target speech signal processing algorithm library;
and determining a source code to be compiled according to the target voice signal processing algorithm library and the version of the target voice signal processing algorithm library.
In this optional embodiment, a specific way of determining a source code to be compiled is provided, where first, a Web end presents a list of speech signal processing algorithm libraries to a user on a home page, where the list includes multiple types of speech signal processing algorithm libraries, and the user may select a speech signal processing algorithm library that the user needs to use as a target speech signal processing algorithm library for the list.
Illustratively, a Web end displays a voice signal processing algorithm library list on a home page, the list comprises three types, namely a voice signal processing algorithm library A, a voice signal processing algorithm library B and a voice signal processing algorithm library C, each type comprises at least one different voice signal processing algorithm, and a user selects a voice signal processing algorithm library to which a voice signal processing algorithm required to be used belongs according to the list. For example, if the user needs to use the algorithm in the speech signal processing algorithm library a, the speech signal processing algorithm library a is selected as the target speech signal processing algorithm library. Further, after determining the target speech signal processing algorithm library, the Web end presents a version list corresponding to the algorithm library to the user, including versions V1.0 and V2.0 corresponding to the speech signal processing algorithm library a, and the user selects a used version according to the version list, for example, selects the version V2.0, and finally uses the V2.0 version of the speech signal processing algorithm library a as a source code to be compiled, where the selection method may be clicking a name of an option included in the list, or checking a selection box corresponding to the option, and the selection method is not specifically limited herein.
And 120, receiving configuration information which is input by a user and matched with the source code to be compiled, wherein the configuration information comprises at least one algorithm parameter and a compiling platform.
The configuration information is parameters which are input by a user and are related to source code compiling and comprise at least one algorithm parameter and a compiling platform, wherein the algorithm parameter is a parameter related to a voice signal processing algorithm contained in a source code to be compiled, such as a function combination option, a multithreading option and a Fourier transform type option are supported; the compiling platform is a platform which needs to compile source codes, and a user needs to use a speech signal processing algorithm library on the platform.
In this embodiment, the Web end receives configuration information matched with the source code to be compiled, which is input by a user on a configuration page, and is used for subsequent source code compilation, where the configuration page matched with the source code to be compiled is displayed by the Web end, and includes parameters related to a speech signal processing algorithm and a compiling platform included in the source code to be compiled, and algorithm parameters required to be configured are different for different source codes to be compiled. For example, if the user needs to apply the V2.0 version of the speech signal processing algorithm library a on the Linux platform, the compiling platform needs to be selected as Linux on the configuration page, and the parameters related to the V2.0 version of the speech signal processing algorithm library a are input.
Optionally, the at least one algorithm parameter is a parameter related to a speech signal processing algorithm included in the source code to be compiled.
Step 130, constructing a compiling request to be sent to a cloud server according to the source code to be compiled and the configuration information, and receiving result response information fed back by the cloud server;
and the compiling request is used for indicating the cloud server to compile the source code to be compiled to obtain result response information.
In this embodiment, the Web end constructs a compiling request according to the source code to be compiled selected by the user on the home page and the configuration information input on the configuration page, and sends the compiling request to the cloud server to instruct the cloud server to compile the source code to be compiled according to the configuration information. The cloud server compiles the source code to be compiled according to the received compiling request and feeds back result response information to the Web terminal.
Illustratively, the Web end receives a source code to be compiled selected by a user as a V1.0 version of the speech signal processing algorithm library a, and receives configuration information (algorithm parameters and a compiling platform related to the source code to be compiled) input by the user, constructs a compiling request by using the information input by the user, and sends the compiling request to the cloud server, and the cloud server compiles the source code to be compiled according to the configuration information and finally feeds back result response information to the Web terminal, where the result response information may be a compiled source code fed back after successful compilation or compilation failure information returned after compilation failure.
According to the technical scheme of the embodiment of the invention, the source code to be compiled is determined according to the selection operation of the user on the voice signal processing algorithm library, then the configuration information which is input by the user and is matched with the source code to be compiled is received, finally, the compiling request is constructed and sent to the cloud server according to the source code to be compiled and the configuration information, and the result response information fed back by the cloud server is received, so that the online compiling of the voice signal processing algorithm library is realized, the user does not need to consider the setting of the actual compiling environment, and the working efficiency of the user is improved.
Example two
Fig. 2 is a flowchart of a source code compiling method in the second embodiment of the present invention, where the technical solution of this embodiment is suitable for performing online compiling on a source code corresponding to a speech signal processing library, and the method can be executed by a source code compiling apparatus, and the apparatus can be implemented by software and/or hardware, and can be integrated in various general-purpose computer devices, and specifically includes the following steps:
step 210, obtaining a source code to be compiled from a source code repository according to a compiling request submitted by a Web end, where the compiling request includes the source code to be compiled, at least one algorithm parameter, and a compiling platform.
The compiling request is a request sent by a Web end and used for instructing a cloud server to compile a source code to be compiled, and the compiling request comprises the source code to be compiled, at least one algorithm parameter and a compiling platform. The at least one algorithm parameter refers to a parameter related to a speech signal processing algorithm contained in the source code to be compiled, and the compiling platform refers to a compiling platform selected by a user, namely, the user needs to compile and use the source code to be compiled on the platform.
In this embodiment, the cloud server first receives a compilation request sent by the Web end, and then obtains a target speech signal processing algorithm library of a specified version from the source code repository according to a source code to be compiled (including versions of the target speech signal processing algorithm library and the target speech signal processing algorithm library) carried in the compilation request, that is, the source code to be compiled is taken out. Illustratively, the source code to be compiled contained in the compilation request is the V2.0 version of the speech signal processing algorithm library a, and the cloud server downloads the corresponding source code to be compiled from a code repository according to the compilation request, where the code repository may be a code repository such as a GitHub.
Step 220, modifying the configuration file matched with the source code to be compiled according to at least one algorithm parameter contained in the compiling request.
The configuration file is a file containing algorithm parameter configuration information in the source code, and parameters related to the algorithm can be configured in the configuration file. Illustratively, the configuration file may be in makefile format, or in xml format.
In this embodiment, after receiving the compilation request sent by the Web, the cloud server modifies the configuration file included in the source code according to at least one algorithm parameter included in the compilation request, so that the subsequent source code compilation operation is performed on the basis of the algorithm parameter specified by the user. Illustratively, after the cloud server acquires the source code to be compiled from the code warehouse, the configuration file contained in the source code is located, and the parameter configuration corresponding to the source code of the speech signal processing algorithm warehouse is modified according to at least one algorithm parameter contained in the compiling request.
Optionally, modifying the configuration file matched with the source code to be compiled according to the at least one parameter included in the compilation request includes:
and replacing the parameters matched with the at least one parameter in the configuration file by adopting the at least one parameter contained in the compiling request to obtain a modified configuration file.
In this optional embodiment, a specific manner of modifying a configuration file matched with a source code to be compiled is provided, where at least one parameter included in a compilation request sent by a Web end is used to replace a parameter matched with the parameter in the configuration file, and a modified configuration file is finally obtained.
And step 230, selecting a compiling script according to the source code to be compiled and the compiling platform contained in the compiling request, compiling the source code to be compiled through the compiling script, and feeding result response information back to the Web end.
The compiling script is related to the source code to be compiled and the compiling platform, and is used for compiling the source code to be compiled.
In this embodiment, the compiling script is obtained according to the source code to be compiled and the compiling platform specified by the user, and finally the cloud server compiles the source code to be compiled by calling the compiling script and feeds back the final compiling result to the Web end.
Optionally, after the source code to be compiled is compiled through the compiling script, the method further includes:
judging whether the source code to be compiled is compiled successfully;
if so, feeding back a compiling result corresponding to the source code to be compiled to the Web end as the result response information;
and if not, generating error prompt information, and feeding back the error prompt information to the Web end as the result response information.
In this optional embodiment, an operation performed after the source code is compiled by the cloud server is provided, specifically, it is first determined whether the source code to be compiled is successfully compiled, if so, the compiling result is sent to the Web end, the user can directly download the compiled source code from the Web end for use, and if not, the user wants to send error prompt information to the Web end.
According to the technical scheme, the cloud server obtains the source code to be compiled from the source code warehouse according to the compiling request submitted by the Web end, then modifies the configuration file matched with the source code to be compiled according to at least one algorithm parameter contained in the compiling request, finally selects the compiling script according to the source code to be compiled and the compiling platform contained in the compiling request, compiles the source code to be compiled through the compiling script, and feeds back result response information to the Web end.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a source code compiling apparatus according to a third embodiment of the present invention, where the source code compiling apparatus includes: a source code to be compiled determining module 310, a configuration information receiving module 320 and a compiling request submitting module 330.
The to-be-compiled source code determining module 310 is used for determining the to-be-compiled source code according to the selection operation of the user on the speech signal processing algorithm library;
a configuration information receiving module 320, configured to receive configuration information that is input by a user and matched with the source code to be compiled, where the configuration information includes at least one algorithm parameter and a compiling platform;
the compiling request submitting module 330 is configured to construct a compiling request according to the source code to be compiled and the configuration information, send the compiling request to a cloud server, and receive result response information fed back by the cloud server;
the compiling request is used for indicating the cloud server to compile the source code to be compiled, and the result response information is obtained.
According to the technical scheme of the embodiment of the invention, the source code to be compiled is determined according to the selection operation of the user on the voice signal processing algorithm library, then the configuration information which is input by the user and is matched with the source code to be compiled is received, finally, the compiling request is constructed and sent to the cloud server according to the source code to be compiled and the configuration information, and the result response information fed back by the cloud server is received, so that the online compiling of the voice signal processing algorithm library is realized, the user does not need to consider the setting of the actual compiling environment, and the working efficiency of the user is improved.
Optionally, the to-be-compiled source code determining module 310 includes:
the target voice signal processing algorithm library determining unit is used for determining a target voice signal processing algorithm library according to the selection operation of a user on the voice signal processing algorithm library in the voice signal processing algorithm library list, wherein the voice signal processing algorithm library list comprises at least one voice signal processing algorithm library;
the version determining unit is used for determining the version of the target speech signal processing algorithm library according to the selection operation of a user on the version of the target speech signal processing algorithm library in the version list corresponding to the target speech signal processing algorithm library;
and the source code to be compiled determining module is used for determining the source code to be compiled according to the target voice signal processing algorithm library and the version of the target voice signal processing algorithm library.
Optionally, the at least one algorithm parameter is a parameter related to a speech signal processing algorithm included in the source code to be compiled.
The source code compiling device provided by the embodiment of the invention can execute the source code compiling method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a source code compiling apparatus according to a fourth embodiment of the present invention, where the source code compiling apparatus includes: a source code to be compiled obtaining module 410, a configuration file modifying module 420 and a source code to be compiled compiling module 430.
The to-be-compiled source code obtaining module 410 is configured to obtain a to-be-compiled source code from a source code repository according to a compiling request submitted by a Web end, where the compiling request includes the to-be-compiled source code, at least one algorithm parameter, and a compiling platform;
a configuration file modification module 420, configured to modify the configuration file matched with the source code to be compiled according to the at least one algorithm parameter included in the compilation request;
and the to-be-compiled source code compiling module 430 selects a compiling script according to the to-be-compiled source code and the compiling platform contained in the compiling request, compiles the to-be-compiled source code through the compiling script, and feeds back result response information to the Web end.
According to the technical scheme of the embodiment of the invention, the cloud server acquires the source code to be compiled from the source code warehouse according to the compiling request submitted by the Web end, then modifies the configuration file matched with the source code to be compiled according to at least one algorithm parameter contained in the compiling request, finally selects the compiling script according to the source code to be compiled and the compiling platform contained in the compiling request, compiles the source code to be compiled through the compiling script, and feeds back the result response information to the Web end, so that the online compiling of the voice signal processing algorithm library is realized, the user does not need to consider the setting of the actual compiling environment, and the working efficiency of the user is improved.
Optionally, the source code compiling apparatus further includes:
the compiling result judging module is used for judging whether the source code to be compiled is compiled successfully or not after the source code to be compiled is compiled through the compiling script;
if so, feeding back a compiling result corresponding to the source code to be compiled to the Web end as the result response information;
and if not, generating error prompt information, and feeding back the error prompt information to the Web end as the result response information.
Optionally, the configuration file modifying module 420 includes:
and the configuration file modification unit is used for replacing the parameter matched with the at least one parameter in the configuration file by using the at least one parameter contained in the compiling request to obtain the modified configuration file.
The source code compiling device provided by the embodiment of the invention can execute the source code compiling method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention, as shown in fig. 5, the electronic device includes a processor 50 and a memory 51; the number of processors 50 in the device may be one or more, and one processor 50 is taken as an example in fig. 5; the processor 50 and the memory 51 in the device may be connected by a bus or other means, as exemplified by the bus connection in fig. 5.
The memory 51 is used as a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to a source code compiling method in the embodiment of the present invention (for example, the to-be-compiled source code determining module 310, the configuration information receiving module 320, and the compiling request submitting module 330 in the source code compiling apparatus, or the to-be-compiled source code acquiring module 410, the configuration file modifying module 420, and the to-be-compiled source code compiling module 430 in the source code compiling apparatus). The processor 50 executes various functional applications of the device and data processing by executing software programs, instructions, and modules stored in the memory 51, that is, implements the source code compiling method described above.
The method comprises the following steps:
determining a source code to be compiled according to the selection operation of a user on a speech signal processing algorithm library;
receiving configuration information which is input by a user and matched with the source code to be compiled, wherein the configuration information comprises at least one algorithm parameter and a compiling platform;
constructing a compiling request to be sent to a cloud server according to the source code to be compiled and the configuration information, and receiving result response information fed back by the cloud server;
the compiling request is used for indicating the cloud server to compile the source code to be compiled, and the result response information is obtained.
The method may further comprise:
acquiring a source code to be compiled from a source code warehouse according to a compiling request submitted by a Web end, wherein the compiling request comprises the source code to be compiled, at least one algorithm parameter and a compiling platform;
modifying a configuration file matched with the source code to be compiled according to the at least one algorithm parameter contained in the compiling request;
and selecting a compiling script according to the source code to be compiled and the compiling platform contained in the compiling request, compiling the source code to be compiled through the compiling script, and feeding result response information back to the Web end.
The memory 51 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 51 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 51 may further include memory located remotely from the processor 50, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
EXAMPLE six
An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, where the computer program is used for executing a source code compiling method when executed by a computer processor, and the method includes:
determining a source code to be compiled according to the selection operation of a user on a speech signal processing algorithm library;
receiving configuration information which is input by a user and matched with the source code to be compiled, wherein the configuration information comprises at least one algorithm parameter and a compiling platform;
constructing a compiling request to be sent to a cloud server according to the source code to be compiled and the configuration information, and receiving result response information fed back by the cloud server;
the compiling request is used for indicating the cloud server to compile the source code to be compiled, and the result response information is obtained.
The method may further comprise:
acquiring a source code to be compiled from a source code warehouse according to a compiling request submitted by a Web end, wherein the compiling request comprises the source code to be compiled, at least one algorithm parameter and a compiling platform;
modifying a configuration file matched with the source code to be compiled according to the at least one algorithm parameter contained in the compiling request;
and selecting a compiling script according to the source code to be compiled and the compiling platform contained in the compiling request, compiling the source code to be compiled through the compiling script, and feeding result response information back to the Web end.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the above embodiment of the source code compiling apparatus, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A source code compiling method is applied to a Web end and is characterized by comprising the following steps:
determining a source code to be compiled according to the selection operation of a user on a speech signal processing algorithm library;
receiving configuration information which is input by a user and matched with the source code to be compiled, wherein the configuration information comprises at least one algorithm parameter and a compiling platform;
constructing a compiling request to be sent to a cloud server according to the source code to be compiled and the configuration information, and receiving result response information fed back by the cloud server;
the compiling request is used for indicating the cloud server to compile the source code to be compiled, and the result response information is obtained.
2. The method of claim 1, wherein determining the source code to be compiled according to the user's selection operation of the speech signal processing algorithm library comprises:
determining a target voice signal processing algorithm library according to the selection operation of a user on a voice signal processing algorithm library in a voice signal processing algorithm library list, wherein the voice signal processing algorithm library list comprises at least one voice signal processing algorithm library;
determining the version of the target speech signal processing algorithm library according to the selection operation of a user on the version of the target speech signal processing algorithm library in the version list corresponding to the target speech signal processing algorithm library;
and determining a source code to be compiled according to the target voice signal processing algorithm library and the version of the target voice signal processing algorithm library.
3. The method according to claim 1, wherein the at least one algorithm parameter is a parameter related to a speech signal processing algorithm included in the source code to be compiled.
4. A source code compiling method is applied to a cloud server and is characterized by comprising the following steps:
acquiring a source code to be compiled from a source code warehouse according to a compiling request submitted by a Web end, wherein the compiling request comprises the source code to be compiled, at least one algorithm parameter and a compiling platform;
modifying a configuration file matched with the source code to be compiled according to the at least one algorithm parameter contained in the compiling request;
and selecting a compiling script according to the source code to be compiled and the compiling platform contained in the compiling request, compiling the source code to be compiled through the compiling script, and feeding result response information back to the Web end.
5. The method of claim 4, after compiling the source code to be compiled by the compiling script, further comprising:
judging whether the source code to be compiled is compiled successfully;
if so, feeding back a compiling result corresponding to the source code to be compiled to the Web end as the result response information;
and if not, generating error prompt information, and feeding back the error prompt information to the Web end as the result response information.
6. The method of claim 4, wherein modifying the configuration file matching the source code to be compiled according to the at least one parameter included in the compilation request comprises:
and replacing the parameters matched with the at least one parameter in the configuration file by adopting the at least one parameter contained in the compiling request to obtain a modified configuration file.
7. A source code compiling apparatus, comprising:
the source code to be compiled determining module is used for determining the source code to be compiled according to the selection operation of the user on the speech signal processing algorithm library;
the configuration information receiving module is used for receiving configuration information which is input by a user and matched with the source code to be compiled, wherein the configuration information comprises at least one algorithm parameter and a compiling platform;
the compiling request submitting module is used for constructing a compiling request according to the source code to be compiled and the configuration information, sending the compiling request to a cloud server and receiving result response information fed back by the cloud server;
the compiling request is used for indicating the cloud server to compile the source code to be compiled, and the result response information is obtained.
8. A source code compiling apparatus, comprising:
the source code to be compiled acquiring module is used for acquiring the source code to be compiled from a source code warehouse according to a compiling request submitted by a Web end, wherein the compiling request comprises the source code to be compiled, at least one algorithm parameter and a compiling platform;
the configuration file modification module is used for modifying the configuration file matched with the source code to be compiled according to the at least one algorithm parameter contained in the compiling request;
and the source code compiling module to be compiled selects a compiling script according to the source code to be compiled and the compiling platform contained in the compiling request, compiles the source code to be compiled through the compiling script, and feeds back result response information to the Web end.
9. An electronic device, characterized in that the device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the source code compilation method of any of claims 1-3 or claims 4-6.
10. A computer storage medium on which a computer program is stored, which program, when executed by a processor, implements a source code compilation method as claimed in any one of claims 1 to 3 or claims 4 to 6.
CN201911366598.5A 2019-12-26 2019-12-26 Source code compiling method, device, equipment and medium Pending CN111145764A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911366598.5A CN111145764A (en) 2019-12-26 2019-12-26 Source code compiling method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911366598.5A CN111145764A (en) 2019-12-26 2019-12-26 Source code compiling method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN111145764A true CN111145764A (en) 2020-05-12

Family

ID=70520373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911366598.5A Pending CN111145764A (en) 2019-12-26 2019-12-26 Source code compiling method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN111145764A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030233240A1 (en) * 2002-06-14 2003-12-18 Nokia Corporation Method for arranging voice feedback to a digital wireless terminal device and corresponding terminal device, server and software devices to implement the method
CN105511933A (en) * 2015-12-03 2016-04-20 深圳市创维软件有限公司 Compiling method of source code and related equipment
CN106155755A (en) * 2015-06-03 2016-11-23 上海红神信息技术有限公司 Program compiling method and compiler
CN107112026A (en) * 2014-10-20 2017-08-29 奥迪马科斯公司 System, the method and apparatus for recognizing and handling for intelligent sound
US20180349116A1 (en) * 2015-12-15 2018-12-06 Samsung Electronics Co., Ltd. User terminal device, server, and application execution method thereof
CN109375921A (en) * 2018-08-15 2019-02-22 中国平安人寿保险股份有限公司 Page file quickly compiles method, apparatus and storage equipment, computer equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030233240A1 (en) * 2002-06-14 2003-12-18 Nokia Corporation Method for arranging voice feedback to a digital wireless terminal device and corresponding terminal device, server and software devices to implement the method
CN107112026A (en) * 2014-10-20 2017-08-29 奥迪马科斯公司 System, the method and apparatus for recognizing and handling for intelligent sound
CN106155755A (en) * 2015-06-03 2016-11-23 上海红神信息技术有限公司 Program compiling method and compiler
CN105511933A (en) * 2015-12-03 2016-04-20 深圳市创维软件有限公司 Compiling method of source code and related equipment
US20180349116A1 (en) * 2015-12-15 2018-12-06 Samsung Electronics Co., Ltd. User terminal device, server, and application execution method thereof
CN109375921A (en) * 2018-08-15 2019-02-22 中国平安人寿保险股份有限公司 Page file quickly compiles method, apparatus and storage equipment, computer equipment

Similar Documents

Publication Publication Date Title
CN107491329B (en) Docker mirror image construction method, device, storage medium and electronic device
EP3499364B1 (en) Method and device for loading kernel module
CN107395420B (en) Server performance testing method and system, electronic device and storage medium
CN108984179B (en) Linux compiling processing method and device
CN110647332A (en) Software deployment method and device based on container cloud
CN110399306B (en) Automatic testing method and device for software module
CN111708528A (en) Method, device and equipment for generating small program and storage medium
CN105204917B (en) The method and device of loading configuration file in application program launching
CN111026634A (en) Interface automation test system, method, device and storage medium
CN111625294A (en) Server project execution method, device and related equipment
CN108959488B (en) Method and device for maintaining question-answering model
US20190073198A1 (en) Multi-flavored software execution from a singular code base
CN117035065A (en) Model evaluation method and related device
CN112491940A (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
CN109508193B (en) Application deployment and operation method, device, terminal equipment and medium
CN111984623A (en) Database cluster automatic deployment method, device, medium and electronic equipment
CN111145764A (en) Source code compiling method, device, equipment and medium
CN116431230A (en) Operating system deployment method and device, computer equipment and storage medium
CN114327673A (en) Task starting method and device, electronic equipment and storage medium
CN114610446A (en) Method, device and system for automatically injecting probe
WO2017080309A1 (en) Usage log determination method and apparatus
CN113297081A (en) Execution method and device of continuous integration assembly line
CN113708971A (en) Openstack cloud platform deployment method and related device
CN112714148A (en) Interface configuration method, device, equipment and medium
CN112612474A (en) Product transplanting method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 215021 building 14, Tengfei Science Park, No. 388, Xinping street, Suzhou Industrial Park, Suzhou City, Jiangsu Province

Applicant after: Sipic Technology Co.,Ltd.

Address before: 215021 building 14, Tengfei Science Park, No. 388, Xinping street, Suzhou Industrial Park, Suzhou City, Jiangsu Province

Applicant before: AI SPEECH Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20200512

RJ01 Rejection of invention patent application after publication