CN109933576B - Sound effect SDK library establishing method and device, electronic equipment and computer readable medium - Google Patents

Sound effect SDK library establishing method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN109933576B
CN109933576B CN201910161075.0A CN201910161075A CN109933576B CN 109933576 B CN109933576 B CN 109933576B CN 201910161075 A CN201910161075 A CN 201910161075A CN 109933576 B CN109933576 B CN 109933576B
Authority
CN
China
Prior art keywords
sound effect
file
directory
sdk
effect file
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.)
Active
Application number
CN201910161075.0A
Other languages
Chinese (zh)
Other versions
CN109933576A (en
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Shanghai Xiaodu Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Shanghai Xiaodu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd, Shanghai Xiaodu Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910161075.0A priority Critical patent/CN109933576B/en
Publication of CN109933576A publication Critical patent/CN109933576A/en
Application granted granted Critical
Publication of CN109933576B publication Critical patent/CN109933576B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a sound effect SDK library establishing method, which comprises the following steps: establishing a file directory; storing each sound effect file to an address position corresponding to the file directory; the SDK access code is stored in an access code document. The sound effect files are classified, corresponding file directories are established, the sound effect files are stored in the address positions corresponding to the file directories, the SDK access codes are stored in the access code files, and a complete sound effect SDK library is established, so that the sound effect files are simpler and more efficient to inquire and call. The disclosure also provides a sound effect SDK library establishing device, electronic equipment and a computer readable medium.

Description

Sound effect SDK library establishing method and device, electronic equipment and computer readable medium
Technical Field
The disclosure relates to the technical field of development, in particular to a sound effect SDK library establishing method and device, electronic equipment and a computer readable medium.
Background
The sound effect is often used by a user in developing voice skills so as to achieve the effect of enriching voice skill experience. However, the development user often finds a problem in developing skills, that a proper sound effect cannot be found, and that calling is complicated.
At present, no existing direct calling scheme exists for sound effects, developers manually sort sound effect links and insert the sound effect links into codes one by one, the sound effect links are long, and the use is complex. Development users are difficult to clearly distinguish a certain audio link from a specific corresponding audio, and are difficult to locate a specific type of the sound effect link, so that troubles are increased for writing codes for the sound effect link. Especially in code embedded with a large number of audio files, facing a huge amount of links reduces the development efficiency of developers.
It should be noted that the above background description is only for the sake of clarity and complete description of the technical solutions of the present invention and for the understanding of those skilled in the art. Such solutions are not considered to be known to the person skilled in the art merely because they have been set forth in the background section of the invention.
Disclosure of Invention
The embodiment of the disclosure provides a sound effect SDK library establishing method and platform, electronic equipment and a computer readable medium, and also provides an SSML sound effect file calling method and device, electronic equipment and a computer readable medium.
In a first aspect, an embodiment of the present disclosure provides a method for establishing a sound effect SDK library, including:
establishing a file directory;
storing each sound effect file to an address position corresponding to the file directory;
the SDK access code is stored in an access code document.
In some embodiments, the file directory comprises a primary directory and a secondary directory;
the step of storing each sound effect file to the address position corresponding to the file directory comprises the following steps: and storing each sound effect file to the address position corresponding to the secondary directory.
In some embodiments, the primary and secondary directories are created according to the classification of the sound effect files.
In some embodiments, the primary catalog includes a custom sound effect catalog, the method further comprising:
receiving a generation request for generating a personal sound effect file sent by a client, and acquiring an original storage address of the personal sound effect file, a name of the personal sound effect file and directory information to be stored, wherein the directory information to be stored is user-defined sound effect directory information;
and acquiring the personal sound effect file according to the original storage address of the personal sound effect file, and storing the personal sound effect file to the address position corresponding to the directory information to be stored according to the name of the personal sound effect file.
In some embodiments, after the step of storing the personal sound effect file to the address location corresponding to the directory information to be stored according to the name of the personal sound effect file, the method further includes:
and determining an SDK access code according to the access code document, and returning the SDK access code and the name of the personal sound effect file to the client.
In a second aspect, an embodiment of the present disclosure provides an apparatus for creating a sound effect SDK library, including:
the file directory establishing module is used for establishing a file directory;
the first storage module is used for storing each sound effect file to the address position corresponding to the file directory;
and the second storage module is used for storing the SDK access code into the access code document.
In some embodiments, the file directory comprises a primary directory and a secondary directory;
the first storage module is specifically configured to store each sound effect file to an address location corresponding to the secondary directory.
In some embodiments, the primary and secondary directories are created according to the classification of the sound effect files.
In some embodiments, the primary catalog includes a custom sound catalog, the apparatus further comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for receiving a generation request for generating a personal sound effect file sent by a client, and acquiring an original storage address of the personal sound effect file, a name of the personal sound effect file and directory information to be stored, which are carried in the generation request, wherein the directory information to be stored is user-defined sound effect directory information;
and the third storage module is used for acquiring the personal sound effect file according to the original storage address of the personal sound effect file and storing the personal sound effect file to the address position corresponding to the directory information to be stored according to the name of the personal sound effect file.
In some embodiments, the apparatus further comprises:
and the sending module is used for determining an SDK access code according to the access code document and returning the SDK access code and the name of the personal sound effect file to the client.
In a third aspect, an embodiment of the present disclosure provides a method for calling an SSML sound effect file, including:
receiving an acquisition request for acquiring a sound effect file, and acquiring an SDK access code from a sound effect SDK library;
searching the sound effect file from the sound effect SDK library according to the directory information to be searched carried in the acquisition request, and acquiring the name of the sound effect file, wherein the sound effect file is stored in the address position corresponding to the directory information to be searched;
generating a playing expression according to the name of the sound effect file;
and displaying the playing expression and the SDK access code.
In some embodiments, the playback expression is the name of @ SSML + sound effect file.
In a fourth aspect, an embodiment of the present disclosure provides an SSML sound effect file invoking device, including:
the first acquisition module is used for receiving an acquisition request for acquiring a sound effect file and acquiring an SDK access code from a sound effect SDK library;
the second acquisition module is used for searching the sound effect file from the sound effect SDK library according to the directory information to be searched carried in the acquisition request and acquiring the name of the sound effect file, wherein the sound effect file is stored in the address position corresponding to the directory information to be searched;
the generating module is used for generating a playing expression according to the name of the sound effect file;
and the display module is used for displaying the playing expression and the SDK access code.
In some embodiments, the playback expression is the name of @ SSML + sound effect file.
In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device having one or more programs stored thereon; when executed by the one or more processors, cause the one or more processors to implement the sound effect SDK library creation method as described in any one of the implementation methods of the first aspect.
In a sixth aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device having one or more programs stored thereon; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the SSML sound effect file invocation method as described in any of the implementation methods of the second aspect.
In a seventh aspect, the disclosed embodiments provide a computer readable medium, on which a computer program is stored, where the program, when executed, implements the sound effect SDK library creating method described in any implementation method in the first aspect.
In an eighth aspect, the disclosed embodiments provide a computer readable medium, on which a computer program is stored, wherein the program, when executed, implements the SSML sound effect file calling method described in any of the implementation methods of the second aspect.
According to the sound effect SDK library establishing method and device, the electronic equipment and the computer readable medium, the scenes of sound effect files are classified, the corresponding file directories are established, the sound effect files are stored in the address positions corresponding to the file directories, the SDK access codes are stored in the access code files, and a complete sound effect SDK library is established, so that the inquiry and reference of the sound effect files are simpler and more efficient.
Drawings
The accompanying drawings are included to provide a further understanding of the embodiments of the disclosure, and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the principles of the disclosure and not to limit the disclosure. The above and other features and advantages will become more apparent to those skilled in the art by describing in detail exemplary embodiments thereof with reference to the attached drawings, in which:
fig. 1 is a flowchart of a method for establishing a sound effect SDK library according to a first embodiment of the disclosure;
fig. 2 is another flowchart of a method for establishing a sound effect SDK library according to a first embodiment of the disclosure;
fig. 3 is another flowchart of a method for establishing a sound effect SDK library according to a first embodiment of the disclosure;
fig. 4 is a schematic structural diagram of a sound effect SDK library establishing apparatus according to a second embodiment of the present disclosure;
fig. 5 is another schematic structural diagram of a sound effect SDK library creating device according to a second embodiment of the disclosure;
fig. 6 is another schematic structural diagram of a sound effect SDK library creating device according to a second embodiment of the present disclosure;
fig. 7 is a flowchart of an SSML sound effect file calling method according to a third embodiment of the present disclosure;
fig. 8 is an interface schematic diagram of an SSML sound effect file calling method according to a third embodiment of the present disclosure;
fig. 9 is another interface diagram of an SSML sound effect file calling method according to a third embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of an SSML sound effect file invoking device according to a fourth embodiment of the present disclosure.
Detailed Description
The disclosure provides a sound effect SDK library establishing method and device, electronic equipment and a computer readable medium, and also provides an SSML sound effect file calling method and device, electronic equipment and a computer readable medium. For those skilled in the art to better understand the technical solutions of the present disclosure, the following detailed description is provided with reference to the accompanying drawings.
Example embodiments will be described more fully hereinafter with reference to the accompanying drawings, but which may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The method for establishing the sound effect SDK library provided by the first embodiment of the disclosure comprises the following steps:
the execution subject of the embodiment of the disclosure is a server, as shown in fig. 1, which shows a flowchart of a sound effect SDK library establishing method provided by the embodiment of the disclosure, and includes the following steps.
Step S101, establishing a file directory.
The sound effect is often used by a user in developing voice skills so as to achieve the effect of enriching voice skill experience. However, the development user often finds a problem in developing skills, that a proper sound effect cannot be found, and that calling is complicated. In order to clearly identify the referenced sound effect file in the code editing process of a development user and enable the sound effect file to be more readable in the code, a sound effect SDK library needs to be established in advance.
The sound effect sdk (supportdevelopment kit) library is an audio library, and is a set of auxiliary development tools or development period reduction tools that some companies make for software developers for a certain technology. The method is suitable for decoding and playing the sound effect files stored in the method, and provides rich SDK interfaces.
In this step, establishing a complete sound effect SDK library requires establishing a file directory in advance, preferably, the file directory includes a primary directory and a secondary directory. Preferably, the primary directory and the secondary directory are established according to the classification of each sound effect file. And classifying the sound effect files according to respective scenes, and further confirming the corresponding primary directories and secondary directories according to classification. For example, as shown in fig. 8, the primary directory displayed on the interface provided by the client for calling the audio file includes animals, cartoons, voices, and the like, and the secondary directory includes crowd sounds, crowd scream sounds, crowd applause sounds, and crowd stomping sounds in the directory of the "voices". It should be noted that the first-level directory information and the second-level directory information displayed on the interface of the client calling the audio file are consistent with the file directory in the sound effect SDK library.
And S102, storing each sound effect file to an address position corresponding to the file directory.
In the step, the first-level directory information and the second-level directory information displayed on the interface for calling the audio file of the client are consistent with the file directory in the sound effect SDK library, and the sound effect file in the sound effect SDK library is correspondingly stored according to the address position corresponding to the file directory. It should be noted that, at this time, the system sound file is stored, and the server downloads the sound file to be stored in advance from the original storage address to the sound effect SDK library.
Preferably, in step S102, storing each sound effect file to an address location corresponding to the file directory includes: and storing each sound effect file to the address position corresponding to the secondary directory.
In the step, the server stores each sound effect file to the address position corresponding to the secondary directory. For example, the sound effect file of the "crowd sound" is stored in the secondary directory of the "crowd sound" with the primary directory of the "voice of the person".
Step S103, storing the SDK access code in the access code document.
In this step, the creation of the sound effect SDK library requires that the SDK access code be stored in the code document in addition to storing each sound effect file in the corresponding address location of the file directory. The SDK access code is a code used when the whole sound effect SDK library is called, and therefore, calling the sound effect files in each sound effect SDK library requires using the SDK access code. The SDK access code is a segment of code, for example, as shown in fig. 8, # include (studio) is a first sentence of the SDK access code, and the specific code may be designed by itself as needed, and is not described herein again. And at this point, the sound effect SDK library is established.
In a preferred embodiment, as shown in fig. 2, another flowchart of a sound effect SDK library establishing method provided in an embodiment of the present disclosure is shown, where the primary directory includes a custom sound effect directory, and the sound effect SDK library establishing method further includes:
step S104, receiving a generation request for generating a personal sound effect file sent by a client, and acquiring an original storage address of the personal sound effect file, a name of the personal sound effect file and directory information to be stored, wherein the original storage address, the name and the directory information are carried in the generation request.
In a preferred embodiment, the primary catalog includes a custom sound catalog, and there is no corresponding secondary catalog under the custom sound catalog. For example, as shown in FIG. 9, the interface for custom sound effects provided at the client has no secondary directory, consistent with the file directory in the sound effect SDK library.
In this step, for example, as shown in fig. 9, after the client development user can fill in the original storage address of the personal sound effect file, and fill in the name of the personal sound effect file, and click the "generate" button, the server receives the generation request for generating the personal sound effect file sent by the client. And generating a request carrying an original storage address of the personal sound effect file, the name of the personal sound effect file and directory information to be stored, wherein the directory information to be stored is user-defined sound effect directory information.
Step S105, acquiring the personal sound effect file according to the original storage address of the personal sound effect file, and storing the personal sound effect file to the address position corresponding to the directory information to be stored according to the name of the personal sound effect file.
In the step, the server side acquires the personal sound effect file according to the original storage address of the personal sound effect file carried in the generation request, and downloads the personal sound effect file into an address position corresponding to the user-defined sound effect directory according to the name of the personal sound effect file carried in the generation request, namely, the personal sound effect file of the development user is embedded into the sound effect SDK library.
In a preferred embodiment, as shown in fig. 3, another flowchart of a sound effect SDK library establishing method provided in an embodiment of the present disclosure is shown, and after the step S105, the method further includes:
step S106, determining an SDK access code according to the access code document, and returning the SDK access code and the name of the personal sound effect file to the client.
In the step, after receiving the generation request sent by the client, the server determines the SDK access code according to the access code document and returns the SDK access code to the client together with the name of the personal sound effect file. As shown in fig. 9, after receiving the name of the personal sound effect file sent by the server, the client converts the name, generates a converted link, that is, the name of the playing expression @ SSML + personal sound effect file, and displays the SDK access code on the page. And the development user copies the converted link and the SDK access code and inserts the converted link and the SDK access code into a code needing to be edited, so that the development user calls the personal sound effect file created by the development user.
SSML is a speech synthesis markup language that uses markup to instruct a speech synthesis server to translate written-format language (input) into readable output results. In short, a text language with a certain word identification format is converted into a readable output result. Therefore, through the form, the development user can quickly position and play the personal sound effect file quoted by the development user without quoting the original lengthy sound effect link, and can realize sound effect playing without editing a complex playing instruction, so that the file has readability.
According to the sound effect SDK library establishing method provided by the embodiment of the disclosure, sound effect files are classified, corresponding file directories are established, each sound effect file is stored to the address position corresponding to the file directory, and the SDK access code is stored in the access code file, so that a complete sound effect SDK library is established, and the sound effect files are simpler and more efficient to inquire and call.
A sound effect SDK library creating apparatus provided in a second embodiment of the present disclosure is as follows:
as shown in fig. 4, a schematic structural diagram of a sound effect SDK library creating apparatus provided in the embodiment of the present disclosure is shown, including:
a file directory establishing module 201, configured to establish a file directory;
the first storage module 202 is configured to store each sound effect file to an address location corresponding to the file directory;
a second storage module 203, configured to store the SDK access code in the access code document.
Preferably, the file directory includes a primary directory and a secondary directory;
the first storage module is specifically configured to store each sound effect file to an address location corresponding to the secondary directory.
Preferably, the primary directory and the secondary directory are established according to the classification of each sound effect file.
Preferably, as shown in fig. 5, another structural schematic diagram of the sound effect SDK library establishing apparatus provided in the embodiment of the present disclosure is shown, where the primary directory includes a custom sound effect directory, and the apparatus further includes:
the acquisition module 204 is configured to receive a generation request for generating a personal sound effect file sent by a client, and acquire an original storage address of the personal sound effect file, a name of the personal sound effect file, and directory information to be stored, which are carried in the generation request, where the directory information to be stored is custom sound effect directory information;
and the third storage module 205 is configured to acquire the personal sound effect file according to the original storage address of the personal sound effect file, and store the personal sound effect file to an address position corresponding to the directory information to be stored according to the name of the personal sound effect file.
Preferably, as shown in fig. 6, another structural schematic diagram of the sound effect SDK library creating apparatus provided in the embodiment of the present disclosure is shown, where the sound effect SDK library creating apparatus further includes:
and the sending module 206 is configured to determine an SDK access code according to the access code document, and return the SDK access code and the name of the personal sound effect file to the client.
The third embodiment of the present disclosure provides a method for calling an SSML sound effect file, which comprises the following steps:
the execution subject of the embodiment of the present disclosure is a client, as shown in fig. 7, which shows a flowchart of an SSML sound effect file calling method provided by the embodiment of the present disclosure, and includes the following steps.
Step S301, receiving an acquisition request for acquiring a sound effect file, and acquiring an SDK access code from a sound effect SDK library.
In this step, as shown in fig. 8, the development user clicks the secondary directory (voice clapping sound) in the primary directory (voice), generates an acquisition request for acquiring the sound effect file, and sends the acquisition request to the server. And searching the SDK access code which is stored in the sound effect SDK library and used for calling the whole sound effect SDK library according to the acquisition request. The SDK access code is a segment of code, for example, as shown in fig. 8, # include (studio) is a first sentence of the SDK access code, and the specific code may be designed by itself as needed, and is not described herein again.
Step S302, searching the sound effect file from the sound effect SDK library according to the directory information to be searched carried in the acquisition request, and acquiring the name of the sound effect file.
In the step, the client searches out the corresponding sound effect file from the sound effect SDK library according to the directory information to be searched carried in the acquisition request, and acquires the name of the corresponding sound effect file. The sound effect file is stored in an address location corresponding to the directory information to be searched, for example, as shown in fig. 8, the sound effect file of "human voice clapping sound" is stored in an address location corresponding to the human voice clapping sound of the secondary directory.
Step S303, generating a playing expression according to the name of the sound effect file.
In this step, as shown in fig. 8, after receiving the name of the sound effect file sent by the server, the client converts the name of the sound effect file to generate a playing expression, and preferably, the playing expression is the name of @ SSML + sound effect file. SSML is a speech synthesis markup language that uses markup to instruct a speech synthesis server to translate written-format language (input) into readable output results. In short, a text language with a certain word identification format is converted into a readable output result.
And step S304, displaying the playing expression and the SDK access code.
In this step, as shown in fig. 8, the client displays the playing expression and the SDK access code on a page, so that the development user can copy the playing expression and the SDK access code and insert the same into a code to be edited, thereby enabling the development user to call a system sound effect file in the sound effect SDK library.
According to the SSML sound effect file calling method provided by the embodiment of the disclosure, a client side obtains an SDK access code and a name of a sound effect file corresponding to directory information to be searched carried in an obtaining request from a sound effect SDK library according to the obtaining request of the sound effect file, generates a playing expression according to the name of the sound effect file, and further displays the playing expression and the SDK access code. Therefore, the development user can select the first-level directory and then select the second-level directory to quickly select the sound effect file, and the sound effect file is inserted into a code to be edited, so that the development user can call the system sound effect file in the sound effect SDK library. Therefore, the development user can quickly position and play the system sound effect file in the sound effect SDK library through the form without referring to the original lengthy sound effect link and editing the complex playing instruction to realize sound effect playing, so that the file has better readability.
The fourth embodiment of the present disclosure provides an SSML sound effect file calling apparatus as follows:
as shown in fig. 10, it shows a schematic structural diagram of an SSML sound effect file invoking device provided by an embodiment of the present disclosure, including:
a first obtaining module 401, configured to receive an obtaining request for obtaining a sound effect file, and obtain an SDK access code from a sound effect SDK library;
a second obtaining module 402, configured to search the sound effect file from the sound effect SDK library according to the directory information to be searched carried in the obtaining request, and obtain a name of the sound effect file, where the sound effect file is stored in an address location corresponding to the directory information to be searched;
a generating module 403, configured to generate a playing expression according to the name of the sound effect file;
a display module 404, configured to display the play expression and the SDK access code.
A fifth embodiment of the present disclosure also provides an electronic device, including: one or more processors and storage; the storage device stores one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the sound effect SDK library establishing method provided by the foregoing embodiments.
The sixth embodiment of the present disclosure also provides an electronic device, including: one or more processors and storage; the method for calling the SSML sound effect file comprises the steps of storing one or more programs on a storage device, and enabling one or more processors to realize the SSML sound effect file calling method provided by the embodiments when the one or more programs are executed by the one or more processors.
The seventh embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed, implements the sound effect SDK library establishing method provided in the foregoing embodiments.
The eighth embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed, implements the SSML sound effect file calling method as provided in the foregoing embodiments.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods disclosed above, functional modules/units in the apparatus, may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted in a generic and descriptive sense only and not for purposes of limitation. In some instances, features, characteristics and/or elements described in connection with a particular embodiment may be used alone or in combination with features, characteristics and/or elements described in connection with other embodiments, unless expressly stated otherwise, as would be apparent to one skilled in the art. Accordingly, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the disclosure as set forth in the appended claims.

Claims (12)

1. A sound effect SDK library establishing method comprises the following steps:
establishing a file directory;
storing each sound effect file to an address position corresponding to the file directory;
storing the SDK access code in an access code document;
the file directory comprises a primary directory, the primary directory comprises a custom sound effect directory, and the method further comprises the following steps:
receiving a generation request for generating a personal sound effect file sent by a client, and acquiring an original storage address of the personal sound effect file, a name of the personal sound effect file and directory information to be stored, wherein the directory information to be stored is user-defined sound effect directory information;
acquiring the personal sound effect file according to the original storage address of the personal sound effect file, storing the personal sound effect file to the address position corresponding to the directory information to be stored according to the name of the personal sound effect file, and generating a converted link;
and determining an SDK access code according to the access code document, and returning the SDK access code and the converted link to the client.
2. The sound effect SDK library creation method of claim 1, wherein the file directory comprises a secondary directory;
the step of storing each sound effect file to the address position corresponding to the file directory comprises the following steps: and storing each sound effect file to the address position corresponding to the secondary directory.
3. The sound effect SDK library creation method of claim 2 wherein the primary and secondary directories are created according to the classification of the respective sound effect files.
4. An audio effect SDK library creation apparatus, comprising:
the file directory establishing module is used for establishing a file directory;
the first storage module is used for storing each sound effect file to the address position corresponding to the file directory;
the second storage module is used for storing the SDK access code into the access code document;
the file directory comprises a first-level directory, the first-level directory comprises a user-defined sound effect directory, and the device further comprises:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for receiving a generation request for generating a personal sound effect file sent by a client, and acquiring an original storage address of the personal sound effect file, a name of the personal sound effect file and directory information to be stored, which are carried in the generation request, wherein the directory information to be stored is user-defined sound effect directory information;
the third storage module is used for acquiring the personal sound effect file according to the original storage address of the personal sound effect file, storing the personal sound effect file to the address position corresponding to the directory information to be stored according to the name of the personal sound effect file, and generating a converted link;
and the sending module is used for determining the SDK access code according to the access code document and returning the SDK access code and the converted link to the client.
5. The sound effect SDK library creating device according to claim 4, wherein the file directory comprises a secondary directory;
the first storage module is specifically configured to store each sound effect file to an address location corresponding to the secondary directory.
6. The sound effect SDK library creation apparatus of claim 5 wherein the primary and secondary directories are created according to the classification of the respective sound effect files.
7. An SSML sound effect file calling method comprises the following steps:
receiving an acquisition request for acquiring a sound effect file, and acquiring an SDK access code from a sound effect SDK library, wherein the sound effect SDK library is established according to the method of any one of claims 1-3;
searching the sound effect file from the sound effect SDK library according to the directory information to be searched carried in the acquisition request, and acquiring the name of the sound effect file, wherein the sound effect file is stored in the address position corresponding to the directory information to be searched;
generating a playing expression according to the name of the sound effect file, wherein the playing expression is the name of @ SSML + sound effect file;
and displaying the playing expression and the SDK access code through a client.
8. An SSML sound effect file calling apparatus comprising:
a first obtaining module, configured to receive an obtaining request for obtaining a sound effect file, and obtain an SDK access code from a sound effect SDK library, where the sound effect SDK library is established according to the apparatus in any one of claims 4-6;
the second acquisition module is used for searching the sound effect file from the sound effect SDK library according to the directory information to be searched carried in the acquisition request and acquiring the name of the sound effect file, wherein the sound effect file is stored in the address position corresponding to the directory information to be searched;
the generating module is used for generating a playing expression according to the name of the sound effect file, wherein the playing expression is the name of @ SSML + sound effect file;
and the display module is used for displaying the playing expression and the SDK access code through a client.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the sound effects SDK library creation method of any of claims 1-3.
10. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the SSML sound effect file invocation method of any of claims 7.
11. A computer-readable medium on which a computer program is stored, wherein the program when executed implements the sound effect SDK library creation method according to any one of claims 1 to 3.
12. A computer-readable medium on which a computer program is stored, wherein the program when executed implements the SSML sound effect file calling method as claimed in any one of claims 7.
CN201910161075.0A 2019-03-04 2019-03-04 Sound effect SDK library establishing method and device, electronic equipment and computer readable medium Active CN109933576B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910161075.0A CN109933576B (en) 2019-03-04 2019-03-04 Sound effect SDK library establishing method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910161075.0A CN109933576B (en) 2019-03-04 2019-03-04 Sound effect SDK library establishing method and device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN109933576A CN109933576A (en) 2019-06-25
CN109933576B true CN109933576B (en) 2021-06-11

Family

ID=66986345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910161075.0A Active CN109933576B (en) 2019-03-04 2019-03-04 Sound effect SDK library establishing method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN109933576B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295504A (en) * 2007-04-28 2008-10-29 诺基亚公司 Entertainment audio only for text application
CN104615689A (en) * 2015-01-22 2015-05-13 百度在线网络技术(北京)有限公司 Searching method and device
CN105677871A (en) * 2016-01-08 2016-06-15 珠海格力电器股份有限公司 Audio file classifying method and device and file manager
CN106843978A (en) * 2017-01-23 2017-06-13 北京乐盟互动科技有限公司 A kind of SDK cut-in methods and system
CN108255366A (en) * 2017-04-18 2018-07-06 广州华多网络科技有限公司 A kind of update method of live music audio, apparatus and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10621062B2 (en) * 2017-02-21 2020-04-14 International Business Machines Corporation Widget provisioning of user experience analytics and user interface / application management

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295504A (en) * 2007-04-28 2008-10-29 诺基亚公司 Entertainment audio only for text application
CN104615689A (en) * 2015-01-22 2015-05-13 百度在线网络技术(北京)有限公司 Searching method and device
CN105677871A (en) * 2016-01-08 2016-06-15 珠海格力电器股份有限公司 Audio file classifying method and device and file manager
CN106843978A (en) * 2017-01-23 2017-06-13 北京乐盟互动科技有限公司 A kind of SDK cut-in methods and system
CN108255366A (en) * 2017-04-18 2018-07-06 广州华多网络科技有限公司 A kind of update method of live music audio, apparatus and system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
使用语音SDK开发:如何集成和使用语音库文件?;hixiaofei;《https://blog.csdn.net/hixiaofei/article/details/80122287?locationNum=15&fps=1》;20160317;第二节,第三节 *
使用语音SDK开发:如何集成和使用语音库文件?;myja;《https://blog.51cto.com/11147075/1752078》;20160317;第二节,第三节 *
安卓开发中添加音效(soundpool方法);糖果天王;《https://blog.csdn.net/okcd00/article/details/40100947?locationNum=5&fps=1》;20141015;全文 *
音效资料库的建立与使用;徐国庆;《音响技术》;20091031(第10期);第1.3,1.5,2.1-2.2节、图1-2 *

Also Published As

Publication number Publication date
CN109933576A (en) 2019-06-25

Similar Documents

Publication Publication Date Title
CN101042752B (en) Method and sytem used for email administration
CN109597976B (en) Document editing method and device
US8396714B2 (en) Systems and methods for concatenation of words in text to speech synthesis
US8712776B2 (en) Systems and methods for selective text to speech synthesis
US8352268B2 (en) Systems and methods for selective rate of speech and speech preferences for text to speech synthesis
US8352272B2 (en) Systems and methods for text to speech synthesis
US8849895B2 (en) Associating user selected content management directives with user selected ratings
US8510277B2 (en) Informing a user of a content management directive associated with a rating
CN111400518B (en) Method, device, terminal, server and system for generating and editing works
CN107221328B (en) Method and device for positioning modification source, computer equipment and readable medium
US20070214148A1 (en) Invoking content management directives
TW201209804A (en) Digital media voice tags in social networks
CN114390220B (en) Animation video generation method and related device
CN114023301A (en) Audio editing method, electronic device and storage medium
CN115237805A (en) Test case data preparation method and device
CN113593519B (en) Method, system, device, equipment and storage medium for synthesizing text speech
CN110874216A (en) Complete code generation method, device, equipment and storage medium
KR102353797B1 (en) Method and system for suppoting content editing based on real time generation of synthesized sound for video content
CN109933576B (en) Sound effect SDK library establishing method and device, electronic equipment and computer readable medium
CN111370011A (en) Method, device, system and storage medium for replacing audio
CN116343771A (en) Music on-demand voice instruction recognition method and device based on knowledge graph
CN102171696A (en) Producing method and device for ordered material
CN113626722A (en) Public opinion guiding method, device, equipment and computer readable storage medium
CN114155841A (en) Voice recognition method, device, equipment and storage medium
US8990087B1 (en) Providing text to speech from digital content on an electronic device

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
TA01 Transfer of patent application right

Effective date of registration: 20210514

Address after: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing

Applicant after: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

Applicant after: Shanghai Xiaodu Technology Co.,Ltd.

Address before: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing

Applicant before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant