免費試用語音服務 ' 'Try the Speech service for free''

在本文中,您會選擇免費輕鬆地測試語音服務的選項,讓您可以探索服務可執行檔動作,並決定是否適合您的需求。In this article, you choose an option to easily test the Speech service free of charge so you can discover what the service can do, and decide whether it's right for your needs. 根據您的情況和使用案例,選擇下列兩個選項的其中一個:Choose one of the two following options depending on your situation and use-case:

  • 選項 1:立即取得免費試用API 金鑰,而不提供任何信用卡資訊(您必須擁有現有的 Azure 帳戶)。Option 1: Immediately get free trial API keys without providing any credit card info (you need to have an existing Azure account). 免費試用會持續30天,且資料會在結束時刪除。The free trial lasts 30 days and data is deleted at the end. 此選項最適合用來進行服務的快速實驗。This option is best for quick experimentation with the service.
  • 選項 2:使用免費訂用帳戶在 Azure 中建立新的語音資源(需要信用卡資訊)。Option 2: Create a new Speech resource in Azure, at no charge using a free subscription (credit card information required). 免費的訂用帳戶主要具有比付費訂用帳戶更嚴格的速率限制。A free subscription mainly has stricter rate-limits than a paid subscription. 如果您想要測試服務,但也計畫在未來升級至付費訂用帳戶,而不想遺失資料,最好使用此選項。This option is best if you want to test the service, but also plan to upgrade to a paid subscription in the future, and don't want to lose data.

試用語音服務,而不需要信用卡資訊Try the Speech service without credit card info

請完成下列步驟,以啟用30天免費試用版並取得 API 金鑰。Complete the following steps to activate a 30-day free trial and get API keys. 當下列步驟完成後,您的試用期就會立即開始。Your trial period starts immediately once the following steps are complete.

  1. 前往試用認知服務Go to Try Cognitive Service.
  2. 選取 [語音識別 API]**** 索引標籤。Select the Speech APIs tab.
  3. 選擇 [取得 API 金鑰]。Choose Get API Key.

您會看到帳單選擇。You'll be presented with billing choices. 選擇 [免費] 選項,然後閱讀並核准使用者合約。Choose the free option and then read and approve the user agreement. 您會看到可用來免費試用語音服務30天的金鑰。You'll be presented with keys you can use to try the Speech service free for 30 days.

藉由建立 Azure 資源來試用語音服務Try the Speech service by creating an Azure resource

在下列步驟中,您需要 Microsoft 帳戶和 Azure 帳戶。For the following steps, you need both a Microsoft account and an Azure account. 如果您沒有 Microsoft 帳戶,您可以在Microsoft 帳戶入口網站上免費註冊一個。If you do not have a Microsoft account, you can sign up for one free of charge at the Microsoft account portal. 選取 [使用 Microsoft 帳戶登入],然後在系統要求您登入時,選取 [建立 Microsoft 帳戶]。Select Sign in with Microsoft and then, when asked to sign in, select Create a Microsoft account. 依照步驟來建立及驗證新的 Microsoft 帳戶。Follow the steps to create and verify your new Microsoft account.

一旦有了 Microsoft 帳戶,請移至Azure 註冊頁面,選取 [開始免費],然後使用 Microsoft 帳戶建立新的 Azure 帳戶。Once you have a Microsoft account, go to the Azure sign-up page, select Start free, and create a new Azure account using a Microsoft account.

注意

語音服務有兩個服務層級:免費和訂用帳戶,其限制和權益各有不同。The Speech service has two service tiers: free and subscription, which have different limitations and benefits. 當您註冊免費的 Azure 帳戶時,會隨附 $200 的服務信用額度,您可以將其套用到付費語音服務訂用帳戶,最多30天。When you sign up for a free Azure account it comes with $200 in service credit that you can apply toward a paid Speech service subscription, valid for up to 30 days.

如果您使用免費的低容量語音服務層級,即使在免費試用或服務信用額度到期後,您仍可保留此免費訂用帳戶。If you use the free, low-volume Speech service tier you can keep this free subscription even after your free trial or service credit expires.

如需詳細資訊,請參閱認知服務定價-語音服務For more information, see Cognitive Services pricing - Speech service.

建立資源Create the resource

若要將語音服務資源 (免費或付費層) 新增至您的 Azure 帳戶:To add a Speech service resource (free or paid tier) to your Azure account:

  1. 使用您的 Microsoft 帳戶,登入 Azure 入口網站Sign in to the Azure portal using your Microsoft account.

  2. 選取入口網站左上方的 [建立資源]****。Select Create a resource at the top left of the portal. 如果您看不到 [建立資源],您隨時都可以藉由選取左上方的折迭功能表來找到它:If you do not see Create a resource, you can always find it by selecting the collapsed menu in the upper left:

    折迭的瀏覽按鈕

  3. 視窗中,于搜尋方塊中輸入 "speech",然後按 enter。In the New window, type "speech" in the search box and press ENTER.

  4. 在搜尋結果中,選取 [Speech]****。In the search results, select Speech.

    語音搜尋結果

  5. 選取 [建立],然後:Select Create, then:

    • 為您的新資源提供唯一的名稱。Give a unique name for your new resource. 此名稱可協助您區分多個與相同服務系結的訂閱。The name helps you distinguish among multiple subscriptions tied to the same service.
    • 選擇與新資源相關聯的 Azure 訂用帳戶來決定費用的計費方式。Choose the Azure subscription that the new resource is associated with to determine how the fees are billed.
    • 選擇將使用資源的區域Choose the region where the resource will be used.
    • 請選擇免費(F0)或付費(S0)定價層。Choose either a free (F0) or paid (S0) pricing tier. 如需每一層的定價和使用量配額完整資訊,請選取 [查看完整定價詳細資料]。For complete information about pricing and usage quotas for each tier, select View full pricing details.
    • 為此語音訂用帳戶建立新的資源群組,或將該訂用帳戶指派給現有的資源群組。Create a new resource group for this Speech subscription or assign the subscription to an existing resource group. 資源群組可協助組織各種 Azure 訂用帳戶。Resource groups help you keep your various Azure subscriptions organized.
    • 選取 [建立] 。Select Create. 這會帶您前往部署總覽並顯示部署進度訊息。This will take you to the deployment overview and display deployment progress messages.

注意

您可以在一或多個區域中建立無限數量的標準層訂用帳戶。You can create an unlimited number of standard-tier subscriptions in one or multiple regions. 不過,您可以建立只有一個免費層的訂用帳戶。However, you can create only one free-tier subscription. 免費層上保留7天未使用的模型部署將會自動解除委任。Model deployments on the free tier that remain unused for 7 days will be decommissioned automatically.

部署新的語音資源需要幾分鐘的時間。It takes a few moments to deploy your new Speech resource. 部署完成後,選取 [移至資源],然後在左側流覽窗格中選取 [金鑰],以顯示您的語音服務訂用帳戶金鑰。Once deployment is complete, select Go to resource and in the left navigation pane select Keys to display your Speech service subscription keys. 每個訂用帳戶都有兩個金鑰,您可以在應用程式中使用任一個金鑰。Each subscription has two keys; you can use either key in your application. 若要快速地將金鑰複製/貼到您的程式碼編輯器或其他位置,請選取每個索引鍵旁的 [複製] 按鈕,切換 windows 將剪貼簿內容貼到所需的位置。To quickly copy/paste a key to your code editor or other location, select the copy button next to each key, switch windows to paste the clipboard contents to the desired location.

重要

這些訂用帳戶金鑰可用來存取您的認知服務 API。These subscription keys are used to access your Cognitive Service API. 請勿共用您的金鑰。Do not share your keys. 安全地加以儲存–例如,使用 Azure Key Vault。Store them securely– for example, using Azure Key Vault. 我們也建議您定期重新產生這些金鑰。We also recommend regenerating these keys regularly. 進行 API 呼叫時,只需要一個金鑰。Only one key is necessary to make an API call. 重新產生第一個金鑰時,您可以使用第二個金鑰繼續存取服務。When regenerating the first key, you can use the second key for continued access to the service.

切換至新的訂用帳戶Switch to a new subscription

若要從一個訂用帳戶切換至另一個,例如免費試用版到期時或發佈您的應用程式時,請將程式碼中的區域和訂用帳戶金鑰取代為新 Azure 資源的區域和訂用帳戶金鑰。To switch from one subscription to another, for example when your free trial expires or when you publish your application, replace the region and subscription key in your code with the region and subscription key of the new Azure resource.

關於區域About regions

  • 如果您的應用程式使用語音 SDK,您會在建立語音設定時提供區域程式碼,例如 westusIf your application uses a Speech SDK, you provide the region code, such as westus, when creating a speech configuration.
  • 如果您的應用程式使用其中一個語音服務 REST API,則區域會是您提出要求時所用端點 URI 的一部份。If your application uses one of the Speech service's REST APIs, the region is part of the endpoint URI you use when making requests.
  • 為某區域建立的金鑰,就只能在該區域中使用。Keys created for a region are valid only in that region. 若嘗試在其他區域使用,將會導致驗證錯誤。Attempting to use them with other regions will result in authentication errors.

後續步驟Next steps

完成個我們的任何一個 10 分鐘快速入門,或查看我們的 SDK 範例:Complete one of our 10-minute quickstarts or check out our SDK samples: