You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/immersive-reader/includes/how-to/how-to-launch-immersive-reader-android.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ author: rwallerms
3
3
manager: nitinme
4
4
ms.service: azure-ai-immersive-reader
5
5
ms.topic: include
6
-
ms.date: 02/14/2024
6
+
ms.date: 02/21/2024
7
7
ms.author: rwaller
8
8
---
9
9
@@ -12,14 +12,25 @@ ms.author: rwaller
12
12
* An Azure subscription. You can [create one for free](https://azure.microsoft.com/free/ai-services).
13
13
* An Immersive Reader resource configured for Microsoft Entra authentication. Follow [these instructions](../../how-to-create-immersive-reader.md) to get set up. Save the output of your session into a text file so you can configure the environment properties.
1. Start Android Studio, and open the project from the *immersive-reader-sdk/js/samples/quickstart-java-android* directory (Java) or the *immersive-reader-sdk/js/samples/quickstart-kotlin* directory (Kotlin).
20
+
1. Start Android Studio, and open the Immersive Reader SDK project from the *immersive-reader-sdk/js/samples/quickstart-java-android* directory (Java) or the *immersive-reader-sdk/js/samples/quickstart-kotlin* directory (Kotlin).
21
21
22
-
1. Create a file named *.env* inside the **/assets** folder. Add the following names and values, and supply values as appropriate. Don't commit this file into source control because it contains secrets that shouldn't be made public.
22
+
> [!TIP]
23
+
> You might need to let the system update the Gradle plugins to at least version 8.
24
+
25
+
1. To create a new assets folder, right-click on **app** and select **Folder** -> **Assets Folder** from the dropdown.
26
+
27
+
:::image type="content" source="../../media/how-tos/android-studio-assets-folder.png" alt-text="Screenshot of the Assets folder option.":::
28
+
29
+
1. Right-click on **assets** and select **New** -> **File**. Name the file **env**.
30
+
31
+
:::image type="content" source="../../media/how-tos/android-studio-create-env-file.png" alt-text="Screenshot of name input field to create the env file.":::
32
+
33
+
1. Add the following names and values, and supply values as appropriate. Don't commit this file into source control because it contains secrets that shouldn't be made public.
Copy file name to clipboardExpand all lines: articles/ai-services/immersive-reader/includes/how-to/how-to-launch-immersive-reader-ios.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ author: rwallerms
3
3
manager: nitinme
4
4
ms.service: azure-ai-immersive-reader
5
5
ms.topic: include
6
-
ms.date: 02/14/2024
6
+
ms.date: 02/21/2024
7
7
ms.author: rwaller
8
8
---
9
9
@@ -12,12 +12,12 @@ ms.author: rwaller
12
12
* An Azure subscription. You can [create one for free](https://azure.microsoft.com/free/ai-services).
13
13
* An Immersive Reader resource configured for Microsoft Entra authentication. Follow [these instructions](../../how-to-create-immersive-reader.md) to get set up. Save the output of your session into a text file so you can configure the environment properties.
14
14
*[macOS](https://www.apple.com/macos) and [Xcode](https://apps.apple.com/us/app/xcode/id497799835?mt=12).
*Clone the [Immersive Reader SDK](https://github.com/microsoft/immersive-reader-sdk) from GitHub.
17
17
18
18
## Configure authentication credentials
19
19
20
-
1.Open Xcode, and open the *immersive-reader-sdk/js/samples/ios/quickstart-swift* directory or the *immersive-reader-sdk/js/samples/ios/quickstart-swift.xcodeproj* directory.
20
+
1.In Xcode, select **Open Existing Project**. Open the file *immersive-reader-sdk/js/samples/ios/quickstart-swift.xcodeproj*.
21
21
1. On the top menu, select **Product** > **Scheme** > **Edit Scheme**.
22
22
1. In the **Run** view, select the **Arguments** tab.
23
23
1. In the **Environment Variables** section, add the following names and values. Supply the values given when you created your Immersive Reader resource.
@@ -33,9 +33,9 @@ Don't commit this change into source control because it contains secrets that sh
33
33
34
34
## Start the Immersive Reader with sample content
35
35
36
-
In Xcode, select **Ctrl+R** to run the project.
36
+
In Xcode, select a device simulator, then run the project from the controls or enter **Ctrl+R**.
37
37
38
-
## Next steps
38
+
## Next step
39
39
40
40
> [!div class="nextstepaction"]
41
41
> [Explore the Immersive Reader SDK](https://github.com/microsoft/immersive-reader-sdk)
Next, write a backend API to retrieve a Microsoft Entra authentication token.
40
46
41
-
You need some values from the Microsoft Entra auth configuration prerequisite step above for this part. Refer back to the text file you saved of that session.
47
+
You need some values from the Microsoft Entra auth configuration prerequisite step for this part. Refer back to the text file you saved from that session.
42
48
43
49
````text
44
50
TenantId => Azure subscription TenantId
45
-
ClientId => Azure AD ApplicationId
46
-
ClientSecret => Azure AD Application Service Principal password
51
+
ClientId => Microsoft Entra ApplicationId
52
+
ClientSecret => Microsoft Entra Application Service Principal password
47
53
Subdomain => Immersive Reader resource subdomain (resource 'Name' if the resource was created in the Azure portal, or 'CustomSubDomain' option if the resource was created with Azure CLI PowerShell. Check the Azure portal for the subdomain on the Endpoint in the resource Overview page, for example, 'https://[SUBDOMAIN].cognitiveservices.azure.com/')
48
54
````
49
55
50
-
Once you have these values, create a new file called *.env*, and paste the following code into it, supplying your custom property values from above. Do not include quotation marks or the "{" and "}" characters.
56
+
Create a new file called *.env* in the root of your project. Paste the following code into it, supplying the values given when you created your Immersive Reader resource. Don't include quotation marks or the `{` and `}` characters.
Be sure not to commit this file into source control, as it contains secrets that should not be made public.
65
+
Be sure not to commit this file into source control, as it contains secrets that shouldn't be made public.
60
66
61
-
Next, open *app.js* and add the following to the top of the file. This loads the properties defined in the .env file as environment variables into Node.
67
+
Next, open *app.js* and add the following to the top of the file. This loads the properties defined in the *.env* file as environment variables into Node.
62
68
63
69
```javascript
64
70
require('dotenv').config();
@@ -172,15 +178,15 @@ The **getimmersivereaderlaunchparams** API endpoint should be secured behind som
172
178
173
179
## Specify the language of your content
174
180
175
-
The Immersive Reader has support for many different languages. You can specify the language of your content by following the steps below.
181
+
The Immersive Reader has support for many different languages. You can specify the language of your content by following these steps.
176
182
177
183
1. Open *views\index.pug* and add the following code below the `p(id=content)` tag that you added in the previous step. This code adds some content Spanish content to your page.
178
184
179
185
```pug
180
186
p(id='content-spanish') El estudio de las formas terrestres de la Tierra se llama geografía física. Los accidentes geográficos pueden ser montañas y valles. También pueden ser glaciares, lagos o ríos.
181
187
```
182
188
183
-
2. In the JavaScript code, add the following above the call to `ImmersiveReader.launchAsync`. This code passes the Spanish content into the Immersive Reader.
189
+
2. In *views\index.pug*, add the following code above the call to `ImmersiveReader.launchAsync`. This code passes the Spanish content into the Immersive Reader.
Copy file name to clipboardExpand all lines: articles/ai-services/immersive-reader/includes/how-to/how-to-launch-immersive-reader-python.md
+9-30Lines changed: 9 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ author: rwallerms
3
3
manager: nitinme
4
4
ms.service: azure-ai-immersive-reader
5
5
ms.topic: include
6
-
ms.date: 02/14/2024
6
+
ms.date: 02/21/2024
7
7
ms.author: rwaller
8
8
---
9
9
@@ -12,10 +12,10 @@ ms.author: rwaller
12
12
* An Azure subscription. You can [create one for free](https://azure.microsoft.com/free/ai-services).
13
13
* An Immersive Reader resource configured for Microsoft Entra authentication. Follow [these instructions](../../how-to-create-immersive-reader.md) to get set up. Save the output of your session into a text file so you can configure the environment properties.
14
14
* An IDE such as [Visual Studio Code](https://code.visualstudio.com).
15
+
*[Git](https://git-scm.com).
16
+
* Clone the [Immersive Reader SDK](https://github.com/microsoft/immersive-reader-sdk) from GitHub.
15
17
16
18
You can install the following tools as part of the instructions in this guide:
*[Python](https://www.python.org/downloads/) and [pip](https://docs.python.org/3/installing/index.html). Starting with Python 3.4, pip is included by default with the Python binary installers.
@@ -24,7 +24,7 @@ You can install the following tools as part of the instructions in this guide:
24
24
25
25
## Configure authentication credentials
26
26
27
-
Create a new file called *.env*, and paste the following names and values into it. Supply the values given when you created your Immersive Reader resource.
27
+
Create a new file called *.env* in the root directory of your project. Paste the following names and values into it. Supply the values given when you created your Immersive Reader resource.
28
28
29
29
```text
30
30
TENANT_ID={YOUR_TENANT_ID}
@@ -39,16 +39,6 @@ Secure the **getimmersivereadertoken** API endpoint behind some form of authenti
39
39
40
40
## Create a Python web app on Windows
41
41
42
-
Create a Python web app by using Flask on Windows.
43
-
44
-
Install [Git](https://git-scm.com).
45
-
46
-
After Git is installed, open a command prompt and clone the Immersive Reader SDK Git repository to a folder on your computer.
0 commit comments