Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
yh1224 committed May 4, 2023
1 parent dac34d1 commit a1e72a7
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# aws-voicevox-proxy
# aws-lambda-voicevox-api

AWS Lambda 上で [VOICEVOX](https://voicevox.hiroshiba.jp/) による合成音声を返す Web API を構築します。

Expand All @@ -24,7 +24,7 @@ cdk deploy
デプロイが完了すると、以下のように Web API の URL が出力されます。

```
AwsVoicevoxProxyStack.ApiUrl = https://XXXXXXXXXXXXXXXX.lambda-url.ap-northeast-1.on.aws/
AwsLambdaVoicevoxApiStack.ApiUrl = https://XXXXXXXXXXXXXXXX.lambda-url.ap-northeast-1.on.aws/
```

text パラメーターを指定してこの URL に POST すると、レスポンスとして mp3 データが返ってきます。
Expand Down
7 changes: 7 additions & 0 deletions bin/aws-lambda-voicevox-api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env node
import "source-map-support/register";
import * as cdk from "aws-cdk-lib";
import {AwsLambdaVoicevoxApiStack} from "../lib/aws-lambda-voicevox-api-stack";

const app = new cdk.App();
new AwsLambdaVoicevoxApiStack(app, "AwsLambdaVoicevoxApiStack", {});
7 changes: 0 additions & 7 deletions bin/aws-voicevox-proxy.ts

This file was deleted.

2 changes: 1 addition & 1 deletion cdk.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"app": "npx ts-node --prefer-ts-exts bin/aws-voicevox-proxy.ts",
"app": "npx ts-node --prefer-ts-exts bin/aws-lambda-voicevox-api.ts",
"watch": {
"include": [
"**"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as logs from "aws-cdk-lib/aws-logs";
import {Construct} from "constructs";
import * as path from "path";

export class AwsVoicevoxProxyStack extends cdk.Stack {
export class AwsLambdaVoicevoxApiStack extends cdk.Stack {
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);

Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "aws-voicevox-proxy",
"name": "aws-lambda-voicevox-api",
"version": "0.1.0",
"bin": {
"aws-voicevox-proxy": "bin/aws-voicevox-proxy.js"
"aws-lambda-voicevox-api": "bin/aws-lambda-voicevox-api.js"
},
"scripts": {
"build": "tsc",
Expand Down

0 comments on commit a1e72a7

Please sign in to comment.