tencentcloud.CiMediaVoiceSeparateTemplate
Explore with Pulumi AI
Provides a resource to create a ci media_voice_separate_template
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const mediaVoiceSeparateTemplate = new tencentcloud.CiMediaVoiceSeparateTemplate("mediaVoiceSeparateTemplate", {
audioConfig: {
bitrate: "128",
channels: "4",
codec: "aac",
samplerate: "44100",
},
audioMode: "IsAudio",
bucket: "terraform-ci-xxxxx",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
media_voice_separate_template = tencentcloud.CiMediaVoiceSeparateTemplate("mediaVoiceSeparateTemplate",
audio_config={
"bitrate": "128",
"channels": "4",
"codec": "aac",
"samplerate": "44100",
},
audio_mode="IsAudio",
bucket="terraform-ci-xxxxx")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewCiMediaVoiceSeparateTemplate(ctx, "mediaVoiceSeparateTemplate", &tencentcloud.CiMediaVoiceSeparateTemplateArgs{
AudioConfig: &tencentcloud.CiMediaVoiceSeparateTemplateAudioConfigArgs{
Bitrate: pulumi.String("128"),
Channels: pulumi.String("4"),
Codec: pulumi.String("aac"),
Samplerate: pulumi.String("44100"),
},
AudioMode: pulumi.String("IsAudio"),
Bucket: pulumi.String("terraform-ci-xxxxx"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var mediaVoiceSeparateTemplate = new Tencentcloud.CiMediaVoiceSeparateTemplate("mediaVoiceSeparateTemplate", new()
{
AudioConfig = new Tencentcloud.Inputs.CiMediaVoiceSeparateTemplateAudioConfigArgs
{
Bitrate = "128",
Channels = "4",
Codec = "aac",
Samplerate = "44100",
},
AudioMode = "IsAudio",
Bucket = "terraform-ci-xxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CiMediaVoiceSeparateTemplate;
import com.pulumi.tencentcloud.CiMediaVoiceSeparateTemplateArgs;
import com.pulumi.tencentcloud.inputs.CiMediaVoiceSeparateTemplateAudioConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var mediaVoiceSeparateTemplate = new CiMediaVoiceSeparateTemplate("mediaVoiceSeparateTemplate", CiMediaVoiceSeparateTemplateArgs.builder()
.audioConfig(CiMediaVoiceSeparateTemplateAudioConfigArgs.builder()
.bitrate("128")
.channels("4")
.codec("aac")
.samplerate("44100")
.build())
.audioMode("IsAudio")
.bucket("terraform-ci-xxxxx")
.build());
}
}
resources:
mediaVoiceSeparateTemplate:
type: tencentcloud:CiMediaVoiceSeparateTemplate
properties:
audioConfig:
bitrate: '128'
channels: '4'
codec: aac
samplerate: '44100'
audioMode: IsAudio
bucket: terraform-ci-xxxxx
Create CiMediaVoiceSeparateTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CiMediaVoiceSeparateTemplate(name: string, args: CiMediaVoiceSeparateTemplateArgs, opts?: CustomResourceOptions);
@overload
def CiMediaVoiceSeparateTemplate(resource_name: str,
args: CiMediaVoiceSeparateTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CiMediaVoiceSeparateTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
audio_config: Optional[CiMediaVoiceSeparateTemplateAudioConfigArgs] = None,
audio_mode: Optional[str] = None,
bucket: Optional[str] = None,
ci_media_voice_separate_template_id: Optional[str] = None,
name: Optional[str] = None)
func NewCiMediaVoiceSeparateTemplate(ctx *Context, name string, args CiMediaVoiceSeparateTemplateArgs, opts ...ResourceOption) (*CiMediaVoiceSeparateTemplate, error)
public CiMediaVoiceSeparateTemplate(string name, CiMediaVoiceSeparateTemplateArgs args, CustomResourceOptions? opts = null)
public CiMediaVoiceSeparateTemplate(String name, CiMediaVoiceSeparateTemplateArgs args)
public CiMediaVoiceSeparateTemplate(String name, CiMediaVoiceSeparateTemplateArgs args, CustomResourceOptions options)
type: tencentcloud:CiMediaVoiceSeparateTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CiMediaVoiceSeparateTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CiMediaVoiceSeparateTemplateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CiMediaVoiceSeparateTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CiMediaVoiceSeparateTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CiMediaVoiceSeparateTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CiMediaVoiceSeparateTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CiMediaVoiceSeparateTemplate resource accepts the following input properties:
- Audio
Config CiMedia Voice Separate Template Audio Config - audio configuration.
- Audio
Mode string - Output audio IsAudio: output human voice, IsBackground: output background sound, AudioAndBackground: output vocal and background sound.
- Bucket string
- bucket name.
- Ci
Media stringVoice Separate Template Id - ID of the resource.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- Audio
Config CiMedia Voice Separate Template Audio Config Args - audio configuration.
- Audio
Mode string - Output audio IsAudio: output human voice, IsBackground: output background sound, AudioAndBackground: output vocal and background sound.
- Bucket string
- bucket name.
- Ci
Media stringVoice Separate Template Id - ID of the resource.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- audio
Config CiMedia Voice Separate Template Audio Config - audio configuration.
- audio
Mode String - Output audio IsAudio: output human voice, IsBackground: output background sound, AudioAndBackground: output vocal and background sound.
- bucket String
- bucket name.
- ci
Media StringVoice Separate Template Id - ID of the resource.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- audio
Config CiMedia Voice Separate Template Audio Config - audio configuration.
- audio
Mode string - Output audio IsAudio: output human voice, IsBackground: output background sound, AudioAndBackground: output vocal and background sound.
- bucket string
- bucket name.
- ci
Media stringVoice Separate Template Id - ID of the resource.
- name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- audio_
config CiMedia Voice Separate Template Audio Config Args - audio configuration.
- audio_
mode str - Output audio IsAudio: output human voice, IsBackground: output background sound, AudioAndBackground: output vocal and background sound.
- bucket str
- bucket name.
- ci_
media_ strvoice_ separate_ template_ id - ID of the resource.
- name str
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- audio
Config Property Map - audio configuration.
- audio
Mode String - Output audio IsAudio: output human voice, IsBackground: output background sound, AudioAndBackground: output vocal and background sound.
- bucket String
- bucket name.
- ci
Media StringVoice Separate Template Id - ID of the resource.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
Outputs
All input properties are implicitly available as output properties. Additionally, the CiMediaVoiceSeparateTemplate resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CiMediaVoiceSeparateTemplate Resource
Get an existing CiMediaVoiceSeparateTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CiMediaVoiceSeparateTemplateState, opts?: CustomResourceOptions): CiMediaVoiceSeparateTemplate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
audio_config: Optional[CiMediaVoiceSeparateTemplateAudioConfigArgs] = None,
audio_mode: Optional[str] = None,
bucket: Optional[str] = None,
ci_media_voice_separate_template_id: Optional[str] = None,
name: Optional[str] = None) -> CiMediaVoiceSeparateTemplate
func GetCiMediaVoiceSeparateTemplate(ctx *Context, name string, id IDInput, state *CiMediaVoiceSeparateTemplateState, opts ...ResourceOption) (*CiMediaVoiceSeparateTemplate, error)
public static CiMediaVoiceSeparateTemplate Get(string name, Input<string> id, CiMediaVoiceSeparateTemplateState? state, CustomResourceOptions? opts = null)
public static CiMediaVoiceSeparateTemplate get(String name, Output<String> id, CiMediaVoiceSeparateTemplateState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CiMediaVoiceSeparateTemplate get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Audio
Config CiMedia Voice Separate Template Audio Config - audio configuration.
- Audio
Mode string - Output audio IsAudio: output human voice, IsBackground: output background sound, AudioAndBackground: output vocal and background sound.
- Bucket string
- bucket name.
- Ci
Media stringVoice Separate Template Id - ID of the resource.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- Audio
Config CiMedia Voice Separate Template Audio Config Args - audio configuration.
- Audio
Mode string - Output audio IsAudio: output human voice, IsBackground: output background sound, AudioAndBackground: output vocal and background sound.
- Bucket string
- bucket name.
- Ci
Media stringVoice Separate Template Id - ID of the resource.
- Name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- audio
Config CiMedia Voice Separate Template Audio Config - audio configuration.
- audio
Mode String - Output audio IsAudio: output human voice, IsBackground: output background sound, AudioAndBackground: output vocal and background sound.
- bucket String
- bucket name.
- ci
Media StringVoice Separate Template Id - ID of the resource.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- audio
Config CiMedia Voice Separate Template Audio Config - audio configuration.
- audio
Mode string - Output audio IsAudio: output human voice, IsBackground: output background sound, AudioAndBackground: output vocal and background sound.
- bucket string
- bucket name.
- ci
Media stringVoice Separate Template Id - ID of the resource.
- name string
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- audio_
config CiMedia Voice Separate Template Audio Config Args - audio configuration.
- audio_
mode str - Output audio IsAudio: output human voice, IsBackground: output background sound, AudioAndBackground: output vocal and background sound.
- bucket str
- bucket name.
- ci_
media_ strvoice_ separate_ template_ id - ID of the resource.
- name str
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
- audio
Config Property Map - audio configuration.
- audio
Mode String - Output audio IsAudio: output human voice, IsBackground: output background sound, AudioAndBackground: output vocal and background sound.
- bucket String
- bucket name.
- ci
Media StringVoice Separate Template Id - ID of the resource.
- name String
- The template name only supports
Chinese
,English
,numbers
,_
,-
and*
.
Supporting Types
CiMediaVoiceSeparateTemplateAudioConfig, CiMediaVoiceSeparateTemplateAudioConfigArgs
- Codec string
- Codec format, value aac, mp3, flac, amr.
- Bitrate string
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- Channels string
- number of channels- When Codec is set to aac/flac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3, support 1, 2- When Codec is set to amr, only 1 is supported.
- Samplerate string
- Sampling Rate- 1: Unit: Hz- 2: Optional 8000, 11025, 22050, 32000, 44100, 48000, 96000- 3: When Codec is set to aac/flac, 8000 is not supported- 4: When Codec is set to mp3, 8000 and 96000 are not supported- 5: When Codec is set to amr, only 8000 is supported.
- Codec string
- Codec format, value aac, mp3, flac, amr.
- Bitrate string
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- Channels string
- number of channels- When Codec is set to aac/flac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3, support 1, 2- When Codec is set to amr, only 1 is supported.
- Samplerate string
- Sampling Rate- 1: Unit: Hz- 2: Optional 8000, 11025, 22050, 32000, 44100, 48000, 96000- 3: When Codec is set to aac/flac, 8000 is not supported- 4: When Codec is set to mp3, 8000 and 96000 are not supported- 5: When Codec is set to amr, only 8000 is supported.
- codec String
- Codec format, value aac, mp3, flac, amr.
- bitrate String
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- channels String
- number of channels- When Codec is set to aac/flac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3, support 1, 2- When Codec is set to amr, only 1 is supported.
- samplerate String
- Sampling Rate- 1: Unit: Hz- 2: Optional 8000, 11025, 22050, 32000, 44100, 48000, 96000- 3: When Codec is set to aac/flac, 8000 is not supported- 4: When Codec is set to mp3, 8000 and 96000 are not supported- 5: When Codec is set to amr, only 8000 is supported.
- codec string
- Codec format, value aac, mp3, flac, amr.
- bitrate string
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- channels string
- number of channels- When Codec is set to aac/flac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3, support 1, 2- When Codec is set to amr, only 1 is supported.
- samplerate string
- Sampling Rate- 1: Unit: Hz- 2: Optional 8000, 11025, 22050, 32000, 44100, 48000, 96000- 3: When Codec is set to aac/flac, 8000 is not supported- 4: When Codec is set to mp3, 8000 and 96000 are not supported- 5: When Codec is set to amr, only 8000 is supported.
- codec str
- Codec format, value aac, mp3, flac, amr.
- bitrate str
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- channels str
- number of channels- When Codec is set to aac/flac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3, support 1, 2- When Codec is set to amr, only 1 is supported.
- samplerate str
- Sampling Rate- 1: Unit: Hz- 2: Optional 8000, 11025, 22050, 32000, 44100, 48000, 96000- 3: When Codec is set to aac/flac, 8000 is not supported- 4: When Codec is set to mp3, 8000 and 96000 are not supported- 5: When Codec is set to amr, only 8000 is supported.
- codec String
- Codec format, value aac, mp3, flac, amr.
- bitrate String
- Original audio bit rate, unit: Kbps, Value range: [8, 1000].
- channels String
- number of channels- When Codec is set to aac/flac, support 1, 2, 4, 5, 6, 8- When Codec is set to mp3, support 1, 2- When Codec is set to amr, only 1 is supported.
- samplerate String
- Sampling Rate- 1: Unit: Hz- 2: Optional 8000, 11025, 22050, 32000, 44100, 48000, 96000- 3: When Codec is set to aac/flac, 8000 is not supported- 4: When Codec is set to mp3, 8000 and 96000 are not supported- 5: When Codec is set to amr, only 8000 is supported.
Import
ci media_voice_separate_template can be imported using the id, e.g.
$ pulumi import tencentcloud:index/ciMediaVoiceSeparateTemplate:CiMediaVoiceSeparateTemplate media_voice_separate_template terraform-ci-xxxxxx#t1c95566664530460d9bc2b6265feb7c32
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.