|
1 | 1 | ---
|
2 |
| -title: How to use compressed audio files with the Speech SDK - Speech service |
| 2 | +title: How to use compressed input audio - Speech service |
3 | 3 | titleSuffix: Azure Cognitive Services
|
4 |
| -description: Learn how to use compressed audio files to the Speech service with the Speech SDK. |
| 4 | +description: Learn how to use compressed input audio the Speech SDK and CLI. |
5 | 5 | services: cognitive-services
|
6 | 6 | author: eric-urban
|
7 | 7 | ms.author: eur
|
8 | 8 | manager: nitinme
|
9 | 9 | ms.service: cognitive-services
|
10 | 10 | ms.subservice: speech-service
|
11 | 11 | ms.topic: how-to
|
12 |
| -ms.date: 01/13/2022 |
| 12 | +ms.date: 04/25/2022 |
13 | 13 | ms.devlang: cpp, csharp, golang, java, python
|
14 | 14 | ms.custom: devx-track-csharp
|
15 |
| -zone_pivot_groups: programming-languages-set-twenty-eight |
| 15 | +zone_pivot_groups: programming-languages-speech-services |
16 | 16 | ---
|
17 | 17 |
|
18 |
| -# How to use compressed audio files |
19 |
| - |
20 |
| -The Speech SDK and Speech CLI use GStreamer to support different kinds of input audio formats. GStreamer decompresses the audio before it's sent over the wire to the Speech service as raw PCM. |
21 |
| - |
22 |
| -[!INCLUDE [supported-audio-formats](includes/supported-audio-formats.md)] |
23 |
| - |
24 |
| -## Install GStreamer |
25 |
| - |
26 |
| -Choose a platform for installation instructions. |
27 |
| - |
28 |
| -Platform | Languages | Supported GStreamer version |
29 |
| -| :--- | ---: | :---: |
30 |
| -Android | Java | [1.18.3](https://gstreamer.freedesktop.org/data/pkg/android/1.18.3/) |
31 |
| -Linux | C++, C#, Java, Python, Go | [Supported Linux distributions and target architectures](~/articles/cognitive-services/speech-service/speech-sdk.md) |
32 |
| -Windows (excluding UWP) | C++, C#, Java, Python | [1.18.3](https://gstreamer.freedesktop.org/data/pkg/windows/1.18.3/msvc/gstreamer-1.0-msvc-x86_64-1.18.3.msi) |
33 |
| - |
34 |
| -### [Android](#tab/android) |
35 |
| - |
36 |
| -For more information about building libgstreamer_android.so, see [GStreamer configuration by programming language](#gstreamer-configuration). |
37 |
| - |
38 |
| -For more information, see [Android installation instructions](https://gstreamer.freedesktop.org/documentation/installing/for-android-development.html?gi-language=c). |
39 |
| - |
40 |
| -### [Linux](#tab/linux) |
41 |
| - |
42 |
| -For more information, see [Linux installation instructions](https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c). |
43 |
| - |
44 |
| -```sh |
45 |
| -sudo apt install libgstreamer1.0-0 \ |
46 |
| -gstreamer1.0-plugins-base \ |
47 |
| -gstreamer1.0-plugins-good \ |
48 |
| -gstreamer1.0-plugins-bad \ |
49 |
| -gstreamer1.0-plugins-ugly |
50 |
| -``` |
51 |
| -### [Windows](#tab/windows) |
52 |
| - |
53 |
| -Make sure that packages of the same platform (x64 or x86) are installed. For example, if you installed the x64 package for Python, you need to install the x64 GStreamer package. The following instructions are for the x64 packages. |
54 |
| - |
55 |
| -1. Create the folder c:\gstreamer. |
56 |
| -1. Download the [installer](https://gstreamer.freedesktop.org/data/pkg/windows/1.18.3/msvc/gstreamer-1.0-msvc-x86_64-1.18.3.msi). |
57 |
| -1. Copy the installer to c:\gstreamer. |
58 |
| -1. Open PowerShell as an administrator. |
59 |
| -1. Run the following command in PowerShell: |
60 |
| - |
61 |
| - ```powershell |
62 |
| - cd c:\gstreamer |
63 |
| - msiexec /passive INSTALLLEVEL=1000 INSTALLDIR=C:\gstreamer /i gstreamer-1.0-msvc-x86_64-1.18.3.msi |
64 |
| - ``` |
65 |
| -
|
66 |
| -1. Add the system variables GST_PLUGIN_PATH with the value C:\gstreamer\1.0\msvc_x86_64\lib\gstreamer-1.0. |
67 |
| -1. Add the system variables GSTREAMER_ROOT_X86_64 with the value C:\gstreamer\1.0\msvc_x86_64. |
68 |
| -1. Add another entry in the path variable as C:\gstreamer\1.0\msvc_x86_64\bin. |
69 |
| -1. Reboot the machine. |
70 |
| -
|
71 |
| -For more information about GStreamer, see [Windows installation instructions](https://gstreamer.freedesktop.org/documentation/installing/on-windows.html?gi-language=c). |
72 |
| -
|
73 |
| -*** |
74 |
| -
|
75 |
| -## GStreamer configuration |
76 |
| -
|
77 |
| -> [!NOTE] |
78 |
| -> GStreamer configuration requirements vary by programming language. For more information, choose your programming language at the top of this page. The contents of this section will be updated. |
| 18 | +# How to use compressed input audio |
79 | 19 |
|
80 | 20 | ::: zone pivot="programming-language-csharp"
|
81 |
| -[!INCLUDE [prerequisites](includes/how-to/compressed-audio-input/csharp/prerequisites.md)] |
| 21 | +[!INCLUDE [C# include](includes/how-to/compressed-audio-input/csharp.md)] |
82 | 22 | ::: zone-end
|
83 | 23 |
|
84 | 24 | ::: zone pivot="programming-language-cpp"
|
85 |
| -[!INCLUDE [prerequisites](includes/how-to/compressed-audio-input/cpp/prerequisites.md)] |
| 25 | +[!INCLUDE [C++ include](includes/how-to/compressed-audio-input/cpp.md)] |
86 | 26 | ::: zone-end
|
87 | 27 |
|
88 |
| -::: zone pivot="programming-language-java" |
89 |
| -[!INCLUDE [prerequisites](includes/how-to/compressed-audio-input/java/prerequisites.md)] |
| 28 | +::: zone pivot="programming-language-go" |
| 29 | +[!INCLUDE [Go include](includes/how-to/compressed-audio-input/go.md)] |
90 | 30 | ::: zone-end
|
91 | 31 |
|
92 |
| -::: zone pivot="programming-language-python" |
93 |
| -[!INCLUDE [prerequisites](includes/how-to/compressed-audio-input/python/prerequisites.md)] |
| 32 | +::: zone pivot="programming-language-java" |
| 33 | +[!INCLUDE [Java include](includes/how-to/compressed-audio-input/java.md)] |
94 | 34 | ::: zone-end
|
95 | 35 |
|
96 |
| -::: zone pivot="programming-language-go" |
97 |
| -[!INCLUDE [prerequisites](includes/how-to/compressed-audio-input/go/prerequisites.md)] |
| 36 | +::: zone pivot="programming-language-javascript" |
| 37 | +[!INCLUDE [JavaScript include](includes/how-to/compressed-audio-input/javascript.md)] |
98 | 38 | ::: zone-end
|
99 | 39 |
|
100 |
| -## Example |
101 |
| -
|
102 |
| -::: zone pivot="programming-language-csharp" |
103 |
| -[!INCLUDE [prerequisites](includes/how-to/compressed-audio-input/csharp/examples.md)] |
| 40 | +::: zone pivot="programming-language-objectivec" |
| 41 | +[!INCLUDE [ObjectiveC include](includes/how-to/compressed-audio-input/objectivec.md)] |
104 | 42 | ::: zone-end
|
105 | 43 |
|
106 |
| -::: zone pivot="programming-language-cpp" |
107 |
| -[!INCLUDE [prerequisites](includes/how-to/compressed-audio-input/cpp/examples.md)] |
| 44 | +::: zone pivot="programming-language-swift" |
| 45 | +[!INCLUDE [Swift include](includes/how-to/compressed-audio-input/swift.md)] |
108 | 46 | ::: zone-end
|
109 | 47 |
|
110 |
| -::: zone pivot="programming-language-java" |
111 |
| -[!INCLUDE [prerequisites](includes/how-to/compressed-audio-input/java/examples.md)] |
| 48 | +::: zone pivot="programming-language-python" |
| 49 | +[!INCLUDE [Python include](./includes/how-to/compressed-audio-input/python.md)] |
112 | 50 | ::: zone-end
|
113 | 51 |
|
114 |
| -::: zone pivot="programming-language-python" |
115 |
| -[!INCLUDE [prerequisites](includes/how-to/compressed-audio-input/python/examples.md)] |
| 52 | +::: zone pivot="programming-language-rest" |
| 53 | +[!INCLUDE [REST include](includes/how-to/compressed-audio-input/rest.md)] |
116 | 54 | ::: zone-end
|
117 | 55 |
|
118 |
| -::: zone pivot="programming-language-go" |
119 |
| -[!INCLUDE [prerequisites](includes/how-to/compressed-audio-input/go/examples.md)] |
| 56 | +::: zone pivot="programming-language-cli" |
| 57 | +[!INCLUDE [CLI include](includes/how-to/compressed-audio-input/cli.md)] |
120 | 58 | ::: zone-end
|
121 | 59 |
|
122 | 60 | ## Next steps
|
123 | 61 |
|
124 |
| -> [!div class="nextstepaction"] |
125 |
| -> [Learn how to recognize speech](./get-started-speech-to-text.md) |
| 62 | +* [Try the speech to text quickstart](get-started-speech-to-text.md) |
| 63 | +* [Improve recognition accuracy with custom speech](custom-speech-overview.md) |
0 commit comments