Comparing version 1.6.7 to 1.6.8
@@ -17,3 +17,3 @@ "use strict"; | ||
const agent = ttsProxy ? new https_proxy_agent_1.HttpsProxyAgent(ttsProxy) : undefined; | ||
const edgeTTS = new edge_tts_node_1.MsEdgeTTS({ agent, enableLogger: false }); | ||
const edgeTTS = new edge_tts_node_1.MsEdgeTTS({ agent, enableLogger: log_1.Logger.enabled }); | ||
await edgeTTS.setMetadata(voiceName, edge_tts_node_1.MsEdgeTTS.OUTPUT_FORMAT.AUDIO_24KHZ_96KBITRATE_MONO_MP3); | ||
@@ -20,0 +20,0 @@ const subMaker = new sub_maker_1.SubMaker(); |
{ | ||
"name": "ffaivideo", | ||
"version": "1.6.7", | ||
"version": "1.6.8", | ||
"description": "", | ||
@@ -36,3 +36,3 @@ "main": "dist/index.js", | ||
"azure-openai": "^0.9.4", | ||
"edge-tts-node": "^1.5.1", | ||
"edge-tts-node": "^1.5.5", | ||
"fluent-ffmpeg": "^2.1.3", | ||
@@ -39,0 +39,0 @@ "fs-extra": "^11.2.0", |
@@ -35,8 +35,9 @@ <p align="center"> | ||
provider: 'gpt4js', | ||
// Use the free gpt4js/g4f, or OpenAI, or Moonshot account | ||
// Use the free gpt4js, g4f, or OpenAI, or Moonshot account | ||
// Or use openai gpt | ||
// provider: 'openai', | ||
// openai: { | ||
// apiKey: 'xxx', | ||
// modelName: 'xxx', | ||
// baseUrl: 'xxx', | ||
// apiKey: '*', | ||
// modelName: 'gpt-4-turbo-preview', | ||
// baseUrl: 'https://api.openai.com/v1', | ||
// }, | ||
@@ -87,3 +88,12 @@ termsNum: 8, | ||
#### About voice tts | ||
FFAIVideo integrates Microsoft [Edge's online text-to-speech](https://azure.microsoft.com/en-us/products/ai-services/text-to-speech) service, powered by Microsoft Azure. Furthermore, it enables users to customize and set up their own app tokens for more flexible configuration and utilization of this service. As for the various voice options available for setup, you can find a detailed list in the following file within the GitHub repository: [https://github.com/drawcall/FFAIVideo/blob/main/src/config/voice-config.ts](https://github.com/drawcall/FFAIVideo/blob/main/src/config/voice-config.ts). This way, you can select the most suitable voice according to your specific needs. | ||
FFAIVideo by default integrates Microsoft Edge's online text-to-speech service. This service is not only powerful but also allows users to customize and set up their own application tokens, offering more flexible configuration and usage options. | ||
However, users in China may encounter access restrictions. For more details, please refer to this GitHub issue: https://github.com/rany2/edge-tts/issues/290. | ||
To address this issue, we provide an alternative: you can use the Azure TTS service. This requires purchasing an Azure AI Speech service account. For more information, please visit: https://azure.microsoft.com/en-us/products/ai-services/ai-speech. | ||
When using the Azure TTS service, a configuration example is as follows: | ||
``` | ||
azureTTSSettings: { | ||
subscriptionKey: '*', | ||
serviceRegion: '*', | ||
}, | ||
``` | ||
@@ -100,3 +110,3 @@ #### About installing ffmpeg | ||
|--------|------|--------|------| | ||
| provider | string | g4f | LLM Provider | | ||
| provider | string | gpt4js | LLM Provider | | ||
| moonshot | LLMConfig | - | Moonshot configuration | | ||
@@ -103,0 +113,0 @@ | openai | LLMConfig | - | OpenAI configuration | |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
272477
149
Updatededge-tts-node@^1.5.5